SKIP TO CONTENT
← THE HANGAR

[HGR] simulated

PX4 vision tracking

A ROS 2 vision system tested in simulation tracks a moving target and sends flight commands to PX4.

PX4ROS 2YOLOOpenCVGazeboQGroundControl

Project footage

Watch on YouTube ↗
autopilot
PX4 SITL
vision
YOLO + Depth
control
ROS 2 Offboard
stage
Simulation

Architecture

Turning an image detection into a flight command

A bounding box locates a target in the camera image, but the aircraft also needs a sense of distance. The project paired color detections with depth data and used a ROS 2 controller to send tracking commands to PX4. The camera feed was also visible in QGroundControl.

Functional diagram of the PX4 vision tracking systems
Color detections locate the target in the image. Depth supplies range. The ROS 2 controller combines them for the simulated PX4 aircraft.

Bill of materials

Hardware & subsystem stack

  • ▸PX4 Autopilot (SITL) on a Quadcopter Model
  • ▸Depth Camera (OAK-D Model in Gazebo)
  • ▸YOLO Target Detector (ROS 2 Node)
  • ▸Offboard Follow Controller (ROS 2 Node)
  • ▸Video Stream to QGroundControl

Validation

What the simulation exercised

The recorded Gazebo run brings perception, offboard control and the ground display into the same test. The detection view lets a reviewer see what the controller was following. Camera latency and tracking accuracy on a physical aircraft remain open questions.

Bounding boxes mark detections in the simulated camera feed.
Bounding boxes mark detections in the simulated camera feed.

[RFQ] Engineering inquiries

Commission a similar study or build

Working on a custom airframe, payload integration, or autonomous PX4/ROS 2 workflow? Send your operating constraints and timeline for a scoped design review or engineering quote.

Discuss an engineering projectBack to full hangar