Whole-Body Nonlinear Model Predictive Control Through Contacts for Quadrupeds

Michael Neunert, Markus Stäuble, Markus Giftthaler, Carmine Dario Bellicoso, Jan Carius, Christian Gehring, Marco Hutter, Jonas BuchliIEEE RA-L 2017

Abstract

This paper introduces a significant advancement in legged locomotion by enabling real-time whole-body Nonlinear Model Predictive Control (NMPC) on physical hardware. By utilizing an explicit, auto-differentiable contact model and high-performance numerical engineering, the authors achieved solver rates up to 190 Hz. This 10x speedup over previous methods allows quadrupeds to optimize gait, contact timings, and foot placements dynamically while maintaining robustness against significant external disturbances.

Introduction: The Challenge of Legged Locomotion

Controlling quadruped robots has traditionally relied on a "divide and conquer" strategy. High-level planners typically use simplified models, such as a point mass, to determine foot placements, while low-level controllers attempt to track these trajectories using full robot dynamics. This separation often leads to failure in complex scenarios because high-level plans may be physically infeasible, or low-level controllers may lack the agility to adapt foot placements when the robot is disturbed.

Whole-body NMPC addresses these issues by considering the entire robot's dynamics and contact forces simultaneously. However, the computational complexity of NMPC has historically limited its application to slow update rates or required pre-defined contact schedules.

Methodology

The authors formulate the locomotion task as an unconstrained optimal control problem. The core of their approach lies in several key innovations:

Explicit and Auto-Differentiable Contact Model

Instead of treating contacts as hard constraints—which are computationally expensive for solvers—the framework uses a "soft" spring-damper model. This model is continuous and auto-differentiable, allowing the solver to "feel" the terrain and optimize contact timings and locations as part of the trajectory optimization process.

Efficient Solver Implementation

The system utilizes two iterative Gauss-Newton algorithms: iLQR (Iterative Linear Quadratic Regulator) and GNMS (Gauss-Newton Multiple Shooting). To achieve real-time performance, the authors employed RobCoGen for optimized code generation of robot dynamics and leveraged SIMD (AVX) vectorization to parallelize matrix operations at the CPU level.

Control loop architecture integrating the NMPC solver with state estimation and low-level PD control.

Numerical Stability

To handle the "stiff" dynamics associated with contact, the framework employs symplectic (semi-implicit) integration schemes. These provide superior numerical stability compared to standard Euler methods, which is crucial for maintaining solver convergence during high-speed maneuvers.

Experimental Validation

The proposed framework was validated on two distinct hardware platforms: the 80kg hydraulic HyQ robot and the 34kg electric, series-elastic ANYmal robot.

The HyQ (left) and ANYmal (right) quadruped robots used for hardware validation.

The robots were subjected to various tasks, including periodic trotting, squat jumps, and forward jumps. Robustness was tested through real-world disturbances, such as human shoves and unexpected obstacles placed in the robot's path.

Key Results and Insights

  • Performance: The GNMS solver reached update rates of 190 Hz, a substantial improvement over the ~20 Hz typical in prior research.
  • Emergent Behavior: Gait patterns like trotting emerged naturally from the optimization of the cost function, rather than being hard-coded.
  • Dynamic Maneuvers: The system successfully executed "squat jumps," requiring the robot to reason about energy accumulation in its joints before takeoff.
  • Robustness: The NMPC's 0.5s look-ahead horizon allowed the robots to behave compliantly. When pushed, the robots replanned their entire body trajectory and foot placements to maintain balance.

Discussion and Future Work

While the results are promising, the authors identify several areas for improvement. Currently, cost function weights require manual tuning, and the use of soft constraints for torque limits could be replaced with hard constraints to push the hardware closer to its physical limits. Future research will focus on integrating the NMPC with 3D terrain perception to navigate non-convex, complex environments and implementing online system identification to mitigate model mismatches.

Summary updated

BibTeX
@article{neunert2017whole,
  author = {Michael Neunert and Markus Stäuble and Markus Giftthaler and Carmine Dario Bellicoso and Jan Carius and Christian Gehring and Marco Hutter and Jonas Buchli},
  title = {{Whole-Body Nonlinear Model Predictive Control Through Contacts for Quadrupeds}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2017},
  doi = {10.1109/lra.2018.2800124},
}
Figure