cs.RONov 19, 2026

Learning optimal gaits and styles for terrain-adaptive quadruped locomotion

Authors: Guillaume Bellegarda, Auke Ijspeert

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

Explore similar work

CardsList
  1. LoComposition: Terrain-Adaptive Energy-Efficient Quadruped Locomotion without Gait Priors

    Jun 14, 2026Loukas Kordos, Leonard T. Franz, Simon Rappenecker +4Legged RoboticsRL for Robotics

  2. LatentMimic: Terrain-Adaptive Locomotion via Latent Space Imitation

    Apr 7, 2026Zhiquan Wang, Yunyu Liu, Dipam Patel +3Terrain-Aware Robot LocomotionQuadruped Locomotion

  3. Learning Gait-Aware Quadruped Locomotion with Temporal Logic Specifications

    Jul 1, 2026Merve Atasever, Cagan Bakirci, Alfredo Reina Corona +2Reinforcement LearningRobot Skill Learning