Sim-to-Real: Learning Agile Locomotion For Quadruped Robots

Jie Tan, Tingnan Zhang, Erwin Coumans, Atil Iscen, Yunfei Bai, Danijar Hafner, Steven Bohez, Vincent Vanhoucke

Abstract

Translating Deep Reinforcement Learning (RL) from simulated environments to physical hardware remains a significant challenge in robotics due to the "reality gap." This paper, a collaboration between Google Brain, X, and Google DeepMind, presents a sim-to-real pipeline for quadruped robots. By integrating high-fidelity physics modeling, system identification, and dynamics randomization, the authors successfully deployed agile gaits—such as trotting and galloping—directly onto a Ghost Robotics Minitaur. The learned policies demonstrated superior energy efficiency and speed compared to traditional, handcrafted controllers.

Introduction: Bridging the Reality Gap

Designing controllers for quadruped robots is notoriously difficult. These systems are under-actuated and highly dynamic, where minor errors in contact timing can lead to catastrophic falls. While RL offers a path to automate this design, the "reality gap"—caused by unmodeled friction, incorrect mass parameters, and control latency—often prevents simulated success from translating to the real world. This work addresses these discrepancies to enable robust, high-speed locomotion.

Methods: Robust Policy Learning

The researchers utilized Proximal Policy Optimization (PPO) within the PyBullet physics engine. Their approach relied on three core strategies:

  1. Hybrid Policy Representation: Instead of learning from scratch, the agent used a hybrid formula: $a(t, o) = \bar{a}(t) + \pi(o)$. This combines a user-provided open-loop reference ($\bar{a}(t)$) with a learned feedback component ($\pi(o)$) for balance.
  2. System Identification and Fidelity: The team performed detailed measurements of the robot's components and implemented a custom DC motor model. Crucially, they modeled the 15–19ms latency inherent in the onboard control loop.
  3. Dynamics Randomization: To prevent overfitting to simulation, physical properties like friction and mass were varied during training. The agent was also subjected to random perturbations ("pushes") to improve stability.
The control architecture bridges high-level neural network policies with low-level motor commands and sensor feedback.

Results: Agile and Efficient Locomotion

The pipeline enabled the robot to perform complex gaits in the real world without hardware-specific fine-tuning.

A side-by-side comparison of the quadruped robot's gait in simulation versus the real-world environment.

Key performance metrics included:

  • Energy Efficiency: The learned galloping gait was 35% more efficient than expert-tuned versions, while trotting saw a 23% improvement.
  • Speed: The robot achieved a real-world galloping speed of 1.18 m/s, nearly matching its simulated performance of 1.34 m/s.
  • Robustness: A compact observation space (focusing on IMU data) proved more effective for transfer than high-dimensional inputs, as it forced the agent to learn generalized balance features.

Conclusion and Future Work

This research demonstrates that high-fidelity modeling of actuators and latency is critical for closing the reality gap. While successful on flat terrain, future iterations will focus on integrating vision systems to navigate complex environments and enabling dynamic transitions between different gaits.

Summary updated

BibTeX
@inproceedings{tan2018sim,
  author = {Jie Tan and Tingnan Zhang and Erwin Coumans and Atil Iscen and Yunfei Bai and Danijar Hafner and Steven Bohez and Vincent Vanhoucke},
  title = {{Sim-to-Real: Learning Agile Locomotion For Quadruped Robots}},
  booktitle = {Robotics: Science and Systems},
  year = {2018},
  doi = {10.15607/rss.2018.xiv.010},
}
Figure