NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A versatile and efficient pattern generator for generalized legged locomotion

Justin Carpentier, Steve Tonneau, Maximilien Naveau, Olivier Stasse, Nicolas Mansard

This paper introduces a fast and versatile walking pattern generator (WPG) that enables humanoid robots to navigate complex, non-flat environments by utilizing multiple contact points, such as handrails. By formulating locomotion as a tailored optimal control problem solved via multiple shooting, the authors achieved computation speeds fast enough for real-time model-predictive control (MPC) on the HRP-2 robot.

The Challenge of Generalized Locomotion

While bipedal walking on flat ground is a well-studied problem, "generalized" locomotion—moving through uneven, slippery, or cluttered environments—remains a major challenge. In scenarios like disaster relief or industrial maintenance, a robot might need to climb steep stairs, use a handrail for balance, or push against a wall.

The primary difficulty lies in the trade-off between physical accuracy and computational speed. Simplified models often ignore angular momentum or assume flat ground to stay fast. Conversely, "whole-body" optimizations that consider every joint and contact force are often too slow for a robot to react to its environment in real-time. This paper seeks a "middle ground": a solver that is physically expressive enough to handle 3D multi-contact scenarios but efficient enough to plan steps on the fly.

A Three-Stage Locomotion Pipeline

The authors propose a complete pipeline consisting of three main stages:

  1. Acyclic Contact Planning: Using a modified "limb-RRT" algorithm, the system automatically generates a sequence of contacts (where the feet and hands should go) based on a 3D model of the environment.
  2. Pattern Generation (The Core Contribution): The problem is framed as an Optimal Control Problem (OCP). Instead of optimizing every joint, it optimizes the trajectories of the robot's Center of Mass (COM) and its angular momentum.
  3. Whole-Body Control: Finally, a second-order hierarchical inverse kinematics solver translates the COM and momentum trajectories into specific joint movements for the robot.
The locomotion pipeline: (a) initial request, (b) reachability planning, and (c) contact sequence generation.

To keep the solver fast and stable, the authors replaced hard kinematic constraints with "smooth exponential barriers." This prevents the numerical solver from getting stuck or "confused" by rigid boundaries. They use a direct multiple shooting approach to solve the OCP, which offers a better balance of numerical stability and ease of initialization compared to other methods like single shooting or collocation.

Key Insights: Smoothness and Momentum

  • Penalizing Variations, Not Values: A common pitfall in robotics is forcing angular momentum to zero to simplify math. This paper instead penalizes the variations of angular momentum. This allows the robot to naturally use its upper body to maintain balance without the researchers having to "guess" what the momentum trajectory should look like.
  • The Power of Smoothness: The use of exponential barriers for reachability (kinematic limits) was a key innovation. Hard constraints often make optimization problems "brittle" and slow to converge; smoothing these boundaries allowed for much faster, more reliable solving.
  • MPC Readiness: By reaching a computation time of ~40ms per iteration (after an initial 4s solve), the system demonstrates it can function as a Model Predictive Controller, allowing the robot to adjust its plan while a step is already in progress.

Experimental Validation and Results

The approach was validated through simulated scenarios and real-robot experiments conducted on the HRP-2 humanoid robot:

  • Extreme Strides: The robot successfully performed a 100cm stride. For a robot that is only 160cm tall, this is an exceptionally wide and dynamic movement.
  • Multi-Contact Success: The HRP-2 successfully climbed a staircase by using its right hand to pull/push on a handrail, demonstrating the solver's ability to distribute weight across non-foot contacts.
  • Computational Efficiency: The solver reached a near-optimal solution for the stair-climbing task in less than 5.5 seconds (85 iterations). Once a solution is found, updates for real-time control take only tens of milliseconds.

Limitations and Future Work

The current framework does not explicitly model the flexibility of the robot's feet or the "give" (compliance) of objects like handrails. In experiments, these factors caused oscillations in force readings that the solver didn't predict. Additionally, while the contact placements are automated, the timing of the phases (how long to stay in double-support vs. single-support) was manually tuned for some experiments. Future work will focus on integrating phase duration as a primary variable in the OCP and developing more physically grounded bounds on angular momentum to further improve stability in highly dynamic maneuvers.

Summary updated

BibTeX
@inproceedings{carpentier2016versatile,
  author = {Justin Carpentier and Steve Tonneau and Maximilien Naveau and Olivier Stasse and Nicolas Mansard},
  title = {{A versatile and efficient pattern generator for generalized legged locomotion}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2016},
  doi = {10.1109/icra.2016.7487538},
}
Figure