# LEAP: Gradient Flow Augmented Lagrangian Trajectory Optimization for Contact Constrained Robots

Robotics.world

> Planning a walking or jumping motion means choosing joint torques and contact forces that obey the robot's dynamics, its actuator limits, and the physics of friction, with the contact wrench required…

**arXiv**: 2610.20936 · Preprint · not peer-reviewed

**Published**: 2026-10-14

**Authors**: César E. Ramos Chuquiure, Ryan Tsai, Yutong Zhou, Zihang Huang, Vansh Thakur, Akshunn Trivedi, Zachary Lin, Pearl Lin, Ruikai Yang, Challen Enninful Adu, Ram Vasudevan

## In plain words

Planning a walking or jumping motion means choosing joint torques and contact forces that obey the robot's dynamics, its actuator limits, and the physics of friction, with the contact wrench required to stay inside a friction cone at every instant rather than at a handful of sampled times.

## AI summary

## Overview

**Research area:** Robotics — trajectory optimization and optimal control for contact-rich legged and manipulating robots.

**Technical level:** Advanced. The paper assumes familiarity with optimal control, pseudospectral transcription, augmented Lagrangians, and numerical integration of stiff ODEs.

**Scope:** The paper introduces LEAP, a trajectory optimizer that replaces the Newton-type solve used by state-of-the-art solvers with an integrated primal–dual gradient flow of a Powell–Hestenes–Rockafellar augmented Lagrangian, and benchmarks it against Crocoddyl and Aligator on ten contact-constrained problems across five robot platforms.

## What This Paper Is About

Planning a walking or jumping motion means choosing joint torques and contact forces that obey the robot's dynamics, its actuator limits, and the physics of friction, with the contact wrench required to stay inside a friction cone at every instant rather than at a handful of sampled times. Existing solvers handle this by taking Newton-type steps, which only make sense near a solution, so they depend heavily on a good initial guess and their cost grows poorly as joints are added. LEAP's goal is to keep the tolerance for bad initial guesses that gradient-flow methods offer, while fixing their two weaknesses: constraints that are only ever satisfied approximately, and flows that become numerically stiff as a result.

## Key Contributions

1. **Exact constraint handling via a PHR augmented Lagrangian flow.** The authors formulate the transcribed problem with a Powell–Hestenes–Rockafellar augmented Lagrangian and derive a two-time-scale primal–dual flow: the decision variables descend on the Lagrangian at frozen multipliers, and the multipliers jump by a damped update at window boundaries.
2. **Extension to hybrid systems with all-time wrench feasibility.** The method handles a prescribed contact sequence with fixed switching times and Newton-impact reset maps, and imposes the friction cone on Bézier control points rather than at collocation nodes so that, by convexity of the Bernstein basis, the constraint holds for all time on each element.
3. **A linearly implicit integrator that preserves monotonicity.** Because the flow is stiff and its Jacobian jumps when constraints enter or leave the active set, the authors build a linearly implicit step with a Gauss–Newton metric computed on an "anticipatory" active set, and accept a step only if the augmented Lagrangian decreases, with step size driven by the ratio of actual to predicted decrease.
4. **A benchmark comparison across five robots.** LEAP is compared with Crocoddyl and Aligator on solve time and terminal tracking accuracy under a time budget across two tasks and five platforms from 2 to 32 joints, with solution quality judged by a whole-body inverse-dynamics tracking controller in MuJoCo.

## Main Findings

