SITL Launcher: gzserver must be running when gzclient connects

This commit is contained in:
Lorenz Meier
2017-06-27 10:18:55 +02:00
committed by Beat Küng
parent dea467bdbd
commit a6ef6c6e33
3 changed files with 5 additions and 2 deletions

View File

@@ -104,6 +104,9 @@ then
if [[ -n "$HEADLESS" ]]; then
echo "not running gazebo gui"
else
# gzserver needs to be running to avoid a race. Since the launch
# is putting it into the background we need to avoid it by backing off
sleep 3
gzclient --verbose &
GUI_PID=`echo $!`
fi