Skip to content

Commit

Permalink
add launch scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
markusgrotz committed Feb 9, 2024
1 parent edc8f94 commit 320514d
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
41 changes: 41 additions & 0 deletions launch_scripts/launch_aurmr.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/bin/bash -e


echo "Please make sure that roscore is launched using launch_aurmr_core.sh"

echo "starting robot ..."
ssh emmons tmux new-session -d -s aurmr-emmons
ssh emmons tmux send-keys -t aurmr-emmons:0 "activate\ ToF" C-m
ssh emmons tmux send-keys -t aurmr-emmons:0 "roslaunch\ tahoma_bringup\ tahoma_bringup.launch\ gui:=False" C-m
sleep 1
echo -n "done"
echo ""

echo "starting perception ..."
tmux new-session -d -s aurmr-inter
ssh inter tmux send-keys -t aurmr-inter:0 "activate\ aurmr_demo_perception" C-m
ssh inter tmux send-keys -t aurmr-inter:0 "roslaunch\ aurmr_perception\ aurmr_perception_clustering.launch\ grasp_type:=centroid" C-m
sleep 1
echo -n "done"
echo ""

echo "starting statemachine ..."
ssh emmons tmux new-window -t aurmr-emmons
ssh emmons tmux send-keys -t aurmr-emmons:1 "activate\ ToF" C-m
ssh emmons tmux send-keys -t aurmr-emmons:1 "cd\ /home/aurmr/workspaces/ToF/src/aurmr_tahoma/aurmr_tasks/scripts" C-m
ssh emmons tmux send-keys -t aurmr-emmons:1 "python\ aurmr_demo"
sleep 3
ssh emmons tmux send-keys -t aurmr-emmons:1 "C-m"
echo -n "done"
echo ""


echo "starting stowing script ..."
ssh inter tmux split-window -t aurmr-inter
ssh inter tmux send-keys -t aurmr-inter:0 "activate\ aurmr_demo_perception" C-m
ssh inter tmux send-keys -t aurmr-inter:0 "cd\ /home/aurmr/workspaces/aurmr_demo_perception" C-m
ssh inter tmux send-keys -t aurmr-inter:0 "./simple_pick_and_stow_cli.py\ stow"
echo -n "done"
echo ""

tmux att
19 changes: 19 additions & 0 deletions launch_scripts/launch_aurmr_core.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash -e



echo "starting roscore ..."
tmux new-session -d -s aurmr-inter-core
tmux send-keys -t aurmr-inter-core:0 "activate aurmr_demo_perception" C-m
tmux send-keys -t aurmr-inter-core:0 "roscore" C-m

sleep 1
echo -n "done"

echo "starting azure kinect ..."
tmux new-window -t aurmr-inter-core
tmux send-keys -t aurmr-inter-core:1 "activate aurmr_demo_perception" C-m
tmux send-keys -t aurmr-inter-core:1 "roslaunch azure_kinect_ros_driver driver.launch point_cloud:=True" C-m
echo -n "done"

tmux att

0 comments on commit 320514d

Please sign in to comment.