Learning a Contact-Adaptive Controller for Robust, Efficient Legged Locomotion

Xingye Da, Zhaoming Xie, David Hoeller, Byron Boots, Anima Anandkumar, Yuke Zhu, Buck Babich, Animesh Garg

TL;DR

This paper introduces a hierarchical control system for quadruped robots that combines model-based control with reinforcement learning. This approach allows the robot to adapt its locomotion strategy in real-time to challenging and novel environmental conditions, leading to more robust and energy-efficient movement than traditional methods.

What Problem Does This Paper Address?

Legged robots, particularly quadrupeds, are adept at locomotion through various gaits like walking and trotting. However, adapting these gaits to unexpected environmental changes – such as slippery surfaces, uneven terrain, or sudden disturbances – remains a significant challenge. Traditional controllers often rely on pre-defined contact sequences (which feet are on the ground vs. in the air), making them brittle when faced with situations not encountered during training. While some methods can adapt, they often require computationally expensive trajectory optimization or extensive online data collection, which is impractical for real-time control. This paper aims to bridge this gap by developing a controller that can learn to dynamically adjust its contact strategy for robust and efficient locomotion in diverse and unforeseen circumstances.

Methods

The core of the proposed solution is a hierarchical control framework. This system comprises two main components:

  • High-Level Controller (RL-based): This component, running at 2.5 Hz, uses reinforcement learning (specifically a DQN-like algorithm) to select a "primitive" – a specific contact configuration for the robot's four feet (e.g., which feet are in stance and which are swinging). The state input to this controller includes the robot's body pose, velocities, and relative foot positions, along with the previously used primitive. The RL agent learns to choose primitives that optimize for energy efficiency and stability in response to environmental changes.
  • Low-Level Controller (Model-based): Running at a much higher frequency (500 Hz), this controller takes the primitive chosen by the high-level controller and generates the necessary motor torques. It uses a model-based approach, employing quadratic programming (QP) to compute foot forces that achieve desired base pose control and track target foot positions for swinging legs, while respecting contact and friction constraints. This model-based component provides high-bandwidth feedback and ensures robustness.

The novelty lies in the combination of these two levels: the RL agent learns to dynamically select which pre-defined low-level primitives to execute, enabling adaptive behavior without needing to learn the entire complex dynamics from scratch. This hierarchical structure allows for sample-efficient learning and direct sim-to-real transfer.

Datasets

The paper primarily uses a simulated Unitree Laikago quadruped in NVIDIA's Isaac Gym simulator for training and evaluation. The training scenarios involve a split-belt treadmill where belt speeds are varied, the robot's orientation is changed, and one belt can be paused. These variations are designed to expose the controller to a wide range of dynamic conditions.

For testing, the paper introduces several novel scenarios:

  • Fixed bridge: The robot must navigate with its front legs on a stable bridge.
  • "Banana peel" test: A frictionless mat is placed under one foot to simulate slipping.
  • Split-belt treadmill with varying speeds and yaw angles: These are used to evaluate energy efficiency and robustness.

The controller is also tested on a physical Unitree Laikago robot to demonstrate sim-to-real transfer.

Key Insights and Ideas

  • Hierarchical control is key for adaptive locomotion: Decomposing the problem into high-level primitive selection (learned) and low-level execution (model-based) allows for efficient adaptation to complex dynamics.
  • RL can learn to select how to move, not just how to move: Instead of learning a single, monolithic policy, the RL agent learns to orchestrate pre-defined movement primitives, which is more sample-efficient and robust.
  • Novel contact sequences emerge naturally: The learned controller generates contact patterns that are not typically seen in standard model-based or purely learned approaches, demonstrating a more nuanced understanding of locomotion.
  • Sim-to-real transfer is surprisingly straightforward: The robustness of the model-based low-level controller and the adaptive nature of the high-level controller significantly reduce the sim-to-real gap, allowing for direct deployment without extensive tuning.

Key Results

  • Energy Efficiency: The learned controller achieved up to 85% more energy efficiency compared to baseline controllers in various scenarios, particularly at higher speeds and during split-belt treadmill tests.
  • Robustness: The controller demonstrated significant robustness, successfully handling novel scenarios like the "banana peel" test (slipping) and bridge navigation, where baseline controllers often failed.
  • Adaptive Contact Sequences: The controller dynamically adjusted its contact sequences in response to changing treadmill speeds and orientations, as visualized in Figure 5, showcasing adaptive behaviors beyond fixed gaits.
  • Sample Efficiency: The RL training required a relatively small number of samples (around 10⁵) compared to other end-to-end RL approaches for quadruped locomotion (which can require 10⁸-10⁹ samples).
  • Sim-to-Real Success: The controller performed well on the physical robot without any randomization or adaptation schemes, indicating a strong sim-to-real transfer capability.

Limitations and Future Work

  • Limited Primitive Set: While the framework is general, the current implementation uses a fixed set of 9 primitives. Future work could explore learning or expanding this primitive set.
  • High-Level Controller Design: The paper focuses on learning the primitive selection policy. While the low-level controller is model-based, integrating more sophisticated model-based elements or learning components at the low level could further enhance performance.
  • Real-World Deployment: While sim-to-real transfer was successful, the paper notes that COVID-19 limited extensive physical robot testing. Further real-world validation across a wider range of conditions would be beneficial.
  • Navigation Integration: The paper suggests that a navigation module could be easily added to the framework, implying future work could focus on integrating learned locomotion with higher-level navigation tasks.

Summary updated

BibTeX
@inproceedings{da2020learning,
  author = {Xingye Da and Zhaoming Xie and David Hoeller and Byron Boots and Anima Anandkumar and Yuke Zhu and Buck Babich and Animesh Garg},
  title = {{Learning a Contact-Adaptive Controller for Robust, Efficient Legged Locomotion}},
  booktitle = {Conference on Robot Learning},
  year = {2020},
  url = {https://openreview.net/forum?id=s4E7Jw902Gf},
}
Figure