journal article·2025-08-19Open access

Comparison of NMPC and GPU-Parallelized MPPI for Real-Time UAV Control on Embedded Hardware

Riccardo Enrico, Mauro Mancini, Elisa Capello

Applied Sciences· Volume 15· Issue 16

Abstract

Unmanned Aerial Vehicles (UAVs) operating in complex environments require advanced control strategies beyond traditional linear approaches. This work presents a comprehensive comparative analysis of Nonlinear Model Predictive Control (NMPC) and Model Predictive Path Integral (MPPI) control for UAV trajectory tracking, with an emphasis on real-time implementation feasibility on embedded hardware. A modular ROS 2 framework enables runtime controller selection using CasADi/Acados for NMPC and JAX for MPPI implementations. Processor-in-the-Loop experiments on NVIDIA Jetson Orin Nano hardware evaluate computational performance under realistic resource constraints. Results demonstrate that MPPI achieves superior tracking performance, with an 18.6% improvement in overall RMSE compared to NMPC (0.8480 m to 0.6897 m) for trajectory following. Both controllers achieve real-time performance on embedded hardware, with GPU acceleration proving critical for MPPI success, enabling a 17.63 ms median computation time versus 31.02 ms for CPU-only execution. Systematic parameter analysis reveals optimal MPPI configurations of 40 horizon steps and 800–1250 samples for balancing performance with computational constraints imposed by the 50 Hz (20 ms) control frequency inherent to PX4 hardware compliance. This study validates that mainstream computational frameworks can deliver satisfactory real-time control performance on standard robotics hardware, significantly enhancing accessibility for practical UAV deployment while providing clear guidelines for control strategy selection in resource-constrained applications.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Adaptive Control of Nonlinear Systems · Robotic Path Planning Algorithms · Advanced Control Systems Optimization

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Mechanical and Aerospace Engineering, Politecnico di Torino, Corso Duca degli Abruzzi 24, 10129 Torino, Italy

Funding

Programme PRIN · European Union Next-GenerationEU

References (28)

