Data-Driven MPC for Quadrotors

Guillem Torrente, Elia Kaufmann, Philipp Foehn, Davide Scaramuzza

Introduction

Quadrotors are renowned for their agility, yet their performance degrades significantly at high speeds. At low velocities, a drone can be modeled as a simple rigid body. However, as speeds exceed approximately 5 m/s, complex aerodynamic effects—such as fuselage drag, propeller downwash interference, and lift—become dominant.

Visualization of aerodynamic turbulence and downwash effects on a quadrotor, illustrating the complex forces that become dominant at high speeds.

These non-linear forces are notoriously difficult to model analytically. While Computational Fluid Dynamics (CFD) offers high fidelity, its computational demands are incompatible with the millisecond-level decision-making required for autonomous flight. Most existing controllers either ignore these effects, leading to significant trajectory drift, or rely on simplistic linear models that fail during aggressive maneuvers. This research addresses the challenge of creating a model that is accurate enough to capture these residual aerodynamic forces while remaining computationally efficient for real-time onboard execution.

Methodology

The researchers propose a hybrid control architecture that combines classical first-principles physics with machine learning.

Nominal Model and Residual Learning

The system begins with a Nominal Model based on standard quadrotor physics, accounting for mass, inertia, and thrust. To account for the "messy" physics of high-speed flight, the authors use Gaussian Processes (GPs) to model only the residual error—the difference between the nominal physics model and observed real-world behavior. This "Physics + ML" approach ensures the model remains grounded in known dynamics while learning complex aerodynamic corrections from data.

Real-Time Optimization

To maintain a 100Hz control loop, the authors employ a "sparse" GP approach. By using approximately 20 "inducing points"—representative data samples that summarize the aerodynamic landscape—they significantly reduce the computational burden of standard GPs. This mean prediction is integrated directly into a Model Predictive Control (MPC) optimization loop using tools like ACADOS and CasADi. The controller effectively "looks ahead," anticipating the aerodynamic drag it will encounter based on its predicted velocity and orientation.

Experimental Evaluation

The system was rigorously tested in both high-fidelity simulations (Gazebo RotorS) and real-world flight. Data was collected using a 0.8kg quadrotor in a motion-capture arena, training on aggressive "random" trajectories and testing on structured patterns like circles and lemniscates. To further challenge the controller, a "drag board" was attached to the drone to simulate extreme, asymmetric aerodynamic forces.

Key Results

The GP-MPC demonstrated substantial improvements in flight precision and robustness:

  • Tracking Accuracy: The GP-MPC achieved up to a 70% reduction in tracking error compared to a nominal MPC at high speeds.
  • High-Speed Performance: The system maintained stable control at speeds up to 14 m/s (approx. 31 mph) and accelerations exceeding 4g.
  • Robustness to Non-linearity: In the "drag board" experiment, where linear models often led to crashes due to unmodeled non-linear forces, the GP-MPC maintained precise control, outperforming linear alternatives by over 50%.
Tracking error comparison for a circular trajectory at varying maximum velocities. The GP-MPC significantly outperforms the nominal physics-based model as speeds increase.

The optimization consistently executed in under 5ms, proving the feasibility of sparse GP-augmented MPC for real-time robotic applications.

Conclusion and Future Work

This work highlights that augmenting physics-based models with learned residuals is superior to using machine learning in isolation. The researchers identified a "sweet spot" of complexity, finding that 20-25 inducing points provide optimal real-time performance. Future research will explore utilizing the GP's uncertainty (variance) for risk-aware control, implementing online learning to adapt to changing environmental conditions, and explicitly modeling external wind gusts.

Summary updated

BibTeX
@article{torrente2021data,
  author = {Guillem Torrente and Elia Kaufmann and Philipp Foehn and Davide Scaramuzza},
  title = {{Data-Driven MPC for Quadrotors}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2021},
  doi = {10.1109/lra.2021.3061307},
}
Figure