From 218f11f54b1e097440c7b3f4abdff61253c48a50 Mon Sep 17 00:00:00 2001 From: tumbili Date: Tue, 27 Oct 2015 13:14:17 +0100 Subject: [PATCH] kill gazebo properly --- Tools/sitl_run.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Tools/sitl_run.sh b/Tools/sitl_run.sh index 6eb69eb46b..e437f7651f 100755 --- a/Tools/sitl_run.sh +++ b/Tools/sitl_run.sh @@ -54,8 +54,10 @@ then cd Tools/sitl_gazebo/Build cmake .. make -j4 - gazebo ../worlds/iris.world & + gzserver ../worlds/iris.world & SIM_PID=`echo $!` + gzclient& + GUI_PID=`echo $!` else echo "You need to have gazebo simulator installed!" exit 1 @@ -82,4 +84,5 @@ then elif [ "$3" == "gazebo" ] then kill -9 $SIM_PID + kill -9 $GUI_PID fi