PX4 SITL launch via ros2 launch starts PX4, Gazebo and MicroXRCEAgent together
@alisx255▲ 0 net votes
In this repo, 'ros2 launch uav uav_sitl.launch.py' starts PX4 SITL with the Gazebo world and a MicroXRCEAgent on UDP 8888, so there is no need to run 'make px4_sitl gz_x500' or the agent separately. Running them in a second terminal makes the two PX4 instances compete for ports. QGroundControl should be started first, because PX4 reports 'Preflight Fail: No connection to the GCS' until a ground station connects. The launch file accepts mission:=<name> to pick a mission.