From a52b56ded9ae5e7faf44ac8f8b1308e8416262e3 Mon Sep 17 00:00:00 2001 From: HRS_D Date: Thu, 24 Jan 2019 11:04:42 +0100 Subject: [PATCH] little changes in shell scripts --- launch/teleoperation.launch | 14 ++++++++++++-- scripts/speech_debug.sh | 4 ++-- scripts/teleoperation.sh | 12 ++++++------ src/speech.cpp | 2 +- 4 files changed, 21 insertions(+), 11 deletions(-) diff --git a/launch/teleoperation.launch b/launch/teleoperation.launch index d37902a..8a879de 100644 --- a/launch/teleoperation.launch +++ b/launch/teleoperation.launch @@ -1,3 +1,5 @@ + + - + + + + + ?> + - + ?> @@ -19,4 +27,6 @@ Launch file for Teleoperating NAO project + + diff --git a/scripts/speech_debug.sh b/scripts/speech_debug.sh index bee05f2..440ea90 100755 --- a/scripts/speech_debug.sh +++ b/scripts/speech_debug.sh @@ -9,9 +9,9 @@ commands=( ) # 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 diff --git a/scripts/teleoperation.sh b/scripts/teleoperation.sh index c5bf314..01f6268 100755 --- a/scripts/teleoperation.sh +++ b/scripts/teleoperation.sh @@ -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 diff --git a/src/speech.cpp b/src/speech.cpp index ef19b5b..9e71c2f 100644 --- a/src/speech.cpp +++ b/src/speech.cpp @@ -194,7 +194,7 @@ int main(int argc, char** argv) { ros::init(argc, argv, "speech"); Nao_control TermiNAOtor; - ros::Rate loop_rate(1); + ros::Rate loop_rate(0.5); loop_rate.sleep(); TermiNAOtor.commandRecognition(); ROS_INFO("SPIN");