Learning optimal gaits and styles for terrain-adaptive quadruped locomotion
Organizations: Inria, Université de Lorraine, CNRS, 54000 Nancy, France · École Polytechnique Fédérale de Lausanne, 1015 Lausanne, Switzerland
Abstract
Animals use many different gaits to locomote at different speeds across varying terrains. A longstanding question in biology and robotics is: which gait is best? This question is most often addressed from an energy-efficiency perspective on flat terrain, leaving open how the answer depends on terrain and on the criterion optimized. Here we show that gait optimality is determined jointly by terrain, performance metric, and velocity. We use deep reinforcement learning and networks of abstract oscillators, modeling spinal central pattern generators, to learn 11 quadrupedal gaits across diverse challenging terrains, together with the locomotion style (base height, foot ground clearance, foot offsets) that each requires. A second policy then selects among them to optimize a user-specified criterion such as cost of transport, base stability, or joint smoothness. Across these performance metrics and within this repertoire, every gait is optimal under at least one terrain-metric-velocity combination. The framework adapts zero-shot to gait couplings and styles never seen during training, to terrains far beyond the training distribution, and to larger quadrupeds five times the training mass. With a single additional pitch-tracking reward term, the same gait couplings also support bipedal-mode locomotion. Our method provides a general and systematic way to produce expressive locomotion and to select the gait best suited to a given terrain and criterion. Project page: https://guillaume10.github.io/terrain-gaits.
Figures & tables
| Parameter | Value |
|---|---|
| Batch size | 98,304 (4,096 24) |
| Mini-batch size | 24,576 (4,096 6) |
| Number of epochs | 5 |
| Clip range | 0.2 |
| Entropy coefficient | 0.01 |
| Discount factor | 0.99 |
| Term | Formula | Weight |
|---|---|---|
| Linear velocity tracking | ||
| Lateral/vertical velocity | ||
| Angular velocity | ||
| Power | ||
| Action rate | ||
| Out-of-range actions |
| Extreme Parkour 11 | Robot Parkour Learning 66 | ANYmal Parkour 23 | Agile Jumping 59 | This work | |
| Gait repertoire, control, and evaluation | |||||
| Gait repertoire and command interface | 2 modes | 5 skills | 5 skills | Fixed bounding | 11 gaits + zero-shot gait generalization |
| Systematic gait comparison across terrains, commanded speeds, and metrics | – | – | – | – | |
| Velocity tracking over varying commanded speeds | – | – | – | – | |
| Commandable locomotion style and extrapolation ( i.e. height, clearance) | – | – | – | – | |
| Interchangeable objectives (gait-selection criteria) | – | – | – | – | |
Quadruped Locomotion
Quadruped locomotion studies how four-legged robots move efficiently, safely, and reliably across varied terrain and tasks.
See all 127 papers