Simulating Multiple Vehicles in PX4 SITL Gazebo

Jaeyoung Lim

Previously, it was only possible to simulate multiple vehicles in SITL by extending ROS launchfiles. However, this is not scalable especially when you are trying simulate large number of vehicles or change the number of vehicles a lot.

Now you can simulate multiple vehicles in PX4 SITL gazebo, without depending on ROS. Simply run the following command. A more detailed instruction can be found in the PX4 Devguide

Tools/ [-m <model>] [-n <number_of_vehicles>] [-w <world>]

Spawning different models

Tools/ -m iris -n 20
Tools/ -m plane -n 10
Tools/ -m standard_vtol

Spawning into different worlds

The vehilces can be spawned into different worlds. For example, the baylands world. The list of worlds can be found in the documentation

Tools/ -w baylands

Screenshot from 2020-04-26 15-21-30

PRs that enabled this feature


When I was starting with PX4 SITL years ago, I did something similar but failed miserably. After 4 years, I ended up fixing it myself. 🙂


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s