Robot Parkour Learning

Ziwen Zhuang, Zipeng Fu, Jianren Wang, Christopher G Atkeson, Sören Schwertfeger, Chelsea Finn, Hang Zhao

Abstract

Parkour is a grand challenge for legged locomotion that requires robots to overcome various obstacles rapidly in complex environments. Existing methods can generate either diverse but blind locomotion skills or vision-based but specialized skills by using reference animal data or complex rewards. However, autonomous parkour requires robots to learn generalizable skills that are both vision-based and diverse to perceive and react to various scenarios. In this work, we propose a system for learning a single end-to-end vision-based parkour policy of diverse parkour skills using a simple reward without any reference motion data. We develop a reinforcement learning method inspired by direct collocation to generate parkour skills, including climbing over high obstacles, leaping over large gaps, crawling beneath low barriers, squeezing through thin slits, and running. We distill these skills into a single vision-based parkour policy and transfer it to a quadrupedal robot using its egocentric depth camera. We demonstrate that our system can empower low-cost quadrupedal robots to autonomously select and execute appropriate parkour skills to traverse challenging environments in the real world.

The Challenge of Autonomous Parkour

While high-end robots like Boston Dynamics’ Atlas can perform stunning parkour, they typically rely on massive engineering efforts, expensive hardware, and often pre-mapped environments. For low-cost, mass-produced robots like the Unitree A1, parkour presents a "grand challenge" due to several factors:

  1. Hard Exploration: In standard Reinforcement Learning (RL), a robot might never learn to climb a wall because it simply bumps into it and stops, never receiving a reward for reaching the other side.
  2. Perception-Action Coupling: Parkour requires tight integration between depth sensing and movement, often at high speeds where even a 0.2-second delay can lead to a 20cm positioning error.
  3. Skill Diversity: A single robot needs to autonomously switch between running, leaping, and crawling based on the obstacle in front of it.

Learning Framework: From Soft Dynamics to Skill Distillation

The proposed system moves away from hand-tuned, complex reward functions in favor of a principled learning pipeline.

Two-Stage RL (Soft to Hard Dynamics)

Inspired by "direct collocation" in trajectory optimization, the researchers first train the robot in a simulation where obstacles are penetrable. A "penetration reward" encourages the robot to move through the obstacle while minimizing the volume of its body that overlaps with the object. This allows the agent to "discover" the path over or through an obstacle without getting stuck. In the second stage, the physics are "hardened" to be realistic, and the policy is fine-tuned.

Skill Distillation via DAgger

The team trained five specialized "teacher" policies (Climb, Leap, Crawl, Tilt, and Run) using privileged information such as exact obstacle dimensions. These were then distilled into a single "student" policy using the DAgger (Dataset Aggregation) algorithm. This student policy relies only on raw depth images and onboard proprioceptive sensors.

The training environment in simulation, featuring tracks with obstacles of increasing difficulty used for skill distillation.

Sim-to-Real Pipeline

To transfer the simulation-trained policy to the real world, heavy pre-processing is applied to depth images—including Gaussian noise, "hole-filling" filters, and temporal smoothing—to account for the noisy data produced by real-world depth cameras.

Key Results and Insights

The system empowered low-cost robots to achieve impressive physical feats in both indoor lab setups and unstructured outdoor environments.

Overview of diverse parkour skills learned by the quadruped robot, including climbing, leaping, crawling, and tilting.
  • Climbing: Cleared obstacles up to 0.40m (1.53x the robot's height) with an 86% success rate in simulation.
  • Leaping: Jumped across gaps of 0.60m (1.5x the robot's length) with an 80% success rate.
  • Crawling & Tilting: Successfully navigated barriers as low as 0.2m and squeezed through slits as narrow as 0.28m by tilting its body.
  • Emergent Behavior: In the real world, the robot displayed "re-trying" behavior. If it failed a climb, it would autonomously back up to get a better "run-up" for the next attempt—a behavior that emerged naturally from the learning process.

A critical insight was the necessity of memory. The authors found that a simple MLP failed at climbing and leaping; instead, a Gated Recurrent Unit (GRU) was required. This provides the robot with "short-term memory"—for example, once the front legs are over a wall, the camera can no longer see the wall, so the robot must remember the wall's height to coordinate its hind legs. Furthermore, vision proved indispensable: "blind" policies achieved 0% success on climbing and leaping.

Limitations and Future Work

Currently, simulation environments must be manually designed. Future work suggests using 3D generative models to automatically create training environments from real-world scans. Additionally, while depth cameras are effective, they can struggle in bright sunlight or with reflective surfaces; moving toward pure RGB vision could provide more robust semantic information. Finally, parkour pushes electric motors to their thermal limits, necessitating more proactive measures to prevent hardware damage in future iterations.

Summary updated

BibTeX
@inproceedings{zhuang2023robot,
  author = {Ziwen Zhuang and Zipeng Fu and Jianren Wang and Christopher G Atkeson and Sören Schwertfeger and Chelsea Finn and Hang Zhao},
  title = {{Robot Parkour Learning}},
  booktitle = {Conference on Robot Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=uo937r5eTE},
}
Figure