NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Feedback MPC for Torque-Controlled Legged Robots

Ruben Grandia, Farbod Farshidian, René Ranftl, Marco Hutter

Abstract

This paper presents a method to bridge the computational gap between slow Model Predictive Control (MPC) updates and the high-speed requirements of legged robot hardware. By leveraging the feedback policy inherent in Differential Dynamic Programming (DDP) and introducing frequency-dependent costs and relaxed barrier functions, the authors achieved stable, torque-controlled locomotion on the ANYmal quadruped at update rates as low as 15 Hz.

Introduction

Controlling a legged robot is a complex balancing act. Model Predictive Control (MPC) is widely considered the gold standard for this task because it can look ahead and plan for future contact changes. However, MPC is computationally expensive. On mobile robots with limited onboard power, MPC might only update at 15–30 Hz, while the robot's motors require commands at 400 Hz or higher to remain stable.

Traditionally, this gap is bridged using a "slow" MPC to generate a plan and a "fast" separate tracking controller to follow it. However, standard trackers often lack knowledge of the MPC’s future plans or physical constraints like friction. This inconsistency can lead to instability, especially when the robot encounters unexpected terrain or external disturbances.

Methodology

The authors propose using the feedback policy naturally generated during the optimization process of MPC, specifically utilizing a variant of Differential Dynamic Programming (DDP) called Sequential Linear Quadratic (SLQ) control. This approach provides a mathematically consistent way to provide high-speed feedback without a separate, hand-tuned tracking controller.

Relaxed Barrier Functions

Standard "log-barrier" functions are used to keep variables within bounds, such as keeping a foot inside a friction cone. However, these can cause numerical failures if the robot's state accidentally drifts out of bounds during a simulation step. The authors introduced a "relaxed" version that remains differentiable and numerically stable even if constraints are briefly violated.

Comparison of the standard log-barrier ($B_{log}$) and the proposed relaxed barrier function ($B_{rel}$), which maintains stability during constraint violations.

Frequency-Dependent Cost Functions

High-gain feedback can cause "chatter" or excite unmodeled vibrations in real robot hardware. By augmenting the state space with filters, the authors penalized high-frequency control actions. This "softens" the feedback gains, making them safe to deploy on real actuators with limited bandwidth.

Constraint-Consistent Gains

The SLQ algorithm was modified to ensure that the feedback gains ($K$) respect equality constraints (e.g., a foot not moving when it's on the ground) and inequality constraints (e.g., not pulling on the ground).

Key Insights: Self-Extinguishing Gains

One of the most elegant findings of this research is that as a contact force approaches a constraint boundary—for instance, when a foot is about to lift off—the barrier function naturally causes the feedback gains for that foot to drop to zero. The robot effectively "knows" it can no longer rely on that foot for corrections, ensuring stability during gait transitions.

Time-series data showing contact forces ($F_z$) and the corresponding feedback gains ($\\max(|K|)$) for each leg. Note how gains drop as forces approach zero.

Experimental Results

The method was evaluated using a high-fidelity simulation and the physical ANYmal robot, a torque-controlled quadruped.

  • Low Update Rate Stability: The robot achieved stable trotting and dynamic walking with MPC updates as low as 15 Hz.
  • Smoothness: Compared to feedforward-only methods, the feedback MPC significantly reduced discontinuities in desired acceleration when new plans were generated.
  • Disturbance Rejection: In hardware tests, the robot maintained its balance even when a 5.7 kg weight (roughly 15% of its body mass) was suddenly placed on its back.
  • Hardware Deployment: The results demonstrate that frequency shaping is a critical component for allowing LQR-style gains to work on real torque-controlled hardware without causing instability.

Conclusion and Future Work

While the current implementation requires a predefined contact sequence, it successfully demonstrates that optimized feedback policies can bridge the frequency gap in robotic control. Future research will focus on extending this framework to optimize contact timings and locations online, further increasing the robot's agility in unpredictable environments.

Summary updated

BibTeX
@inproceedings{grandia2019feedback,
  author = {Ruben Grandia and Farbod Farshidian and René Ranftl and Marco Hutter},
  title = {{Feedback MPC for Torque-Controlled Legged Robots}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2019},
  doi = {10.1109/iros40897.2019.8968251},
}
Figure