Show source-provided references
1. Performance, Precision, and Payloads: Adaptive Nonlinear MPC for Quadrotors10.1109/LRA.2021.3131690 ↗
2. Sreenath, K., Lee, T., and Kumar, V. (2013, January 10–13). Geometric control and differential flatness of a quadrotor UAV with a cable-suspended load. Proceedings of the 52nd IEEE Conference on Decision and Control, Firenze, Italy.10.1109/CDC.2013.6760219 ↗
3. Boukabou, I., Kaabouch, N., and Rupanetti, D. (2024). Cybersecurity challenges in UAV systems: IEMI attacks targeting inertial measurement units. Drones, 8.10.3390/drones8120738 ↗
4. Zhang, Z., Zhou, Y., Zhang, Y., and Qian, B. (2024). Strong electromagnetic interference and protection in UAVs. Electronics, 13.10.3390/electronics13020393 ↗
5. Linear vs nonlinear mpc for trajectory tracking applied to rotary wing micro aerial vehicles10.1016/j.ifacol.2017.08.849 ↗
6. Carlos, B.B., Sartor, T., Zanelli, A., Frison, G., Burgard, W., Diehl, M., and Oriolo, G. (2020, January 13–15). An efficient real-time NMPC for quadrotor position control under communication time-delay. Proceedings of the 2020 16th International Conference on Control, Automation, Robotics and Vision (ICARCV), Shenzhen, China.10.1109/ICARCV50220.2020.9305513 ↗
7. Verheijen, P.C.N., Derkani, A.H., Agarwal, Y.A., Lazar, M., and Goswami, D. (2024, January 25–28). Multilevel parallel GPU implementation of SQP solvers for Nonlinear MPC. Proceedings of the 2024 European Control Conference (ECC), Stockholm, Sweden.10.23919/ECC64448.2024.10590998 ↗
8. Williams, G., Drews, P., Goldfain, B., Rehg, J.M., and Theodorou, E.A. (2016, January 16–21). Aggressive driving with model predictive path integral control. Proceedings of the 2016 IEEE International Conference on Robotics and Automation (ICRA), Stockholm, Sweden.10.1109/ICRA.2016.7487277 ↗
9. Model predictive path integral control: From theory to parallel computation10.2514/1.G001921 ↗
10. Pravitra, J., Ackerman, K.A., Cao, C., Hovakimyan, N., and Theodorou, E.A. (2020–24, January 24). L1-Adaptive MPPI Architecture for Robust and Agile Control of Multirotors. Proceedings of the 2020 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Las Vegas, NV, USA.10.1109/IROS45743.2020.9341154 ↗
11. Minařík, M., Pěnička, R., Vonásek, V., and Saska, M. (2024, January 14–18). Model predictive path integral control for agile unmanned aerial vehicles. Proceedings of the 2024 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Abu Dhabi, United Arab Emirates.10.1109/IROS58592.2024.10802756 ↗
12. Vlahov, B., Gibson, J., Gandhi, M., and Theodorou, E.A. (2024). MPPI-Generic: A CUDA Library for Stochastic Optimization. arXiv.
13. Control of fixed-wing UAV attitude and speed based on embedded nonlinear model predictive control10.1016/j.ifacol.2021.08.529 ↗
14. Pozzan, B., Elaamery, B., and Cenedese, A. (2022, January 23–25). Non-Linear Model Predictive Control for autonomous landing of a UAV on a moving platform. Proceedings of the 2022 IEEE Conference on Control Technology and Applications (CCTA), Trieste, Italy.10.1109/CCTA49430.2022.9966054 ↗
15. Optimizing UAV performance in turbulent environments using cascaded model predictive control algorithm and Pixhawk hardware10.1007/s40430-025-05693-9 ↗
16. Macenski, S., Soragna, A., Carroll, M., and Ge, Z. (2023). Impact of ROS 2 node composition in robotic systems. arXiv.10.1109/LRA.2023.3279614 ↗
17. Turrisi, G., Modugno, V., Amatucci, L., Kanoulas, D., and Semini, C. (2024, January 14–18). On the benefits of GPU sample-based stochastic predictive controllers for legged locomotion. Proceedings of the 2024 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Abu Dhabi, United Arab Emirates.10.1109/IROS58592.2024.10801698 ↗
18. Embedded Fast Nonlinear Model Predictive Control for Micro Aerial Vehicles10.1007/s10846-021-01522-y ↗
19. Elhesasy, M., Dief, T.N., Atallah, M., Okasha, M., Kamra, M.M., Yoshida, S., and Rushdi, M.A. (2023). Non-Linear Model Predictive Control Using CasADi Package for Trajectory Tracking of Quadrotor. Energies, 16.10.3390/en16052143 ↗
20. acados—A modular open-source framework for fast embedded optimal control10.1007/s12532-021-00208-8 ↗
21. Bradbury, J., Frostig, R., Hawkins, P., Johnson, M.J., Leary, C., Maclaurin, D., Necula, G., Paszke, A., VanderPlas, J., and Wanderman-Milne, S. (2025, August 16). JAX: Composable Transformations of Python+NumPy Programs, Available online: https://github.com/jax-ml/jax.
22. Multirotor aerial vehicles: Modeling, estimation, and control of quadrotor10.1109/MRA.2012.2206474 ↗
23. Meier, L., Honegger, D., and Pollefeys, M. (2015, January 26–30). PX4: A node-based multithreaded open source robotics framework for deeply embedded platforms. Proceedings of the 2015 IEEE International Conference on Robotics and Automation (ICRA), Seattle, WA, USA.10.1109/ICRA.2015.7140074 ↗
24. Π-MPPI: A projection-based model predictive path integral scheme for smooth optimal control of fixed-wing aerial vehicles10.1109/LRA.2025.3568323 ↗
25. Kovryzhenko, Y., Li, N., and Taheri, E. (2024). A Control System Design and Implementation for Autonomous Quadrotors with Real-Time Re-Planning Capability. Robotics, 13.10.3390/robotics13090136 ↗
26. (2025, August 16). Jetson Orin Nano Developer Kit Getting Started Guide|NVIDIA Developer. Available online: https://developer.nvidia.com/embedded/learn/jetson-orin-nano-devkit-user-guide/index.html.
27. Robot Operating System 2: Design, architecture, and uses in the wild10.1126/scirobotics.abm6074 ↗
28. (2025, August 16). Controller Diagrams|PX4 Guide (Main). Available online: https://docs.px4.io/main/en/flight_stack/controller_diagrams.