Skip to content

Commit

Permalink
Use SIM_PID for gzserver, not gzmodel
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaeyoung-Lim authored and TSC21 committed Jun 23, 2020
1 parent c25b2e1 commit 481b23c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/sitl_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 481b23c

Please sign in to comment.