Accelerating Model Predictive Control for Legged Robots through Distributed Optimization

Lorenzo Amatucci, Giulio Turrisi, Angelo Bratta, Victor Barasuol, Claudio SeminiarXiv 2024 · DOI

TL;DR

This paper introduces a distributed optimization framework for whole-body Model Predictive Control (MPC) in legged robots by splitting the robot's dynamics into smaller, parallel subsystems. Using consensus ADMM (Alternating Direction Method of Multipliers), the method achieves up to a 75% reduction in computation time compared to centralized approaches, enabling real-time control of complex systems like quadruped manipulators without sacrificing accuracy.

What Problem Does This Paper Address?

Legged robots require fast, online re-planning to navigate complex environments, making Model Predictive Control (MPC) a popular choice. However, full whole-body MPC is computationally heavy because nonlinear programming (NLP) solvers scale cubically ($O(n^3)$) with the number of state variables.

To stay within tight real-time control loops (typically 50Hz), researchers often resort to simplified models (like centroidal dynamics), which neglect limb dynamics and limit agile maneuvers. Furthermore, adding components like robotic arms to a quadruped exponentially increases the centralized computational burden. This creates a scalability wall that modern multi-core CPUs cannot easily overcome using traditional centralized solvers.

Methods

The authors propose Distributed Whole-Body MPC (DWMPC). Instead of solving one massive centralized Optimal Control Problem (OCP), they split the robot into distinct subsystems (e.g., front body/legs, back body/legs, and an articulated arm) that interact via virtual interaction wrenches.

Schematic of a quadruped robot split into three subsystems (front, back, arm) interacting via wrenches.

The core algorithm relies on Consensus ADMM. As shown in the control architecture below, each subsystem runs its own smaller OCP in parallel, optimizing its local variables. Coherence between the subsystems—preventing them from physically drifting apart at the interfaces—is enforced through a quadratic consensus penalty and dual variable updates in the cost function.

Block scheme of the proposed control framework highlighting the communication bus between the decomposed Subsystem Optimizations.

In the online receding horizon scheme, the solvers execute just one Newton step per control loop, exchanging their latest optimal trajectories over a communication bus before applying the torque commands to the robot.

Datasets

Not discussed in the paper. The method was evaluated using rigid-body dynamics simulations rather than static datasets. The authors used the MuJoCo physics engine along with Adam (for rigid-body dynamics) and Acados (an open-source SQP solver) to evaluate their control framework.

Key Insights and Ideas

  • Beating the Cubic Scaling Law: Because NLP solver complexity scales cubically ($O(n^3)$), breaking a single problem with $N$ variables into multiple parallel problems with significantly fewer variables yields massive computational savings. This benefit far outweighs the minor overhead of ADMM consensus iterations.
  • Plug-and-Play Scalability: Adding an articulated arm to a quadruped normally breaks centralized real-time constraints. In this distributed framework, the arm is simply treated as an independent parallel subsystem. The total computation time remains bounded by the slowest subsystem, meaning adding complexity doesn't necessarily increase latency.
  • Centralized Equivalence: Despite the approximations inherent in decoupling the dynamics at each iteration, the distributed solver successfully converges to the exact same steady-state solution as a state-of-the-art centralized whole-body MPC baseline.

Key Results

  • Massive Speedups: For a standard quadruped, the distributed controller halved the solving time. For a quadruped manipulator (quadruped + 6-DoF arm), the computation time dropped by 75% (a 4x speedup), reducing the average solve time from 40 ms (centralized) to just 10 ms (distributed).
  • Convergence and Accuracy: Numerical evaluations showed the residual error between subsystems quickly converges to sub-millimeter levels within a few iterations. Phase plots confirmed that the distributed approach closely matches the centralized baseline trajectory.
Comparison of solving times between centralized and distributed implementations for a quadruped and quadruped manipulator.

Limitations and Future Work

  • Simulation Only: The framework has only been validated in simulation (MuJoCo); physical hardware deployment remains a crucial next step to verify real-world robustness against communication latency and unmodeled dynamics.
  • Solver Flexibility: The current implementation is tied to Acados; the authors plan to integrate other nonlinear solvers like Crocoddyl and OCS2 to allow modular solver selection.
  • Morphological Expansion: Future work aims to extend this distributed decomposition to other complex robot structures, such as humanoid robots.

Summary updated

BibTeX
@misc{amatucci2024accelerating,
  author = {Lorenzo Amatucci and Giulio Turrisi and Angelo Bratta and Victor Barasuol and Claudio Semini},
  title = {{Accelerating Model Predictive Control for Legged Robots through Distributed Optimization}},
  year = {2024},
  eprint = {2403.11742},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.11742},
}
Figure