Software
Crocoddyl
By loco-3d, from github.com/loco-3d/crocoddyl (opens in a new tab)
- Humanoids and robot learning
- Library
- BSD-3-Clause
Crocoddyl is an optimal control library for robots under contact sequences, using differential dynamic programming solvers to compute optimal trajectories and feedback gains.
Facts
- GitHub stars
- 1,336read on 28 Nov 2026
- Last update
- 24 Nov 2026Newest commit on devel
- Maintenance
- Activea commit in the last 90 days
- Difficulty
- Advanced
Checked on GitHub on 28 Nov 2026.
Licenses
- Code
- BSD-3-Clause (opens in a new tab)
Read by Robotheca from LICENSE (opens in a new tab) (BSD-3-Clause) at commit a71f97d (opens in a new tab), on 28 Nov 2026.
- Commercial use
- Yes
At a glance
- What it is
- Provides several optimal control solvers, including FDDP, OdynSQP, Intro and Ipopt.
- Computes analytical and sparse derivatives through Pinocchio for fast robot dynamics.
- Supports numerical and automatic differentiation (CppAD), plus various integrators, costs and constraints.
- Offers multi-threading via OpenMP and Python bindings built with Boost Python.
- Can generate C++ and Python code through CppADCoGen.
- Installable via AUR, conda, Nix, pip, robotpkg packages, ROS, or from source with CMake.
Robotheca's summary of the project's documents, not the creator's words.
- Robots on Robotheca
- No robot on Robotheca uses it yet.
- Licence
- BSD-3-Clause. Commercial use: Yes. Where it was read
- Install
- In the creator's words: The project's README (opens in a new tab)
- Maintenance
- Active, last commit on 24 Nov 2026.
Use it
How to install it, in the creator's words: The project's README (opens in a new tab)
Robotheca doesn't review code. Read it before running it.
Files and versions
- Repository on GitHubgithub.com/loco-3d/crocoddyl (opens in a new tab)
- The version Robotheca reada71f97d (opens in a new tab)
- Latest releaseRelease v3.2.1 (10 May 2026)
Robotheca read the repository at two versions: the summary at babab49 and the facts and the README at a71f97d (read on 28 Nov 2026).
Robotheca never hosts the code: each link goes to the creator's own page.
The README
The creator's own README, copied as written: README.md by loco-3d, at commit a71f97d, under BSD-3-Clause (opens in a new tab). The original on GitHub (opens in a new tab).
Read the README here

