Files
teleoperation/scripts/speech_debug.sh
2019-01-24 11:04:42 +01:00

21 lines
546 B
Bash
Executable File

#!/bin/bash
# Script to open debug terminal for speech node
# Array of commands to run in different tabs
commands=(
'cd ~/catkin_ws;source devel/setup.bash ;rostopic echo /speech_vocabulary_action/goal'
'cd ~/catkin_ws;source devel/setup.bash ;rostopic echo /word_recognized'
)
# Build final command with all the tabs to launch
finalCommand=""
for (( i = 0; i < ${#commands[@]} ; i++ )); do
finalCommand+="--tab -e 'bash -c \"${commands[$i]};exec bash\"' "
done
# Run the final command
eval "gnome-terminal "$finalCommand
exit 0