From 4ae15e3d8456af7a98a21b06191cdc702d322418 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Mon, 23 Nov 2015 12:40:33 +0100 Subject: [PATCH] SITL run: Better Gazebo output, less CMake warnings --- Tools/sitl_run.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Tools/sitl_run.sh b/Tools/sitl_run.sh index 85d9034cb0..8e56657bd8 100755 --- a/Tools/sitl_run.sh +++ b/Tools/sitl_run.sh @@ -53,7 +53,7 @@ then if [ -x "$(command -v gazebo)" ] then # Set the plugin path so Gazebo finds our model and sim - export GAZEBO_PLUGIN_PATH=${GAZEBO_PLUGIN_PATH}:$curr_dir/Tools/sitl_gazebo/Build + export GAZEBO_PLUGIN_PATH=$curr_dir/Tools/sitl_gazebo/Build:${GAZEBO_PLUGIN_PATH} # Set the model path so Gazebo finds the airframes export GAZEBO_MODEL_PATH=${GAZEBO_MODEL_PATH}:$curr_dir/Tools/sitl_gazebo/models # The next line would disable online model lookup, can be commented in, in case of unstable behaviour. @@ -61,11 +61,11 @@ then export SITL_GAZEBO_PATH=$curr_dir/Tools/sitl_gazebo mkdir -p Tools/sitl_gazebo/Build cd Tools/sitl_gazebo/Build - cmake .. + cmake -Wno-dev .. make -j4 - gzserver ../worlds/${model}.world & + gzserver --verbose ../worlds/${model}.world & SIM_PID=`echo $!` - gzclient & + gzclient --verbose & GUI_PID=`echo $!` else echo "You need to have gazebo simulator installed!"