- **Solved every tested problem.** Across the ten benchmark cases in Table II (two tasks times five robots), LEAP's rollouts satisfied the terminal tracking criteria in all ten, versus seven for Crocoddyl and eight for Aligator. The authors describe LEAP as the only method to solve every tested problem.
- **Fastest on seven of the ten cases.** LEAP posted the bolded (fastest successful) time on uneven terrain for the hopper (20.9 s), H1 (13693 s), G1 (1218 s) and Talos (4096 s), and on fence jumping for the hopper (5.2 s), Go2 (71.6 s) and Talos (658 s). Crocoddyl was fastest on uneven terrain for the Go2 (78.1 s) and on fence jumping for the H1 (34.4 s); Aligator was fastest on fence jumping for the G1 (301 s).
- **Baselines exhausted the budget or failed on the largest robots.** On uneven terrain, both Crocoddyl and Aligator reached the 14400 s budget on the H1 without meeting the shared feasibility test, and both failed (marked with a cross) on the Talos. On fence jumping, Crocoddyl failed on the hopper and the Talos, and Aligator failed on the hopper and reached the budget on the H1.
- **Best terminal accuracy on nine of ten problems.** Table III reports the largest normalized terminal error; LEAP is lowest on nine of the ten cases. The one exception is H1 fence jumping, where Aligator reaches 0.16, Crocoddyl 0.21, and LEAP 0.37.
- **Large accuracy margins on the hardest robots.** On uneven terrain the normalized error is 0.016 for LEAP versus 0.047 and 0.048 for the baselines on the G1, and 0.13 versus 633 and 569 on the Talos. On G1 fence jumping LEAP reaches 0.0014 versus 0.24 and 0.34.
- **All-time friction-cone satisfaction is certified, not sampled.** Lemma 2 shows that if every Bézier control point of the wrench lies in a convex set, the entire curve does; LEAP imposes the cone on those control points, so the constraint is not restricted to discrete knots the way node-collocated constraints are.
- **Hardware validation.** A hopscotch trajectory is executed on a Unitree Go2 quadruped.
- **Excerpt caveat.** The provided paper content is truncated partway through Table III, so the figures and discussion in later sections are not reported here.

## Methodology in Plain English

LEAP starts from a robot whose sequence of contacts and the times at which they switch are already decided by the user. The continuous optimal control problem is turned into a finite-dimensional one using pseudospectral collocation: on each contact interval, states and controls are represented as polynomials whose coefficients are their values at Chebyshev–Gauss–Lobatto nodes, and the dynamics, control bounds and state bounds are enforced at those nodes. Contact wrenches are represented differently, as Bézier curves, and the friction cone is imposed on the Bézier control points, which guarantees the cone holds continuously across the whole interval rather than only at sample points.

The resulting nonlinear program is not handed to a Newton or SQP solver. Instead, the authors build an augmented Lagrangian with per-constraint multipliers and penalties, and define a flow in an artificial "pseudo-time" that slides the decision variables downhill on that Lagrangian while the multipliers are held fixed; at the end of each such window the multipliers take a damped step, and penalties for any constraint group whose violation is not shrinking are increased.

Making this flow work numerically is the bulk of the engineering. A fully implicit step would need second derivatives of the dynamics and would break whenever a constraint activates or deactivates, so the authors take a linearly implicit step: one linear solve per step against a Gauss–Newton approximation of the Hessian, deliberately enlarged to include constraints that are about to become active so the model does not have to be rebuilt. The acceptance rule is the optimizer's rule, not the integrator's: a step is taken only if the augmented Lagrangian actually went down, and the step size grows or shrinks depending on how close the predicted decrease was to the realized one. Whether to keep flowing or to refine is decided by two separate measures — violation at the nodes, which the flow can reduce, and violation on a fine grid between nodes, which only splitting mesh elements can reduce; refinement bisects the worst elements, and the solution is carried over to the finer mesh exactly.

Before any of this, a feasibility pass is run in which the objective and multipliers are switched off and only the constraint violation is minimized, which pulls a crude initial guess — in these experiments, a linear interpolation between boundary poses — into a usable region.

## Why This Matters

Contact-implicit and contact-explicit trajectory optimization is a bottleneck for legged and humanoid systems, because the resulting problems are non-convex, badly scaled, and unforgiving of bad initialization. LEAP's contribution is less about a new problem formulation than about a solver design that trades the fast local convergence of Newton methods for a scheme that is defined everywhere and whose guarantee — monotone decrease of the augmented Lagrangian — survives discretization. That combination is what allows it to be the only method in the comparison to clear all ten problems.

Real-world applications:

- **Humanoid and biped locomotion planning**, where joint counts in the 19 to 32 range are exactly where the baseline solvers stalled or blew the time budget.
- **Quadruped agile motion**, demonstrated by the hopscotch trajectory executed on a Unitree Go2.
- **Manipulation involving pushing, grasping and releasing**, which the authors cite as a motivating contact-rich setting alongside legged locomotion.
- **Generating reference trajectories offline to be tracked by a whole-body controller**, which is how every result in the paper is evaluated.