(opens in a new tab) Image (opens in a new tab) Image (opens in a new tab) Image: AUR package (opens in a new tab) (opens in a new tab) Image: nixpkgs stable 24.05 package (opens in a new tab) (opens in a new tab) Image: nixpkgs unstable package (opens in a new tab) (opens in a new tab) Image (opens in a new tab) (opens in a new tab)
Image (opens in a new tab) Introduction
Crocoddyl (opens in a new tab) is an optimal control library for robot control under contact sequence. Its solvers are based on novel and efficient differential dynamic programming (DDP) algorithms. Crocoddyl computes optimal trajectories and feedback gains. It uses Pinocchio (opens in a new tab) for fast computation of robot dynamics and analytical derivatives.
If you want to learn more about Crocoddyl and its solvers, we suggest reading [1] [2] [3] and visiting PUBLICATIONS.md (opens in a new tab). If you want to follow the current developments and contribute, please directly refer to the devel branch (opens in a new tab).
:crocodile: Crocoddyl features
Crocoddyl is versatile:
- Various optimal control solvers (FDDP, OdynSQP, Intro, Ipopt, etc)
- Analytical and sparse derivatives via Pinocchio (opens in a new tab)
- Differential geometry support leveraging Pinocchio (opens in a new tab)
- Various integrators, dynamics, costs and constraints
- Numerical differentiation support
- Automatic differentiation support via CppAD (opens in a new tab)
Crocoddyl is efficient and flexible:
- Cache friendly
- Multi-threading support via OpenMP (opens in a new tab)
- Python bindings (including abstractions) via Boost Python (opens in a new tab)
- C++11/14/17/20 compliant
- Extensively tested
- Code generation in both C++ and Python via CppADCoGen (opens in a new tab)
:penguin: Installation
Crocoddyl can be easily installed on various Linux (Ubuntu, Fedora, etc.) and Unix distributions (Mac OS X, BSD, etc.). Below, there are different ways to install Crocoddyl.
Image (opens in a new tab) On ArchLinux
With your favorite AUR helper, eg. paru:
paru -Syu crocoddyl
:dragon: From Image (opens in a new tab)
Just run the following command in the terminal:
conda install crocoddyl -c conda-forge
Conda installation supports Image: conda install (opens in a new tab) (opens in a new tab).
From Nix
crocoddyl & python3Packages.crocoddyl are available in nixpkgs (opens in a new tab).
This repository is also a flake, so you may:
- run a python shell with crocoddyl:
nix run github:loco-3d/crocoddyl - use it in your own flake:
crocoddyl.url = "github:loco-3d/crocoddyl";
The build cache use by CI and developers is gepetto.cachix.org (opens in a new tab)
:snake: From Image (opens in a new tab)
Just run the following command in the terminal:
pip install --user crocoddyl
:turtle: With ROS
Just clone it (with --recursive) into a catkin workspace and compile it.
:package: From Debian / Ubuntu packages, with robotpkg (opens in a new tab)
- If you have never added robotpkg's software repository, do it now (opens in a new tab):
sudo tee /etc/apt/sources.list.d/robotpkg.list <<EOF deb [arch=amd64] http://robotpkg.openrobots.org/packages/debian/pub $(lsb_release -sc) robotpkg EOF curl http://robotpkg.openrobots.org/packages/debian/robotpkg.key | sudo apt-key add - sudo apt update - Install Crocoddyl and its Python bindings:
sudo apt install robotpkg-py3\*-crocoddyl - Configure your environment variables:
export PATH=/opt/openrobots/bin:$PATH export PKG_CONFIG_PATH=/opt/openrobots/lib/pkgconfig:$PKG_CONFIG_PATH export LD_LIBRARY_PATH=/opt/openrobots/lib:$LD_LIBRARY_PATH export PYTHONPATH=/opt/openrobots/lib/python3.10/site-packages:$PYTHONPATH
:file_folder: From source
- Install Crocoddyl's mandatory dependencies:
- (optional) Install Crocoddyl's optional dependencies
- OpenMP (opens in a new tab) (for multi-threading support)
- CppADCoGen (opens in a new tab) (for code-generation support)
- pycppad (opens in a new tab) (for code-generation support)
- Ipopt (opens in a new tab) (for Ipopt support)
- example-robot-data (opens in a new tab) (for robotic examples, install Python loaders)
- gepetto-viewer-corba (opens in a new tab) (for display in Gepetto viewer, i.e.,
GepettoDisplay) - meshcat-python (opens in a new tab) (for display in Meshcat, i.e.,
MeshcatDisplay) - whole_body_state_rviz_plugin (opens in a new tab) (for display in ROS, i.e.,
RvizDisplay) - crocoddyl_msgs (opens in a new tab) (for display in ROS, i.e.,
RvizDisplay) - urdf_parser_py (opens in a new tab) (for display in ROS, i.e.,
RvizDisplay) - jupyter (opens in a new tab) (for notebooks)
- matplotlib (opens in a new tab) (for plotting)
- Clone it (with --recursive), create a build directory inside, and:
cmake .. && make && make install
You can disable the tests, examples, and benchmarks using the following CMake options: BUILD_TESTING, BUILD_EXAMPLES, and BUILD_BENCHMARK. Note that the tests, examples or benchmarks require example-robot-data (opens in a new tab).
:mag: Documentation
Crocoddyl's Doxygen documentation is available here (opens in a new tab). Alternatively, you can also check out the Jupyter notebooks. We suggest to explore at least these notebooks:
- notebooks/01_introduction_to_crocoddyl.ipynb (opens in a new tab)
- notebooks/02_optimizing_a_cartpole_swingup.ipynb (opens in a new tab)
- notebooks/03_optimizing_an_unicycle.ipynb (opens in a new tab)
- notebooks/04_actuating_an_acrobot.ipynb (opens in a new tab)
- notebooks/05_codegenerating_a_cartpole.ipynb (opens in a new tab)
- notebooks/06_scaling_to_robotics.ipynb (opens in a new tab)
Moreover, after installation, you could run the examples as follows:
python -m crocoddyl.examples.quadrupedal_gaits "display" "plot" # enable display and plot
or run examples, unit tests and benchmarks from your build directory as
cd build
make test
make -s examples-quadrupedal_gaits INPUT="display plot" # enable display and plot
make -s benchmarks-cpp-quadrupedal_gaits INPUT="100 walk" # number of trials ; type of gait
where it is possible to enable display and/or plots generated by our examples using the environment variables:
export CROCODDYL_DISPLAY=1
export CROCODDYL_PLOT=1
:telescope: Citing Crocoddyl
To cite Crocoddyl in your academic research, please use the following BibTeX lines:
@inproceedings{mastalli20crocoddyl,
author={Mastalli, Carlos and Budhiraja, Rohan and Merkt, Wolfgang and Saurel, Guilhem and Hammoud, Bilal
and Naveau, Maximilien and Carpentier, Justin and Righetti, Ludovic and Vijayakumar, Sethu and Mansard, Nicolas},
title={{Crocoddyl: An Efficient and Versatile Framework for Multi-Contact Optimal Control}},
booktitle = {IEEE International Conference on Robotics and Automation (ICRA)},
year={2020}
}
Please consider citing our selected publications and contributions described in PUBLICATIONS.md (opens in a new tab).
Crocoddyl's contributions extend beyond efficient software development. Please also consider citing the algorithm contributions of our different solvers and formulations:
- Feasibility-driven solvers (FDDP and Intro): [1], [2]
- Inverse-dynamics trajectory optimization and endpoint constrains: [3] [4]
- Multi-Contact Inertial Parameters Estimation and Localization in Legged Robots: [5]
Finally, please also consider citing Pinocchio (opens in a new tab), which contributes to the efficient implementation of rigid body algorithms and their derivatives. For more details on how to cite Pinocchio visit: https://github.com/stack-of-tasks/pinocchio (opens in a new tab).
:open_book: Selected publications
[1] C. Mastalli, R. Budhiraja, W. Merkt, G. Saurel, B. Hammoud, M. Naveau, J. Carpentier, L. Righetti, S. Vijayakumar and N. Mansard. Crocoddyl: An Efficient and Versatile Framework for Multi-Contact Optimal Control (opens in a new tab), IEEE International Conference on Robotics and Automation (ICRA), 2020.
[2] C. Mastalli, W. Merkt, J. Marti-Saumell, H. Ferrolho, J. Sola, N. Mansard and S. Vijayakumar. A Feasibility-Driven Approach to Control-Limited DDP (opens in a new tab), Autonomous Robots, 2022.
[3] C. Mastalli, S. P. Chhatoi, T. Corbères, S. Tonneau and S. Vijayakumar. Inverse-Dynamics MPC via Nullspace Resolution (opens in a new tab), IEEE Transactions on Robotics, 2023.
[4] M. Parilli, S. Martinez, and C.Mastall. Endpoint-Explicit Differential Dynamic Programming via Exact Resolution (opens in a new tab), IEEE International Conference on Robotics and Automation (ICRA), 2025.
[5] S. Martinez, R. Griffin, and C.Mastalli. Multi-Contact Inertial Parameters Estimation and Localization in Legged Robots (opens in a new tab), IEEE Robotics and Automation Letters (RAL), 2025.
:computer: Questions and Issues
You have a question or an issue? Please open a new issue (opens in a new tab) or a discussion (opens in a new tab).
:copyright: Credits
:writing_hand: Written by
- Carlos Mastalli (opens in a new tab), Heriot-Watt University :uk: (project manager)
- Nicolas Mansard (opens in a new tab), LAAS-CNRS :fr:
- Rohan Budhiraja (opens in a new tab), LAAS-CNRS :fr: (alumnus)
:construction_worker: With contributions from
- Guilhem Saurel (opens in a new tab), LAAS-CNRS :fr:
- Wolfgang Merkt (opens in a new tab), University of Oxford :uk:
- Justin Carpentier (opens in a new tab), INRIA :fr:
- Andrea Del Prete (opens in a new tab), Università degli Studi di Trento :it:
- Wilson Jallet (opens in a new tab), INRIA :fr:
- Maximilien Naveau (opens in a new tab), MPI :de:
- Josep Martí Saumell (opens in a new tab), IRI: CSIC-UPC :es:
- Bilal Hammoud (opens in a new tab), MPI :de:
- Julian Eßer (opens in a new tab), Fraunhofer :de:
:trophy: Acknowledgments
Crocoddyl development was supported by the EU MEMMO project (opens in a new tab) and the EU RoboCom++ project (opens in a new tab). It is maintained by the Robot Motor Intelligence (RoMI) Lab (opens in a new tab) @ Heriot-Watt University (opens in a new tab), the Gepetto team (opens in a new tab) @ LAAS-CNRS (opens in a new tab), and the Willow team (opens in a new tab) @ INRIA (opens in a new tab).
Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.