Embedded real-time nonlinear Model Predictive Control of an unstable robot
Constrained nonlinear MPC for a two-wheeled self-balancing robot, running in real time on embedded hardware.
- acados Real-Time Iteration: 143× faster than offline IPOPT (0.88 ms vs. 125 ms) with the same closed-loop performance.
- Runs at 200 Hz on a Raspberry Pi within a 5 ms budget: mean 2.58 ms, p99 3.12 ms.
- Lagrangian model identified from sensor data (88–91% fit on held-out experiments), with an Extended Kalman Filter closing the loop.




