Zero-Shot Terrain Generalization for Visual Locomotion Policies

Alejandro Escontrela, George Yu, Peng Xu, Atil Iscen, Jie TanarXiv 2020

Abstract

Legged robots have unparalleled mobility on unstructured terrains. However, it remains an open challenge to design locomotion controllers that can operate in a large variety of environments. In this paper, we address this challenge of automatically learning locomotion controllers that can generalize to a diverse collection of terrains often encountered in the real world. We frame this challenge as a multi-task reinforcement learning problem and define each task as a type of terrain that the robot needs to traverse. We propose an end-to-end learning approach that makes direct use of the raw exteroceptive inputs gathered from a simulated 3D LiDAR sensor, thus circumventing the need for ground-truth heightmaps or preprocessing of perception information. As a result, the learned controller demonstrates excellent zero-shot generalization capabilities and can navigate 13 different environments, including stairs, rugged land, cluttered offices, and indoor spaces with humans.

Introduction

While legged robots are theoretically capable of traversing almost any terrain, designing controllers that actually do so is incredibly difficult. Traditional hand-engineered controllers require tedious manual tuning for every new environment. Conversely, standard Deep Reinforcement Learning (DRL) often produces "specialist" policies that excel on a single type of terrain but fail when faced with novel obstacles like curbs or cluttered rooms.

The core challenge is generalization. To be truly useful in applications like disaster relief or last-mile delivery, a robot needs a "generalist" policy that can handle unseen, unstructured, and dynamic environments using only its onboard sensors (such as LiDAR and internal encoders), without requiring pre-loaded maps or ground-truth height data.

Methods

The proposed end-to-end learning system is built on three main pillars:

  1. Multi-Task Partially Observable Markov Decision Process (POMDP): Locomotion is framed as a multi-task problem where each "task" is a different terrain type. The robot is not provided with a task ID; it must infer the appropriate behavior based solely on sensor inputs.
  2. Procedural Terrain Generation: To provide sufficient data for generalization, a generator creates infinite variations of terrains (stairs, pits, bumps, obstacles) by manipulating a grid of "pillars."
  3. Visual-Locomotion Policy with PMTG: The neural network architecture features two branches: exteroception (raw 3D LiDAR scans) and proprioception (joint angles and IMU data). These inputs modulate a Policies Modulating Trajectory Generator (PMTG). Instead of outputting raw motor torques, the network "tweaks" a predefined cyclic gait pattern, ensuring smooth, rhythmic movement while allowing the perception system to adjust foot placement.

Training and Evaluation Datasets

The study utilized high-fidelity PyBullet physics simulations. The Training Set consisted of procedurally generated environments covering five categories: Flat, Rugged, Holes, Obstacles, and Stairs. The Evaluation Set included 13 environments: the five training types plus eight "unseen" complex environments, such as Gibson scenes (visually realistic indoor scans), mountainous meshes, and dynamic environments with moving human obstacles.

Key Results and Insights

The learned policy successfully navigated all 13 test environments without prior exposure. On the challenging "Mountain" task, the multi-task visual policy achieved a 67% completion rate, significantly outperforming policies trained on single terrain types (which reached only 28% at best).

Diverse test environments used for zero-shot evaluation including offices, hills, and mazes.

Several key insights emerged from the experiments:

  • Perception is Essential: Exteroceptive input (LiDAR) is the key to generalization. Without it, robots cannot adjust their gait for upcoming obstacles or navigate cluttered spaces.
  • The Power of Gait Priors: Using PMTG to modulate a trajectory generator performed 28% to 218% better than reactive policies controlling joints directly. The trajectory generator acts as a stabilizer, allowing the RL agent to focus on high-level adaptation.
  • Multi-Task Learning Prevents Forgetting: Training on all terrains simultaneously was superior to sequential training. Sequential learning caused "catastrophic forgetting," where the robot lost the ability to traverse earlier terrain types after learning new ones.
Robot navigating a dynamic office environment with moving human obstacles.

The policy also demonstrated robustness in dynamic settings, successfully navigating an office environment with humans in motion. This indicates that the visual-locomotion loop is sufficiently fast and adaptive for real-world clutter.

Conclusion

This research demonstrates that combining multi-task reinforcement learning with procedural generation and gait-modulating architectures enables quadruped robots to achieve robust zero-shot generalization. While currently limited to simulation, the results suggest a path toward general-purpose locomotion controllers. Future work will focus on bridging the sim-to-real gap on physical hardware and exploring longer-horizon navigation tasks.

Summary updated

BibTeX
@misc{escontrela2020zero,
  author = {Alejandro Escontrela and George Yu and Peng Xu and Atil Iscen and Jie Tan},
  title = {{Zero-Shot Terrain Generalization for Visual Locomotion Policies}},
  year = {2020},
  eprint = {2011.05513},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.05513},
}
Figure