forked from Archive/PX4-Autopilot
Start user camera plugin
This commit starts the gazebo_user_camera_plugin together with the gzclient, so that it is always following the vehicle
This commit is contained in:
parent
8a7878f65c
commit
af1b4c473e
|
@ -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
|
|||
# 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
|
|||
|
||||
echo SITL COMMAND: $sitl_command
|
||||
|
||||
export PX4_SIM_MODEL=${model}
|
||||
|
||||
|
||||
if [ "$debugger" == "lldb" ]; then
|
||||
eval lldb -- $sitl_command
|
||||
elif [ "$debugger" == "gdb" ]; then
|
||||
|
|
Loading…
Reference in New Issue