TL;DR
Crocoddyl is a high-performance open-source library designed for multi-contact optimal control in robotics. It introduces a novel algorithm called Feasibility-driven Differential Dynamic Programming (FDDP), which allows robots to plan highly dynamic maneuvers—like front-flips and jumps—in just a few hundred milliseconds by combining the speed of traditional DDP with the robustness of multiple-shooting methods.
What Problem Does This Paper Address?
Planning motions for legged robots is notoriously difficult because it involves "multi-contact" dynamics: the robot's physics change every time a foot touches or leaves the ground.
Existing frameworks often face a trade-off:
- Simplified Models: Many use "Centroidal dynamics" (treating the robot like a point mass), which can't capture complex effects like nonholonomic flight phases or high-speed limb movements.
- Standard DDP: Differential Dynamic Programming is fast but "brittle." It requires a physically consistent initial guess (a "feasible" warm-start) and often gets stuck in local minima if the starting point is poor.
- Multiple Shooting: These methods are more robust but often introduce many extra decision variables, making them computationally expensive for real-time use.
Crocoddyl aims to bridge this gap, providing a framework that is physically accurate, computationally efficient, and robust to poor initial guesses.
Methods
The authors introduce several key technical innovations:
- FDDP Algorithm: This is the "secret sauce." Unlike standard DDP, which forces the trajectory to be physically consistent at every step of the optimization, FDDP allows "gaps" (defects) in the dynamics during early iterations. This allows the solver to explore the search space more freely before gradually closing those gaps to find a feasible solution.
- Sparse Analytical Derivatives: Instead of relying on slow numerical or automatic differentiation, Crocoddyl uses highly efficient analytical derivatives of rigid-body dynamics (via the Pinocchio library).
- Differential Geometry: The framework explicitly handles the geometric structure of robot states (specifically $SE(3)$ for floating bases), ensuring that rotations and orientations are handled correctly without the singularities found in Euler angles.
- Impulse Dynamics: The solver explicitly models the discrete changes in velocity that occur during impacts, which significantly improves convergence compared to simply penalizing contact velocities.
Datasets
As a robotics control paper, the evaluation is performed on simulated models of well-known hardware rather than static datasets:
- ANYmal: A quadrupedal robot used for jumping and gait benchmarks.
- iCub: A humanoid robot used for obstacle-jumping tasks.
- Biped Robot: Used for demonstrating front-flip maneuvers.
Key Insights and Ideas
- "Keep the Gaps Open": The most striking insight is that maintaining mathematical "infeasibility" (the gaps) during the early "exploratory" phase of optimization prevents the solver from getting trapped. This mimics the globalization strategy of multiple-shooting methods without the heavy computational overhead of adding extra decision variables.
- Analytical Speed: By exploiting the sparsity of the problem and using analytical derivatives, the authors show that you don't need to sacrifice physical accuracy for speed.
- Goldstein vs. Armijo: The authors found that the standard Armijo line-search (used to decide step size) fails when trajectories are infeasible. They switched to the Goldstein condition, which allows the solver to accept steps even if the cost temporarily increases, provided it's moving toward feasibility.
Key Results
- Speed: The framework achieves computation rates of up to 859.6 Hz for complex maneuvers (like a 4-legged jump) on standard high-end CPUs.
- Efficiency: Highly dynamic maneuvers like front-flips and jumps are typically solved in 12 to 36 iterations.
- Real-time Potential: Total computation time for these complex motions is consistently under 0.5 seconds, bringing whole-body nonlinear predictive control closer to real-time deployment.
- Scalability: The computation time scales linearly with the number of nodes (time steps) in the trajectory, regardless of the number of contacts.
Limitations and Future Work
- Predefined Contact Sequences: Currently, the user must provide the sequence of contacts (e.g., "left foot, then right foot"). The solver optimizes the timing and forces, but it doesn't yet "discover" the sequence itself.
- Inequality Constraints: While the paper mentions handling joint limits and torque limits via penalization, the authors acknowledge that more robust methods (like Interior-Point or Augmented Lagrangian) are needed for strict constraint satisfaction.
- Friction Cones: Friction constraints are currently simplified; future versions aim to integrate more complex friction models directly into the feasibility-driven logic.
Summary updated