AlphaPilot: Autonomous Drone Racing

Philipp Foehn, Dario Brescianini, Elia Kaufmann, Titus Cieslewski, Mathias Gehrig, Manasi Muglikar, Davide Scaramuzza

Here is a concise, engaging summary of the paper "AlphaPilot: Autonomous Drone Racing."

TL;DR

This paper presents an autonomous, vision-based drone racing system that combines a deep-learning perception pipeline, an Extended Kalman Filter (EKF), and a real-time trajectory planner. By leveraging multiple simultaneous gate detections to eliminate visual-inertial odometry drift and build a global map, the system achieved speeds up to 8 m/s and secured second place at the prestigious 2019 AlphaPilot Challenge.

What Problem Does This Paper Address?

Autonomous drone racing pushes the absolute limits of robotic perception, estimation, and control. When a quadrotor flies at high speeds, its intense translational and rotational velocities create massive optic flow and motion blur. This severely degrades standard Visual-Inertial Odometry (VIO) algorithms, causing the drone's state estimate to rapidly drift.

While previous approaches attempted to use racing gates as landmarks to correct this drift, they typically suffered from major limitations: they could only detect the immediate next gate, failed when multiple gates were visible simultaneously, or ignored the complex, underactuated dynamics of the quadrotor during path planning. This paper introduces a system capable of mapping and navigating a complex race course in real time, even when gates are temporarily out of view.

Methods

The authors split their architecture into three main components:

Overview of the system architecture and its functional groups.
  1. Perception (CNN + PAFs): Instead of predicting a single bounding box or relative pose, the drone uses a lightweight, customized U-Net to detect the inner corners of all visible gates. To handle cases where multiple gates overlap, the network predicts Part Affinity Fields (PAFs)—vector fields pointing from one corner to the next along a gate's edge—allowing the system to correctly associate corners with their respective gates.
  2. State Estimation (EKF): The system fuses standard VIO (using ROVIO) with the CNN's gate corner detections and a downward-facing laser rangefinder via an EKF. Crucially, the EKF treats the gates as stationary landmarks, using them to simultaneously build a global map and estimate (and cancel out) the VIO drift.
  3. Receding Horizon Path Planning: Using simplified point-mass dynamics, the planner computes time-optimal "bang-bang" motion primitives. To make this computationally feasible for real-time onboard execution, the path is planned in a receding horizon fashion (looking only $N$ gates ahead) and smoothed using 4th-order polynomials for precise tracking.

Datasets

The neural network was trained on a real-world dataset collected across 5 different environments, consisting of 28,000 images (24k for training, 4k for validation). The images were hand-annotated with gate corners and augmented using KLT-Tracking alongside random variations in rotation, brightness, hue, and contrast to ensure robustness against changing lighting conditions.

Key Insights and Ideas

  • Multi-Gate Synergy: Unlike prior work that strictly focused on the "next" gate, this system profits from seeing multiple gates at once. Every additional gate detection provides more constraints to eliminate VIO drift and refine the global map.
  • Receding Horizon Efficiency: The authors discovered that planning just 3 gates ahead ($N=3$) yields a flight time nearly identical to planning across the entire full track, but reduces the computational cost exponentially. This allowed the path planner to run in under 2 ms onboard.
  • Data Abstraction via Corners: Predicting corner heatmaps rather than direct 3D poses makes the CNN highly resilient to partial occlusions and gates that are partially cut off by the camera's frame.
The two-stage gate detection pipeline predicting corner maps and Part Affinity Fields (PAFs).

Key Results

  • AlphaPilot Performance: Deployed on an identical 3.4 kg challenge drone powered by an NVIDIA Jetson Xavier, the system successfully navigated a 74-meter championship course in 11.36 seconds, reaching a top speed of 8 m/s (average speed of 6.5 m/s).
  • Reliability: The system achieved a 100% success rate at 5 m/s and a 60% success rate at 8 m/s.
  • Perception Speed: Optimized with TensorRT in FP16 half-precision, the gate detection network achieved an inference latency of just 10.5 ms on the embedded Xavier platform, matching the camera's frame rate.

Limitations and Future Work

The primary failure mode at high speeds (8 m/s) occurred when a total VIO tracking failure coincided with a lack of visible gates, causing the drone to drift blindly and crash.

To mitigate this, the authors suggest tightly coupling the gate detections directly into the VIO pipeline rather than fusing them downstream in an EKF. Additionally, they propose developing a perception-aware path planner that actively balances the trade-off between the fastest line and lines that minimize motion blur or maximize gate visibility. Finally, future iterations must account for dynamic environments, such as moving gates or competing drones.

Summary updated

Abstract

This paper presents a novel system for autonomous, vision-based drone racing combining learned data abstraction, nonlinear filtering, and time-optimal trajectory planning. The system has successfully been deployed at the first autonomous drone racing world championship: the 2019 AlphaPilot Challenge. Contrary to traditional drone racing systems, which only detect the next gate, our approach makes use of any visible gate and takes advantage of multiple, simultaneous gate detections to compensate for drift in the state estimate and build a global map of the gates. The global map and drift-compensated state estimate allow the drone to navigate through the race course even when the gates are not immediately visible and further enable to plan a near time-optimal path through the race course in real time based on approximate drone dynamics. The proposed system has been demonstrated to successfully guide the drone through tight race courses reaching speeds up to 8m/s and ranked second at the 2019 AlphaPilot Challenge.
BibTeX
@inproceedings{foehn2020alphapilot,
  author = {Philipp Foehn and Dario Brescianini and Elia Kaufmann and Titus Cieslewski and Mathias Gehrig and Manasi Muglikar and Davide Scaramuzza},
  title = {{AlphaPilot: Autonomous Drone Racing}},
  booktitle = {Robotics: Science and Systems},
  year = {2020},
  doi = {10.15607/rss.2020.xvi.081},
}
Figure