Industry relevance: robotics companies building legged or humanoid platforms need reference motions that a tracking controller can actually execute, and the paper's evaluation is explicitly tied to that question rather than to constraint residuals alone. Because the method tolerates poor initial guesses, it is a candidate for automatically generating motion libraries without hand-tuning a warm start per behavior or per robot. The authors state that the code will be made public upon final acceptance.

## Future Directions

- **Removing the prescribed contact sequence.** The method assumes the mode sequence and switching times are supplied in advance, so deciding contacts automatically — or optimizing the switching times — remains outside its scope in this paper.
- **Real-time and MPC use.** All timings reported are offline solves against a 14400 s budget; whether the flow's monotone, single-linear-solve-per-step structure can be pushed into a receding-horizon loop at control rates is not addressed.
- **Scaling beyond 32 joints.** The trend in Table II suggests the advantage grows with joint count, but the largest platform tested is the 32-joint Talos; whether the Gauss–Newton metric and window schedule continue to hold at higher dimension is an open question.
- **Hyperparameter and penalty schedule sensitivity.** The scheme introduces a margin for the anticipatory active set, window length and gradient thresholds, penalty growth and shrinkage factors, and refinement limits, all of which are described structurally but whose values are not reported in the excerpt provided.

## Target Audience

Robotics researchers and graduate students working on trajectory optimization, optimal control for legged and humanoid robots, and contact-rich motion planning, particularly those who have hit the initialization and scaling walls of DDP-based solvers such as Crocoddyl and Aligator. It is also relevant to numerical optimization researchers interested in applying augmented Lagrangian gradient flows and trust-region-style step control to structured, stiff, hybrid problems. Readers without a background in optimal control and pseudospectral methods will find the numerical sections demanding.

## Authors’ abstract

Generating dynamically feasible motions for legged and manipulating robots requires solving a large, nonlinear, non-convex optimal control problem (OCP) in which contact wrenches must satisfy friction-cone constraints throughout the motion, not only at isolated instants. Existing solvers are sensitive to the initial guess and scale poorly with the number of joints. This paper introduces LEAP, which transcribes the OCP with pseudospectral collocation and, instead of a Newton…

[The full abstract on arXiv](https://arxiv.org/abs/2610.20936)

[Read the original paper](https://arxiv.org/abs/2610.20936)

## Related papers

- [AirSplan: Risk-Aware Motion Planning for Quadrotors in Cluttered 3D Gaussian Splats](https://robotics.world/paper/airsplan-risk-aware-motion-planning-for-quadrotors-in-cluttered-3d-2609.21226) 2026-09-18 · cs.RO · Also by Ram Vasudevan
- [FLoTS-SLAM: Optical Flow-Derived Uncertainty for Monocular Dynamic SLAM with Two-Stage Optimization](https://robotics.world/paper/flots-slam-optical-flow-derived-uncertainty-for-monocular-dynamic-slam-2610.23496) 2026-10-16 · cs.RO · Key terms of the title in common
- [RFPO: Rectified Flow Policy Optimization for Embodied Control](https://robotics.world/paper/rfpo-rectified-flow-policy-optimization-for-embodied-control-2610.10453) 2026-10-07 · cs.RO · Key terms of the title in common
- [Mixture of Flow Matching and Particle Filter for Proprioception-Based Online Contact Estimation](https://robotics.world/paper/mixture-of-flow-matching-and-particle-filter-for-proprioception-based-2610.29568) 2026-10-21 · cs.RO · Key terms of the title in common
- [Differentiable Contact Dynamics for Legged Locomotion: Policy Learning and Contact-Implicit Trajectory Optimization](https://robotics.world/paper/differentiable-contact-dynamics-for-legged-locomotion-policy-learning-2610.35852) 2026-10-26 · cs.RO · Key terms of the title in common

---

Canonical: https://robotics.world/paper/leap-gradient-flow-augmented-lagrangian-trajectory-optimization-for-2610.20936
