Frequency-Aware Model Predictive Control

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

Abstract

This paper introduces a novel method for enhancing the robustness of robotic motion planning by directly penalizing high-frequency control signals within a Model Predictive Control (MPC) framework. By making the optimizer "frequency-aware," the authors enable the ANYmal quadruped robot to maintain stable locomotion on highly compliant, unmodeled surfaces—such as mattresses—where standard bandwidth-blind controllers typically fail. The approach bridges the sim-to-real gap by accounting for physical actuator limits and terrain compliance without requiring complex, computationally expensive environment models.

Introduction

A significant challenge in the "sim-to-real" transition for robotics is the discrepancy between idealized mathematical models and real-world physics. Standard controllers often assume infinite actuator bandwidth and perfectly rigid ground. However, physical actuators have inherent tracking limits, and surfaces like grass, sand, or foam are compliant. When an optimizer exploits an idealized model, it may generate high-frequency commands (sharp jerks in force or velocity) that the hardware cannot execute, leading to oscillations or system failure. Traditionally, this is addressed by manual "detuning" or complex environment modeling. This work proposes a more general solution: restricting the control plan's bandwidth to match the robot's physical capabilities.

Methodology

The core of the proposed approach is the use of Frequency-Shaped Cost Functions. Unlike standard quadratic costs that only penalize the magnitude of control inputs ($u^T R u$), this method transforms the cost into the frequency domain.

The frequency-dependent cost function $\bar{R}$ penalizes high-frequency components of the control signal, effectively acting as a high-pass filter for the optimizer.

By introducing a transfer function that acts as a high-pass filter for costs, the optimizer is forced to "pay a higher price" for high-frequency components. To solve this in the time domain for real-time MPC, the frequency filter is represented as a small linear system, and its internal states are appended to the robot's state vector. This "state augmentation" allows the use of Sequential Linear Quadratic MPC (SLQ-MPC), enabling real-time replanning at 40–70Hz on the ANYmal quadruped.

Experimental Results

The frequency-aware controller was evaluated in both physics-based simulations (Open Dynamics Engine) and real-world hardware experiments.

Simulation Performance

In simulations involving soft terrain, the frequency-aware controller demonstrated a significant improvement in force tracking, reducing Mean Squared Error (MSE) by up to 70% compared to a baseline controller. Furthermore, the approach allowed the robot to reach a top speed of 0.9 m/s, whereas the baseline failed at 0.6 m/s due to instabilities caused by high-frequency "chatter" in foot placement.

Hardware Validation

Real-world experiments were conducted using the ANYmal quadruped on various surfaces, including a hard lab floor, foam blocks, and a soft mattress.

The ANYmal robot successfully traversing a soft mattress, a task that causes standard controllers to fail due to unmodeled surface compliance.

On the soft mattress, the baseline controller failed almost immediately as it lost base height due to poor force tracking. In contrast, the frequency-aware controller remained stable, maintaining a smooth trot and consistent base height. Interestingly, the controller also exhibited emergent locomotion strategies; for instance, it naturally adopted a narrower, "inline" gait at higher speeds to avoid high-frequency lateral force changes.

Discussion and Conclusion

The primary insight of this work is that robustness to unmodeled compliance can be achieved by restricting the control bandwidth rather than modeling the environment explicitly. Because the method is integrated into the optimization (rather than being a post-processing filter), it exhibits "look-ahead" behavior, adjusting forces smoothly before foot-ground contact occurs.

Future work will address the current need for manual tuning of frequency parameters and explore online adaptation mechanisms where the robot senses terrain compliance in real-time. Additionally, applying similar frequency-shaping logic to the swing phase of locomotion could further enhance energy efficiency and motion smoothness.

Summary updated

Abstract

Transferring solutions found by trajectory optimization to robotic hardware remains a challenging task. When the optimization fully exploits the provided model to perform dynamic tasks, the presence of unmodeled dynamics renders the motion infeasible on the real system. Model errors cannot be only a result of model simplifications, but also naturally arise when deploying the robot in unstructured and nondeterministic environments. Predominantly, compliant contacts and actuator dynamics lead to bandwidth limitations. While classical control methods provide tools to synthesize controllers that are robust to a class of model errors, such a notion is missing in modern trajectory optimization, which is solved in the time domain. We propose frequency-shaped cost functions to achieve robust solutions in the context of optimal control for legged robots. Through simulation and hardware experiments we show that motion plans can be made compatible with bandwidth limits set by actuators and contact dynamics. The smoothness of the model predictive solutions can be continuously tuned without compromising the feasibility of the problem. Experiments with the quadrupedal robot ANYmal, which is driven by highly compliant series elastic actuators, showed significantly improved tracking performance of the planned motion, torque, and force trajectories and enabled the machine to walk robustly on terrain with unmodeled compliance.
BibTeX
@article{grandia2018frequency,
  author = {Ruben Grandia and Farbod Farshidian and Alexey Dosovitskiy and René Ranftl and Marco Hutter},
  title = {{Frequency-Aware Model Predictive Control}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2018},
  url = {https://openreview.net/forum?id=R8ld355y-Cne},
}
Figure