little changes in shell scripts
This commit is contained in:
@@ -6,19 +6,19 @@
|
||||
commands=(
|
||||
|
||||
# Start roscore
|
||||
#'cd ~/catkin_ws;source devel/setup.bash ;roscore'
|
||||
'cd ~/catkin_ws;source devel/setup.bash ;roscore'
|
||||
# Bringup Nao
|
||||
'cd ~/catkin_ws;source devel/setup.bash ;roslaunch nao_bringup nao_full.launch '
|
||||
'sleep 1;cd ~/catkin_ws;source devel/setup.bash ;roslaunch nao_bringup nao_full.launch '
|
||||
# Start speech recognition server
|
||||
'cd ~/catkin_ws;source devel/setup.bash ;roslaunch nao_apps speech.launch'
|
||||
'sleep 3;cd ~/catkin_ws;source devel/setup.bash ;roslaunch nao_apps speech.launch'
|
||||
# Launch nodes in teleoperation package
|
||||
'cd ~/catkin_ws;source devel/setup.bash ;roslaunch teleoperation teleoperation.launch'
|
||||
'sleep 5;cd ~/catkin_ws;source devel/setup.bash ;roslaunch teleoperation teleoperation.launch'
|
||||
)
|
||||
|
||||
# Build final command with all the tabs to launch
|
||||
set finalCommand=""
|
||||
finalCommand=""
|
||||
for (( i = 0; i < ${#commands[@]} ; i++ )); do
|
||||
export finalCommand+="--tab -e 'bash -c \"${commands[$i]};exec bash\"' "
|
||||
finalCommand+="--tab -e 'bash -c \"${commands[$i]};exec bash\"' "
|
||||
done
|
||||
|
||||
# Run the final command
|
||||
|
||||
Reference in New Issue
Block a user