[Bug] Gazebo Multi-Vehicle Simulation: PX4 not getting connected to multiple vehicles

Hi @rg-123 I am facing exact problem. I find following sources which i am still trying to implement, let me know if it helps.

Source 1

Also, V1.16 has a new way of launching drones using:

PX4_UXRCE_DDS_NS=uav_1 make px4_sitl gz_x500

which can only be used for single drone, however by tweaking UXRCE_DDS_NS_IDX you can use it for multi-vehicle as well. check here

Also remember that sometimes, “gyroscope not found” or similar errors like “missing data” happens because your system RAM can’t handle everything at once. try PX4_SIM_SPEED_FACTOR=0.1 flag to run simulation.

I will share if I make any progress.

1 Like