Skip to main content

Pinocchio Logo

License Build Status Coverage Report Conda Downloads Conda Version Anaconda-Server Badge

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.

Pinocchio Logo

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:

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.

Metadata

Release files for pin3-slam 1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for pin3-slam 1.6
File
pin3_slam-1.6-0-cp310-cp310-manylinux_2_17_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details
pin3_slam-1.6-0-cp310-cp310-macosx_10_9_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.9+ x86-64 Details
pin3_slam-1.6-0-cp39-cp39-manylinux_2_17_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details
pin3_slam-1.6-0-cp39-cp39-macosx_10_9_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.9+ x86-64 Details
pin3_slam-1.6-0-cp38-cp38-manylinux_2_17_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ x86-64 Details
pin3_slam-1.6-0-cp38-cp38-macosx_10_9_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.9+ x86-64 Details
pin3_slam-1.6-0-cp37-cp37m-manylinux_2_17_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64 Details
pin3_slam-1.6-0-cp37-cp37m-macosx_10_16_x86_64.whl CPython 3.7 CPython 3.7 pymalloc macOS 10.16+ x86-64 Details

Total release size: 187.3 MB

Release files / pin3_slam-1.6-0-cp310-cp310-manylinux_2_17_x86_64.whl

Download URL pin3_slam-1.6-0-cp310-cp310-manylinux_2_17_x86_64.whl
Size 26.7 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
4cfda65927ec63b259a718b55b37b27285c850dbea849e5a7e2da178242e8a03
BLAKE2b-256 checksum
How to use checksums
24dda49bff517bc13424378c30a75e3d1ac286d3a3d7d9497941bc524f4e4042
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / pin3_slam-1.6-0-cp310-cp310-macosx_10_9_x86_64.whl

Download URL pin3_slam-1.6-0-cp310-cp310-macosx_10_9_x86_64.whl
Size 20.2 MB
Tags CPython 3.10 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
66d9f0eb6c5c6982c8dc63c9622197b66f31e2523ecd4f50cb3a93ae1b6779b7
BLAKE2b-256 checksum
How to use checksums
f60117f708fd79d07bcbe06ecdcf6d430adc9bc9ccc0030c4bbd575ba29580f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / pin3_slam-1.6-0-cp39-cp39-manylinux_2_17_x86_64.whl

Download URL pin3_slam-1.6-0-cp39-cp39-manylinux_2_17_x86_64.whl
Size 26.7 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
3b54a5d1a024af089c7949fc7b18fd9feb9ad6f7d0ddfd3ee66c739ed2ff8794
BLAKE2b-256 checksum
How to use checksums
bc93477ba74e5b398352e9390da47a68e8a6b5591c6544d7b2e42f66416c5614
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / pin3_slam-1.6-0-cp39-cp39-macosx_10_9_x86_64.whl

Download URL pin3_slam-1.6-0-cp39-cp39-macosx_10_9_x86_64.whl
Size 20.2 MB
Tags CPython 3.9 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
a512b3cb06b3201135187c0a1c1fe55d4c3ae1c956a4a9ab4c7e8d1fb09b1d28
BLAKE2b-256 checksum
How to use checksums
ffbe7d5cecb934eb493e8eb5808b2763356b7dc2620d7d5757da373977c40b51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / pin3_slam-1.6-0-cp38-cp38-manylinux_2_17_x86_64.whl

Download URL pin3_slam-1.6-0-cp38-cp38-manylinux_2_17_x86_64.whl
Size 26.7 MB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
b65724975cf2e51ce05efa1ad3096b4a9e689e1b6df0b0dbc4420a866198e407
BLAKE2b-256 checksum
How to use checksums
987ffdbab0faa7ddd2c99fe8afd1634b4d67ebb021d2dc097bfbca13311209e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / pin3_slam-1.6-0-cp38-cp38-macosx_10_9_x86_64.whl

Download URL pin3_slam-1.6-0-cp38-cp38-macosx_10_9_x86_64.whl
Size 20.2 MB
Tags CPython 3.8 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
94536e255799418cfcfa6bd1c47c3a797dbc1a9918ccc52a8e37647817b65144
BLAKE2b-256 checksum
How to use checksums
d8322bba1c024178d259bc46ac36f81e2cdd2c0e1e0edad0445d1fe4b566953c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / pin3_slam-1.6-0-cp37-cp37m-manylinux_2_17_x86_64.whl

Download URL pin3_slam-1.6-0-cp37-cp37m-manylinux_2_17_x86_64.whl
Size 26.5 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
70f04921e20d4989cb5a651e28ac4dc13a5ae72d59a8c65b42df4ba725db2e09
BLAKE2b-256 checksum
How to use checksums
a8121f1ee715bdc6e9a5bb213e6a9775102aaa036e1a9d6887ac665b3f9e5894
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / pin3_slam-1.6-0-cp37-cp37m-macosx_10_16_x86_64.whl

Download URL pin3_slam-1.6-0-cp37-cp37m-macosx_10_16_x86_64.whl
Size 20.0 MB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.16+ x86-64
SHA-256 checksum
How to use checksums
6fa7ce169b4baea69fd730b98e64a6441ac8fd535537620e28152ac10dda10e3
BLAKE2b-256 checksum
How to use checksums
8ed67ef941d8a2d82516bf1e66af38b9be435d5338335f470d9260d357eb2503
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release history Release notifications | RSS feed

This release

1.6 This release

8 release files

1.0

26 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page