Browse Source

Start user camera plugin

This commit starts the gazebo_user_camera_plugin together with the gzclient, so that it is always following the vehicle
release/1.12
Jaeyoung-Lim 4 years ago committed by Lorenz Meier
parent
commit
af1b4c473e
  1. 7
      Tools/sitl_run.sh

7
Tools/sitl_run.sh

@ -84,6 +84,8 @@ for file in "$@"; do @@ -84,6 +84,8 @@ for file in "$@"; do
cp "$file" $rootfs/
done
export PX4_SIM_MODEL=${model}
SIM_PID=0
if [ "$program" == "jmavsim" ] && [ ! -n "$no_sim" ]; then
@ -161,7 +163,7 @@ elif [ "$program" == "gazebo" ] && [ ! -n "$no_sim" ]; then @@ -161,7 +163,7 @@ elif [ "$program" == "gazebo" ] && [ ! -n "$no_sim" ]; then
# 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
nice -n 20 gzclient --verbose &
nice -n 20 gzclient --verbose --gui-client-plugin libgazebo_user_camera_plugin.so &
GUI_PID=$!
fi
else
@ -204,9 +206,6 @@ fi @@ -204,9 +206,6 @@ fi
echo SITL COMMAND: $sitl_command
export PX4_SIM_MODEL=${model}
if [ "$debugger" == "lldb" ]; then
eval lldb -- $sitl_command
elif [ "$debugger" == "gdb" ]; then

Loading…
Cancel
Save