TEMPORARY RELEASE A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives
Project description
Pinocchio instantiates the state-of-the-art Rigid Body Algorithms for poly-articulated systems based on revisited Roy Featherstone's algorithms. Besides, Pinocchio provides the analytical derivatives of the main Rigid-Body Algorithms like the Recursive Newton-Euler Algorithm or the Articulated-Body Algorithm.
Pinocchio is first tailored for robotics applications, but it can be used in extra contexts (biomechanics, computer graphics, vision, etc.). It is built upon Eigen for linear algebra and FCL for collision detection. Pinocchio comes with a Python interface for fast code prototyping, directly accessible through Conda.
Pinocchio is now at the heart of various robotics softwares as 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, an open-source software for Motion and Manipulation Planning.
If you want to learn more on Pinocchio internal behaviors and main features, we invite you to read the related paper.
If you want to directly dive into Pinocchio, 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
Introducing Pinocchio 3
Pinocchio3 is released for development under the branch pinocchio3-preview on the main github repository. With Pinocchio3, multiple new features are introduced in Pinocchio, such as:
- Sparse Solution of Constrained Dynamics (Published in Robotics: Science and Systems 2021)
- Constrained Dynamics Derivatives (In pre-publishing stages)
- Constraint Models for handling loop constraints.
- Full casadi support in python and C++
- Increased support of CppAD and CppADCodeGen
- New SDF parser.
- and much more...
Pinocchio developers are highly encouraged to check out the new features. However, please keep in mind that this remains a development branch, and thus the API between 2.9.x and 2.9.{x+1} could change without backward compatibility.
The new constrained dynamics algorithm can be cited by the following publication:
@inproceedings{carpentier:hal-03271811,
TITLE = {{Proximal and Sparse Resolution of Constrained Dynamic Equations}},
AUTHOR = {Carpentier, Justin and Budhiraja, Rohan and Mansard, Nicolas},
URL = {https://hal.inria.fr/hal-03271811},
BOOKTITLE = {{Robotics: Science and Systems 2021}},
ADDRESS = {Austin / Virtual, United States},
YEAR = {2021},
MONTH = Jul,
PDF = {https://hal.inria.fr/hal-03271811/file/rss-proximal-and-sparse.pdf},
HAL_ID = {hal-03271811},
HAL_VERSION = {v1},
}
Pinocchio main features
Pinocchio is fast:
- C++ template library,
- cache friendly,
- automatic code generation support via CppADCodeGen.
Pinocchio is versatile, implementing basic and more advanced rigid body dynamics algorithms:
- forward kinematics and its analytical derivatives,
- forward/inverse dynamics and their analytical derivatives,
- centroidal dynamics and its analytical derivatives,
- support of multiple precision arithmetic via Boost.Multiprecision or any similar framework,
- computations of kinematic and dynamic regressors for system identification and more,
- and much more with the support of modern and open source Automatic Differentiation frameworks like CppAD or CasADi.
Pinocchio is flexible:
- header only,
- C++ 98/03/11/14/17/20 compliant.
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).
Performances
Pinocchio exploits at best the sparsity induced by the kinematic tree of robotics systems. Thanks to modern programming language paradigms, Pinocchio is able to unroll most of the computations directly at compile time, allowing to achieve impressive performances for a large 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 done here may also help you to understand and compare the performances of the modern rigid body dynamics librairies.
Ongoing developments
If you want to follow the current developments, you can directly refer to the devel branch. The master branch only contains latest release. Any new Pull Request should then be submitted on the devel branch.
Installation
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.
If you only need the Python bindings of Pinocchio, you may prefer to install it through Conda. Please follow the procedure described here.
Pinocchio is also deployed on ROS, you may follow its deployment status on Melodic or Kinetic.
Documentation
The online Pinocchio documentation of the last release is available here.
Examples
We provide some basic examples on how to use Pinocchio in Python in the examples/python directory. Additional examples introducing Pinocchio are also available in the documentation.
Tutorials
Pinocchio comes with a large bunch of tutorials aiming at introducing the basic tools for robot control. The content of the tutorials is described here. Additionnal materials were presented during the Memmo summer school and available here.
Visualization
Pinocchio provides support for many open-source and free visualizers:
- Gepetto Viewer: a C++ viewer based on OpenSceneGraph with Python bindings and Blender export. See here for a C++ example on mixing Pinocchio and Gepetto Viewer.
- Meshcat: supporting visualization in Python and which can be embeded inside any browser.
- Panda3d: supporting visualization in Python and which can be embeded inside any browser.
- RViz: supporting visualization in Python and which can interact with other ROS packages.
Many external viewers can also be integrated. See example here for more information.
Citing Pinocchio
To cite Pinocchio in your academic research, please use the following bibtex lines:
@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}
}
and the following one for the reference to the paper introducing Pinocchio:
@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}
}
The algorithms for the analytical derivatives of rigid-body dynamics algorithms are detailed here:
@inproceedings{carpentier2018analytical,
title = {Analytical Derivatives of Rigid Body Dynamics Algorithms},
author = {Carpentier, Justin and Mansard, Nicolas},
booktitle = {Robotics: Science and Systems},
year = {2018}
}
Questions and Issues
You have a question or an issue? You may either directly open a new issue or use the mailing list pinocchio@laas.fr.
Credits
The following people have been involved in the development of Pinocchio and are warmly thanked for their contributions:
- Justin Carpentier (Inria): main developer and manager of the project
- Nicolas Mansard (LAAS-CNRS): initial project instructor
- Guilhem Saurel (LAAS-CNRS): continuous integration and deployment
- Joseph Mirabel (LAAS-CNRS): Lie groups support
- Antonio El Khoury (Wandercraft): bug fixes
- Gabriele Buondono (LAAS-CNRS): features extension, bug fixes and Python bindings
- Florian Valenza (Astek): core developments and FCL support
- Wolfgang Merkt (University of Edinburgh): ROS integration and support
- Rohan Budhiraja (LAAS-CNRS): features extension
- Loïc Estève (Inria): Conda integration and support
- Igor Kalevatykh (Inria): Panda3d viewer support
- Matthieu Vigne (Wandercraft): MeshCat viewer support
- Robin Strudel (Inria): features extension
- François Keith (CEA): Windows support
- Aamr El Kazdadi (Inria): multiprecision arithmetic support
- Nicolas Torres Alberto (Inria): features extension
- Etienne Arlaud (Inria): RViz viewer support
If you have taken part to the development of Pinocchio, feel free to add your name and contribution in this list.
Acknowledgments
The development of Pinocchio is actively supported by the Gepetto team @LAAS-CNRS and the Willow team @INRIA.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file pin3_slam-1.6-0-cp310-cp310-manylinux_2_17_x86_64.whl
.
File metadata
- Download URL: pin3_slam-1.6-0-cp310-cp310-manylinux_2_17_x86_64.whl
- Upload date:
- Size: 26.7 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cfda65927ec63b259a718b55b37b27285c850dbea849e5a7e2da178242e8a03 |
|
MD5 | 32ecc0085d25b120fb3e2fc365117500 |
|
BLAKE2b-256 | 24dda49bff517bc13424378c30a75e3d1ac286d3a3d7d9497941bc524f4e4042 |
File details
Details for the file pin3_slam-1.6-0-cp310-cp310-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: pin3_slam-1.6-0-cp310-cp310-macosx_10_9_x86_64.whl
- Upload date:
- Size: 20.2 MB
- Tags: CPython 3.10, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66d9f0eb6c5c6982c8dc63c9622197b66f31e2523ecd4f50cb3a93ae1b6779b7 |
|
MD5 | 8189cc6cf796445937acd8ac1eb1844c |
|
BLAKE2b-256 | f60117f708fd79d07bcbe06ecdcf6d430adc9bc9ccc0030c4bbd575ba29580f3 |
File details
Details for the file pin3_slam-1.6-0-cp39-cp39-manylinux_2_17_x86_64.whl
.
File metadata
- Download URL: pin3_slam-1.6-0-cp39-cp39-manylinux_2_17_x86_64.whl
- Upload date:
- Size: 26.7 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b54a5d1a024af089c7949fc7b18fd9feb9ad6f7d0ddfd3ee66c739ed2ff8794 |
|
MD5 | 08b6c2ba6107b5c91caabc1187487cd5 |
|
BLAKE2b-256 | bc93477ba74e5b398352e9390da47a68e8a6b5591c6544d7b2e42f66416c5614 |
File details
Details for the file pin3_slam-1.6-0-cp39-cp39-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: pin3_slam-1.6-0-cp39-cp39-macosx_10_9_x86_64.whl
- Upload date:
- Size: 20.2 MB
- Tags: CPython 3.9, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a512b3cb06b3201135187c0a1c1fe55d4c3ae1c956a4a9ab4c7e8d1fb09b1d28 |
|
MD5 | cc414c484b8443d61c589b97957ce225 |
|
BLAKE2b-256 | ffbe7d5cecb934eb493e8eb5808b2763356b7dc2620d7d5757da373977c40b51 |
File details
Details for the file pin3_slam-1.6-0-cp38-cp38-manylinux_2_17_x86_64.whl
.
File metadata
- Download URL: pin3_slam-1.6-0-cp38-cp38-manylinux_2_17_x86_64.whl
- Upload date:
- Size: 26.7 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b65724975cf2e51ce05efa1ad3096b4a9e689e1b6df0b0dbc4420a866198e407 |
|
MD5 | 498c10d316cd3edeae9ef201979d6955 |
|
BLAKE2b-256 | 987ffdbab0faa7ddd2c99fe8afd1634b4d67ebb021d2dc097bfbca13311209e3 |
File details
Details for the file pin3_slam-1.6-0-cp38-cp38-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: pin3_slam-1.6-0-cp38-cp38-macosx_10_9_x86_64.whl
- Upload date:
- Size: 20.2 MB
- Tags: CPython 3.8, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94536e255799418cfcfa6bd1c47c3a797dbc1a9918ccc52a8e37647817b65144 |
|
MD5 | 38d7bf2b254e01303eb6966e68e6e6fa |
|
BLAKE2b-256 | d8322bba1c024178d259bc46ac36f81e2cdd2c0e1e0edad0445d1fe4b566953c |
File details
Details for the file pin3_slam-1.6-0-cp37-cp37m-manylinux_2_17_x86_64.whl
.
File metadata
- Download URL: pin3_slam-1.6-0-cp37-cp37m-manylinux_2_17_x86_64.whl
- Upload date:
- Size: 26.5 MB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70f04921e20d4989cb5a651e28ac4dc13a5ae72d59a8c65b42df4ba725db2e09 |
|
MD5 | 372b89b4c4b2de7b5602f162c1c3ae1c |
|
BLAKE2b-256 | a8121f1ee715bdc6e9a5bb213e6a9775102aaa036e1a9d6887ac665b3f9e5894 |
File details
Details for the file pin3_slam-1.6-0-cp37-cp37m-macosx_10_16_x86_64.whl
.
File metadata
- Download URL: pin3_slam-1.6-0-cp37-cp37m-macosx_10_16_x86_64.whl
- Upload date:
- Size: 20.0 MB
- Tags: CPython 3.7m, macOS 10.16+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fa7ce169b4baea69fd730b98e64a6441ac8fd535537620e28152ac10dda10e3 |
|
MD5 | 818c3c094107dab39025432c2ebdf0ae |
|
BLAKE2b-256 | 8ed67ef941d8a2d82516bf1e66af38b9be435d5338335f470d9260d357eb2503 |