NMPC Acados PX4

Control
Python
Research
A production-ready Nonlinear Model Predictive Controller for quadrotors.

View on GitHub

This package implements a 9-state NMPC using the Acados solver with QPOASES — a rigorous, well-understood approach that was used as the primary comparison baseline for the Newton-Raphson Flow work. If you need a solid NMPC reference implementation for your own quadrotor research, this is a clean starting point.

The controller tracks position, velocity, and Euler angles jointly with a configurable error-based cost formulation, wrapped yaw error handling to avoid angle discontinuities, and hard input constraints on thrust and body rates. C-code is generated by Acados for real-time computation.

Key features:

Built with: Python · Acados · QPOASES · ROS 2 · PX4