Seeking Guidance on Autonomous Drone Development

Hi everyone!

I’m developing a small category autonomous drone, using PX4 , and a Jetson Orin NX 16 GB companion computer. My goal is to achieve real-time obstacle detection, LiDAR-based mapping, and autonomous navigation.

I’m planning to use PX4 SITL with Gazebo Harmonic for simulation, ROS 2 Humble, Livox Mid-360 LiDAR, GLIM, nvblox, and a vision model such as YOLOv8 or RF-DETR.

Could you please share your insights on the simulation setup, PX4–ROS 2 integration, companion-computer performance, and the most suitable AI model for this application?

Any practical recommendations or references would be greatly appreciated. Thanks!

Hi Hemanth,

Welcome to the PX4 community.

Your proposed architecture is a good starting point, but I would recommend building and validating it incrementally rather than integrating every component at once.

A few practical suggestions:

1. Establish a minimal PX4–ROS 2 baseline

Start with PX4 SITL and Gazebo Harmonic, then verify ROS 2 communication, vehicle state feedback, Offboard control and failsafe behaviour before introducing the perception stack.

Pay particular attention to PX4 version compatibility, the required message definitions and the ROS 2 middleware configuration.

2. Separate localization, mapping and obstacle avoidance

GLIM, nvblox and an object-detection model serve different purposes.

Before combining them, define which component provides vehicle localization, which maintains the obstacle representation and which planner generates collision-free trajectories.

Also verify coordinate frames, timestamp synchronization and sensor calibration.

3. Benchmark on the actual Jetson Orin NX

Rather than choosing YOLOv8 or RF-DETR based only on reported accuracy, compare them using your target camera resolution, expected obstacle classes and deployment runtime.

Measure end-to-end latency, GPU utilization, memory consumption and performance under simultaneous LiDAR processing.

4. Validate the complete sensing-to-action chain

For autonomous navigation, I would test more than detection accuracy.

Useful scenarios include delayed LiDAR measurements, dropped perception frames, temporary localization loss, stale obstacle maps and companion-computer communication interruptions.

For each scenario, capture the first observable failure or divergence, the planner response and PX4’s resulting behaviour.

This helps distinguish a successful simulation demonstration from a reproducible system-level validation.

One question that would help narrow the architecture:

Are you targeting indoor GPS-denied navigation, outdoor GPS-assisted flight, or both?

That decision will strongly influence the localization, mapping and planning stack.

Best regards,
Yiğitcan Öztürk
PAMILANGA LTD

which is the recommended PX4 version to run SITL and Gazebo to run properly using ROS2 communication . Also advice the ubuntu version suitable for the subject setup

Hi @sibujacob,

For a PX4 SITL + Gazebo + ROS 2 setup, I would recommend starting with:

  • PX4: v1.17 stable release

  • Ubuntu: 22.04 LTS

  • ROS 2: Humble

  • Gazebo: Harmonic

This is a well-documented combination and a good starting point if your priority is getting a working simulation environment.

Alternatively, Ubuntu 24.04 + ROS 2 Jazzy + Gazebo Harmonic is also a supported option if you prefer a newer development environment.

A few important points:

  1. Use the modern Gazebo simulator rather than Gazebo Classic.

  2. Start by checking that make px4_sitl gz_x500 runs successfully.

  3. For PX4–ROS 2 communication, configure the Micro XRCE-DDS Agent and ensure that your px4_msgs definitions match the PX4 version you are running.

  4. If ROS 2 needs to communicate directly with Gazebo, install the appropriate ros_gz bridge packages for your ROS 2 distribution.

Official references:

Are you planning to use ROS 2 primarily for offboard control, sensor integration, or autonomous navigation? That would help narrow down the recommended setup.

Best regards,
Yiğitcan Öztürk
PAMILANGA LTD

I would be using for sensor integration

Hi @sibujacob,

Thanks for clarifying. For sensor integration, I would keep the previously suggested PX4 + ROS 2 + Gazebo setup and build the integration incrementally.

I suggest starting with:

  1. PX4 SITL: Launch make px4_sitl gz_x500 and confirm that the vehicle is running correctly in Gazebo.

  2. PX4–ROS 2 communication: Start the Micro XRCE-DDS Agent and verify that you can subscribe to PX4 topics such as /fmu/out/vehicle_odometry.

  3. Simulated sensor: Add one sensor at a time (camera, LiDAR, IMU, or GPS) and verify that its data is available through the appropriate Gazebo–ROS 2 bridge.

  4. Sensor processing: Implement the processing pipeline in a separate ROS 2 node.

  5. PX4 integration: If the processed data must influence PX4 navigation or estimation, select the appropriate supported PX4 input interface and validate timestamps, coordinate frames, and message compatibility.

One important distinction: receiving sensor data in ROS 2 does not automatically make it available to the PX4 estimator. That requires an explicit integration path.

For camera or LiDAR data, I would generally begin with Gazebo → ros_gz_bridge → ROS 2, and only then integrate the processed output with PX4 if needed.

Could you clarify two things?

  • Which sensors are you planning to integrate (LiDAR, camera, IMU, GPS, or something else)?

  • Do you need the sensor data for ROS 2 processing only, or should PX4 use it for state estimation or autonomous control?

With those details, we can suggest a much more precise package and launch configu