Pinocchio is open-source software actively developed by the Willow team at Inria in the lovely city of Paris. Pinocchio instantiates state-of-the-art Rigid Body Algorithms for poly-articulated systems, building upon and revisiting the foundational algorithms introduced by Roy Featherstone.
Beyond traditional rigid-body dynamics formulations, Pinocchio delivers cutting-edge algorithmic solutions for modern robotics and physics-based simulation challenges. It efficiently handles closed-loop kinematic mechanisms, solves frictional contact problems, and differentiates physics computations — making it a powerful and versatile library for both research and industrial applications.
Pinocchio also provides analytical derivatives of the main Rigid Body Algorithms — such as the Recursive Newton-Euler Algorithm and the Articulated-Body Algorithm — enabling gradient-based optimization, control, and learning in both simulation and real-world settings.
Pinocchio was originally designed for robotics applications, but it can be used in other contexts (biomechanics, computer graphics, vision, etc.). It is built upon Eigen for linear algebra and coal for collision detection. Pinocchio includes a Python interface for fast code prototyping, directly accessible through Conda.
Pinocchio is now at the heart of various robotics software as Aligator, Crocoddyl, an open-source and efficient Differential Dynamic Programming solver for robotics, the Stack-of-Tasks, an open-source and versatile hierarchical controller framework, or the Humanoid Path Planner, open-source software for Motion and Manipulation Planning. Pinocchio is also a primary source of inspiration for the Kamino simulator developed by Disney Research, which populates the Newton physics engine.
If you want to learn more about Pinocchio internal behaviors and main features, we invite you to read the related paper and the online documentation or DeepWiki.
If you want to dive into Pinocchio directly, only one single line is sufficient (assuming you have Conda):
conda install pinocchio -c conda-forge
or via pip (currently only available on Linux):
pip install pin
Pinocchio is fast:
Pinocchio is versatile, implementing basic and more advanced rigid body dynamics algorithms:
Pinocchio can support description formats:
Pinocchio is flexible:
Pinocchio is extensible. Pinocchio is multi-thread friendly. Pinocchio is reliable and extensively tested (unit tests, simulations, and real-world robotics applications). Pinocchio is supported and tested on Windows, Mac OS X, Unix, and Linux (see build status here).
The online documentation for the latest release of Pinocchio is available here. A cheat sheet pdf with the main functions and algorithms can be found here.
In the examples directory, we provide some basic examples of using Pinocchio in Python. Additional examples introducing Pinocchio are also available in the documentation.
Pinocchio comes with a large set of tutorials that introduce the basic tools for robot control. Tutorial and training documents are listed here. You can also consider the interactive Jupyter notebook set of tutorials developed by Nicolas Mansard and Yann de Mont-Marin.
Pinocchio is constantly tested for several platforms and distributions, as reported below:
| CI on ROS | |
| CI on Linux via APT | |
| CI on macOS and Windows via Pixi | |
| CI on Linux via Robotpkg |
Pinocchio exploits, at best, the sparsity induced by the kinematic tree of robotics systems. Thanks to modern programming language paradigms, Pinocchio can unroll most of the computations directly at compile time, allowing to achieve impressive performances for an extensive range of robots, as illustrated by the plot below, obtained on a standard laptop equipped with an Intel Core i7 CPU @ 2.4 GHz.
For other benchmarks, and mainly the capacity of Pinocchio to exploit, at best, your CPU capacities using advanced code generation techniques, we refer to the technical paper. In addition, the introspection may also help you to understand and compare the performances of the modern rigid body dynamics libraries.
If you want to follow the current developments, you can refer to the devel branch. The devel branch only contains the latest release. Any new Pull Request should be submitted on the devel branch.
Pinocchio can be easily installed on various Linux (Ubuntu, Fedora, etc.) and Unix distributions (Mac OS X, BSD, etc.). Please refer to the installation procedure.
You simply need this simple line:
conda install pinocchio -c conda-forge
docker run --rm -it ghcr.io/stack-of-tasks/pinocchio:devel
Pinocchio is also deployed on ROS. You may follow its deployment status below.
If you're interested in using Pinocchio on systems and/or with packages that integrate with the ROS ecosystem, we recommend the installation of Pinocchio via the binaries distributed via the ROS PPA. Here, you can install Pinocchio using:
sudo apt install ros-$ROS_DISTRO-pinocchio
This installs Pinocchio with Coal support for collision checking and with Python bindings. You can then use Pinocchio in your ROS packages by:
package.xml config (<depend>pinocchio</depend>)find_package(pinocchio REQUIRED)) and linking against Pinocchio (target_link_libraries(my_library pinocchio::pinocchio))We include support and hooks to discover the package for ROS build systems. A ROS 2 example can be found in this repository.
Please note that we always advise including the pinocchio/fwd.hpp header as the first include to avoid compilation errors from differing Boost-variant sizes.
| ROS 2 Distro | Build Status |
|---|---|
| Humble | |
| Jazzy | |
| Kilted | |
| Lyrical | |
| Rolling |
Pinocchio provides support for many open-source and free visualizers:
Many external viewers can also be integrated. For more information, see the example here.
To cite Pinocchio in your academic research, please consider citing the software paper and use the following BibTeX entry:
@inproceedings{carpentier2019pinocchio,
title={The Pinocchio C++ library -- A fast and flexible implementation of rigid body dynamics algorithms and their analytical derivatives},
author={Carpentier, Justin and Saurel, Guilhem and Buondonno, Gabriele and Mirabel, Joseph and Lamiraux, Florent and Stasse, Olivier and Mansard, Nicolas},
booktitle={IEEE International Symposium on System Integrations (SII)},
year={2019}
}
And the following one for the link to the GitHub codebase:
@misc{pinocchioweb,
author = {Justin Carpentier and Florian Valenza and Nicolas Mansard and others},
title = {Pinocchio: fast forward and inverse dynamics for poly-articulated systems},
howpublished = {https://stack-of-tasks.github.io/pinocchio},
year = {2015--2021}
}
Pinocchio goes beyond implementing the standard rigid-body dynamics algorithms and results from active research on simulation, learning, and control. Pinocchio provides state-of-the-art algorithms for handling constraints, closed-loops mechanisms, differentiating forward and inverse dynamics, etc. If you use these algorithms, please consider citing them in your research articles.
If you want to ask a question, report a bug, request a new feature or contributing with a pull requests please, follow the contribution guideline.
The currently active core developers of Pinocchio are:
In addition to the core dev team, the following people have also been involved in the development of Pinocchio and are warmly thanked for their contributions:
If you have participated in the development of Pinocchio, please add your name and contribution to this list.
ros2_control.The development of Pinocchio is actively led by the Willow team @INRIA, with the support of the Gepetto team @LAAS-CNRS.
A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives
@stack-of-tasks/pinocchio2.6.21.bcr.7 +24d2026-02-17 | |
2.6.21.bcr.6 +2.3mo2026-01-23 | |
2.6.21.bcr.5 +1.1mo2025-11-14 | |
2.6.21.bcr.4 +2d2025-10-13 | |
2.6.21.bcr.3 +3.3mo2025-10-10 | |
2.6.21.bcr.2 +3d2025-07-01 | |
2.6.21.bcr.1 +10h2025-06-28 | |
2.6.212025-06-27 |