Skip to content

Computer Vision (Optical Flow, MoCap, VIO, Avoidance)

Computer vision techniques enable computers to use visual data to make sense of their environment.

PX4 uses computer vision systems (primarily running on Companion Computers) in order to support the following features:

  • Pose/Velocity Estimation:
    • Optical Flow provides 2D velocity estimation (using a downward facing camera and a downward facing distance sensor).
    • Motion Capture provides 3D pose estimation using a vision system that is external to the vehicle. It is primarily used for indoor navigation.
    • Visual Inertial Odometry (VIO) provides 3D pose and velocity estimation using an onboard vision system and IMU. It is used for navigation when global position information is absent or unreliable.
  • Avoidance/Path Planning:
    • Collision Prevention is used to stop vehicles before they can crash into an obstacle (primarily when flying in manual modes).

TIP

The PX4 Vision Autonomy Development Kit (Holybro) is a robust and inexpensive kit for developers working with computer vision on PX4.

External Resources

  • XTDrone - ROS + PX4 v1.9 simulation environment for computer vision. The XTDrone Manual has everything you need to get started!