mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
Simplify getting sim PID
Follow up of https://github.com/PX4/Firmware/pull/15206#pullrequestreview-436356707
This commit is contained in:
@@ -104,7 +104,7 @@ elif [ "$program" == "gazebo" ] && [ ! -n "$no_sim" ]; then
|
|||||||
gzserver "$PX4_SITL_WORLD" &
|
gzserver "$PX4_SITL_WORLD" &
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
SIM_PID=`echo $!`
|
SIM_PID=$!
|
||||||
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
|
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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user