Multiple Host PX4, ROS2 Gazebo SITL

Hi everyone,

I’m new in the world of PX4 and SITL simulation. I’m a engineering in computer science student and I want to build a Drone Lighting Show simulation using PX4 SITL with Gazebo and ROS2.

I have some troubles with “Running Multiple Host” configuration following the official guide on Gazebo Models Repository (PX4-gazebo-models) | PX4 Guide (main) .

This is my setup:

PX4 Host

  • OS: Windows 11
  • RAM: 8 GB
  • CPU: Intel i3-1115G4

Gazebo Host

  • OS: Ubuntu 24.04
  • RAM: 12 GB
  • CPU/GPU: Intel i7-6500U / Nvidia GTX 950M

I follow the PX4 installation on Windows using WSL2 and the Ubuntu 24.04 installation for Gazebo.

The problem is that PX4 waiting for Gazebo world, even if it is already running on the remote workstation (in LAN).

It seems a network communication problem but, when I use netcat to test ports between the two devices, they receive TCP messages and only WSL2 doesn’t receive UDP message from Gazebo Host

How can I solve this problem? Is there some custom configuration I can do? I also have some difficult on Debugging Simulation in order to see logs and messages during PX4 startup (also to know which ports are used)

Thanks you!