mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 03:49:12 +08:00
kill gazebo properly
This commit is contained in:
+4
-1
@@ -54,8 +54,10 @@ then
|
|||||||
cd Tools/sitl_gazebo/Build
|
cd Tools/sitl_gazebo/Build
|
||||||
cmake ..
|
cmake ..
|
||||||
make -j4
|
make -j4
|
||||||
gazebo ../worlds/iris.world &
|
gzserver ../worlds/iris.world &
|
||||||
SIM_PID=`echo $!`
|
SIM_PID=`echo $!`
|
||||||
|
gzclient&
|
||||||
|
GUI_PID=`echo $!`
|
||||||
else
|
else
|
||||||
echo "You need to have gazebo simulator installed!"
|
echo "You need to have gazebo simulator installed!"
|
||||||
exit 1
|
exit 1
|
||||||
@@ -82,4 +84,5 @@ then
|
|||||||
elif [ "$3" == "gazebo" ]
|
elif [ "$3" == "gazebo" ]
|
||||||
then
|
then
|
||||||
kill -9 $SIM_PID
|
kill -9 $SIM_PID
|
||||||
|
kill -9 $GUI_PID
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user