Legged Locomotion in Challenging Terrains using Egocentric Vision

Ananye Agarwal, Ashish Kumar, Jitendra Malik, Deepak Pathak · DOI

Abstract

This paper introduces a robust end-to-end locomotion system designed to enable small quadruped robots to navigate highly challenging terrains, including stairs, gaps, and stepping stones, using only a single front-facing depth camera. By utilizing a two-phase teacher-student reinforcement learning strategy and Gated Recurrent Units (GRUs) for short-term temporal memory, the system allows the robot to "remember" terrain features it has previously seen to guide its current foot placement. This approach bypasses the fragility of traditional explicit elevation mapping, which is often compromised by odometry drift and sensor noise. Experimental results demonstrate that the robot can traverse obstacles nearly as tall as its own leg length, significantly outperforming traditional blind and mapping-based baselines.

Introduction

Navigating non-flat terrain—such as rocky trails, urban staircases, or discrete stepping stones—remains a fundamental challenge in robotics. The traditional approach to this problem involves a decoupled pipeline: first, fusing depth images over time to create a 3D elevation map, and second, planning footholds based on that map. However, this method is inherently brittle. Elevation mapping requires extremely precise odometry to align sequential images; any slip or mechanical vibration can introduce noise that leads to catastrophic planning failures.

Furthermore, small-scale robots, such as the Unitree A1, face a significant "size penalty." Obstacles like standard stairs are nearly as tall as the robot's hip height, requiring specialized, non-standard gait patterns that are difficult to program manually. This research proposes a vision-based reinforcement learning (RL) framework that treats vision as a first-class citizen, skipping explicit mapping in favor of an end-to-end policy.

Methodology

The proposed framework relies on three core pillars: a two-phase training strategy, temporal memory, and emergent gait discovery.

Two-Phase Learning (Teacher-Student Distillation)

To handle the computational complexity of processing raw video during initial training, the authors employ a distillation strategy:

  1. Phase 1 (The Teacher): An RL agent is trained in simulation with access to "scandots"—privileged, noise-free information about the exact terrain height directly surrounding the robot. This allows the agent to learn the physics of movement without visual processing overhead.
  2. Phase 2 (The Student): A second agent is trained to mimic the teacher’s actions. However, the student only has access to realistic inputs: raw depth images from a front-facing camera and proprioceptive data (joint angles and orientation).

Temporal Memory via GRUs

A primary challenge with front-facing cameras is the "blind spot" directly beneath and behind the robot. To navigate obstacles once they have passed out of the camera's field of view, the authors incorporate Gated Recurrent Units (GRUs). This allows the policy to maintain a short-term internal representation of the terrain, effectively "remembering" the location of a step or a gap as the robot passes over it.

Emergent Gaits

Rather than using pre-programmed gait priors, the system utilizes a "tabula rasa" approach. This allows the robot to discover optimal movements through trial and error. For example, when climbing high stairs, the robot naturally evolved a "high hip abduction" movement—swinging its legs out wide—to clear obstacles that would otherwise catch its feet.

Experimental Setup and Training

The researchers utilized the IsaacGym simulator for high-throughput training, collecting billions of samples in a matter of hours. The training environment consisted of a 20x10 grid of diverse sub-terrains, including slopes, discrete obstacles, and gaps. To ensure the policy transferred successfully from simulation to the real world, the team employed extensive domain randomization, varying physical parameters like friction and motor strength, and adding fractal noise to the simulated terrain.

Real-world evaluation was conducted across diverse environments, including urban staircases, hiking trails with tree roots, rocky riverbeds, and sandy beaches, testing the robot's ability to generalize beyond the training set.

Results and Discussion

The vision-based policy demonstrated remarkable robustness and success rates:

  • Obstacle Clearance: The robot achieved a 100% success rate on 26cm gaps and a 94% success rate on difficult stepping stone configurations.
  • Comparative Performance: The system outperformed "blind" policies and baselines using noisy elevation maps by 60-90% in terms of total distance traveled before a fall.
  • Efficiency: Despite the use of neural networks for vision and memory, the policy runs in real-time on the robot's onboard Jetson NX and UPboard, demonstrating that end-to-end vision is computationally feasible for edge devices.

One of the most significant insights is that a simple recurrent latent memory is a sufficient substitute for complex metric mapping. By mimicking the biological tendency to look ahead and remember the path rather than staring at one's feet, the robot becomes immune to the pose drift that typically plagues robotic navigation.

Limitations and Future Work

While highly effective, the system is limited by the sim-to-real gap. Failures can occur when the robot encounters materials not represented in training, such as deep water or mirrors. Additionally, visual mismatches—such as tall grass that appears solid but provides no structural support—can mislead the policy. Future research will explore incorporating RGB data alongside depth to better distinguish surface textures and using real-world data to further fine-tune simulation-trained policies.

Summary updated

BibTeX
@inproceedings{agarwal2022legged,
  author = {Ananye Agarwal and Ashish Kumar and Jitendra Malik and Deepak Pathak},
  title = {{Legged Locomotion in Challenging Terrains using Egocentric Vision}},
  booktitle = {Conference on Robot Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=vndtxqw2P9},
}
Figure