Multi-Drone simulation with QGroundControl Fails

Hi everyone. I am currently working on PX4 Offboard Navigation with Python and ROS2, using Ubuntu 22.04 and QGround Control.

Successfully spawned three drones but inside QGroundControl, nothing occurs when trying to launch them.

Any advice to solve this issue would be appreciated.

for px4 sim vehicles…

  • sitl_multiple_run.sh script to start multiple vehicle instances.

  • The script will start instances on sequentially allocated UDP ports (e.g., 14540 for the first, 14541 for the second).

  • Connect in QGroundControl:

    • QGroundControl should automatically connect to all instances sending traffic to its remote UDP port (usually 14550).

Hi, I am working on PX4 v1.15, in which there is NO sitl_multiple_run.sh. Tell me if you resolved same in PX4 v1.14 or v1.15+

I am using PX4 v1.16.0 and the file is located in folder PX4-Autopilot/Tools/simulation/gazebo-classic.

No experience with earlier versions.

But I believe Gazebo Harmonic is the default with PX4 v1.16.

Yes gazebo harmonic 8.9

There is a sitl_multiple_run.sh in simulation folder. Script does not start sim or ground control so I did this

Start qgroundcontrol
Start gazebo sim
cd /Px4Autopilot/build/px4_sitl_default/bin
./px4 -i 0
./px4 -i 1

For 2 vehicles

Forgot…
Run each px4 instance in separate terminal window

only the first drone responds to takeoff commands, while the second one ignores them.