Embedded Hierarchical MPC for Autonomous Navigation

Dennis Benders, Johannes Köhler, Thijs Niesten, Robert Babuska, Javier Alonso-Mora, Laura Ferranti · OpenReview

Abstract

To efficiently deploy robotic systems in society, mobile robots need to autonomously and safely move through complex environments. Nonlinear model predictive control (MPC) methods provide a natural way to find a dynamically feasible trajectory through the environment without colliding with nearby obstacles. However, the limited computation power available on typical embedded robotic systems, such as quadrotors, poses a challenge to running MPC in real-time, including its most expensive tasks: constraints generation and optimization. To address this problem, we propose a novel hierarchical MPC scheme that consists of a planning and a tracking layer. The planner constructs a trajectory with a long prediction horizon at a slow rate, while the tracker ensures trajectory tracking at a relatively fast rate. We prove that the proposed framework avoids collisions and is recursively feasibility. Furthermore, we demonstrate its effectiveness in simulations and lab experiments with a quadrotor that needs to reach a goal position in a complex static environment. The code is efficiently implemented on the quadrotor's embedded computer to ensure real-time feasibility. Compared to a state-of-the-art single-layer MPC formulation, this allows us to increase the planning horizon by a factor of 5, which results in significantly better performance.

The Computational Challenge of Embedded Autonomy

Autonomous robots must solve two problems simultaneously: planning (finding a path around distant obstacles) and tracking (reacting quickly to stay on that path). Nonlinear Model Predictive Control (NMPC) is often considered the "gold standard" for this task because it can handle complex robot physics and safety constraints directly.

However, NMPC is computationally expensive. On embedded hardware like a drone's onboard computer, engineers face a brutal trade-off. A long prediction horizon allows the robot to see far ahead but takes too long to solve in real-time. Conversely, a high-frequency controller reacts quickly to stay stable but can only "see" a few centimeters ahead, making the robot effectively blind to distant obstacles. Standard single-layer MPCs (SMPC) often fail in complex environments because they cannot look far enough ahead without exceeding the onboard CPU's limits.

Methods: The Hierarchical MPC Architecture

The core innovation of this work is a Hierarchical MPC (HMPC) scheme. This framework consists of two layers that use the same nonlinear model but operate at different temporal scales:

  • The Planner (PMPC): Runs at a slow rate (e.g., 2 Hz) with a long prediction horizon. It looks far into the future to find a feasible path through obstacles.
  • The Tracker (TMPC): Runs at a high rate (e.g., 20 Hz) with a short horizon. Its primary role is to ensure the robot follows the trajectory provided by the planner while maintaining stability.
The HMPC framework decouples offline terminal design from online planning and tracking layers to ensure real-time feasibility.

The "Secret Sauce": Constraint Tightening

Simply running two MPCs in parallel is not enough to guarantee safety. To bridge the gap between the slow planner and the fast tracker, the authors employ constraint tightening. By calculating the maximum possible tracking error of the TMPC offline, they can "shrink" the allowed space for the Planner. This ensures the Planner leaves a mathematical "safety buffer" around every obstacle. Even if the Tracker deviates slightly from the plan due to noise or dynamics, the robot is guaranteed to remain within a collision-free zone.

Experimental Validation and Results

The system was validated using high-fidelity Gazebo simulations and real-world experiments on a quadrotor equipped with an NVIDIA Jetson Xavier NX. The environment consisted of a 12x12m area with various static obstacles.

The proposed HMPC successfully navigates a complex obstacle course, maintaining a smooth trajectory from start to end.

Key results from the study include:

  • Efficiency: In lab tests, the HMPC reached the goal in 8.1 seconds, whereas the baseline single-layer MPC took 35.1 seconds. The baseline frequently became "stuck" behind obstacles because its short horizon could not find a path around them.
  • Extended Horizon: By decoupling the layers, the HMPC achieved a planning horizon 5 times longer than standard methods.
  • Real-Time Feasibility: On the Jetson Xavier NX, the Planner required ~37.7ms and the Tracker ~24.1ms, both fitting comfortably within their respective real-time windows.

Conclusion and Future Work

This hierarchical approach proves that rigorous safety and stability guarantees can be maintained even when decoupling planning from control. By using full nonlinear dynamics in both layers and applying mathematical constraint tightening, the HMPC framework allows quadrotors to navigate complex environments much faster than previously possible on embedded hardware. Future work will look toward extending these proofs to dynamic environments with moving obstacles and integrating onboard sensing like LiDAR for true "out-of-the-box" autonomy.

Summary updated

BibTeX
@article{benders2025embedded,
  author = {Dennis Benders and Johannes Köhler and Thijs Niesten and Robert Babuska and Javier Alonso-Mora and Laura Ferranti},
  title = {{Embedded Hierarchical MPC for Autonomous Navigation}},
  journal = {IEEE Trans. Robotics},
  year = {2025},
  url = {https://openreview.net/forum?id=12l25yqbGc},
}
Figure