mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-16 20:47:34 +08:00
Use SIM_PID for gzserver, not gzmodel
This commit is contained in:
committed by
Nuno Marques
parent
c25b2e11fe
commit
481b23c811
+1
-1
@@ -104,9 +104,9 @@ elif [ "$program" == "gazebo" ] && [ ! -n "$no_sim" ]; then
|
||||
gzserver "$PX4_SITL_WORLD" &
|
||||
fi
|
||||
fi
|
||||
SIM_PID=`echo $!`
|
||||
gz model --spawn-file="${src_path}/Tools/sitl_gazebo/models/${model}/${model}.sdf" --model-name=${model} -x 1.01 -y 0.98 -z 0.83
|
||||
|
||||
SIM_PID=`echo $!`
|
||||
|
||||
if [[ -n "$HEADLESS" ]]; then
|
||||
echo "not running gazebo gui"
|
||||
|
||||
Reference in New Issue
Block a user