Skip to main content

Efficient rigid body dynamics (python bindings)

Project description

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

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.

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pin-2.6.3-2-cp39-cp39-manylinux_2_24_x86_64.whl (5.6 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.24+ x86-64

pin-2.6.3-2-cp38-cp38-manylinux_2_24_x86_64.whl (5.6 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.24+ x86-64

pin-2.6.3-2-cp37-cp37m-manylinux_2_24_x86_64.whl (5.6 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.24+ x86-64

pin-2.6.3-2-cp36-cp36m-manylinux_2_24_x86_64.whl (5.6 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.24+ x86-64

pin-2.6.3-2-cp27-cp27mu-manylinux_2_24_x86_64.whl (5.6 MB view details)

Uploaded CPython 2.7mumanylinux: glibc 2.24+ x86-64

pin-2.6.3-1-cp39-cp39-manylinux_2_24_x86_64.whl (5.6 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.24+ x86-64

pin-2.6.3-1-cp38-cp38-manylinux_2_24_x86_64.whl (5.6 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.24+ x86-64

pin-2.6.3-1-cp37-cp37m-manylinux_2_24_x86_64.whl (5.6 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.24+ x86-64

pin-2.6.3-1-cp36-cp36m-manylinux_2_24_x86_64.whl (5.6 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.24+ x86-64

pin-2.6.3-1-cp27-cp27mu-manylinux_2_24_x86_64.whl (5.6 MB view details)

Uploaded CPython 2.7mumanylinux: glibc 2.24+ x86-64

File details

Details for the file pin-2.6.3-2-cp39-cp39-manylinux_2_24_x86_64.whl.

File metadata

  • Download URL: pin-2.6.3-2-cp39-cp39-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 5.6 MB
  • Tags: CPython 3.9, manylinux: glibc 2.24+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.6

File hashes

Hashes for pin-2.6.3-2-cp39-cp39-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 47150a14dca68f7bd309811039009ba4c1cd03d3665d76a747cb80c3445333d5
MD5 7a7e236368c3de07acfdd54128370273
BLAKE2b-256 29c17c8ce8b0325cc8790f8f18401c2f852986334a2d6d65a928b51634cd2de8

See more details on using hashes here.

File details

Details for the file pin-2.6.3-2-cp38-cp38-manylinux_2_24_x86_64.whl.

File metadata

  • Download URL: pin-2.6.3-2-cp38-cp38-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 5.6 MB
  • Tags: CPython 3.8, manylinux: glibc 2.24+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.6

File hashes

Hashes for pin-2.6.3-2-cp38-cp38-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 d141f61ce7fce5ee105828fb837a18e621301ea41730d98f7966bfc8a7ff08d5
MD5 25ba02a2b9cea93d949010f34bf088ab
BLAKE2b-256 49496d1f6ddd63c65b62d75cd80008cda2c41c7ec1bd8b88ff7153242aa0e0d5

See more details on using hashes here.

File details

Details for the file pin-2.6.3-2-cp37-cp37m-manylinux_2_24_x86_64.whl.

File metadata

  • Download URL: pin-2.6.3-2-cp37-cp37m-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 5.6 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.24+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.6

File hashes

Hashes for pin-2.6.3-2-cp37-cp37m-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 b81054715057db6c35309b93b1b443e63e7831624a24091ef40c99d697a3c636
MD5 334babc8bcaafbe2e2c7724c46ad2cff
BLAKE2b-256 2bd84119d4d62b8e9ec37d8278b1d4d8c0e700cac390cbf71987aea808fd8851

See more details on using hashes here.

File details

Details for the file pin-2.6.3-2-cp36-cp36m-manylinux_2_24_x86_64.whl.

File metadata

  • Download URL: pin-2.6.3-2-cp36-cp36m-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 5.6 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.24+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.6

File hashes

Hashes for pin-2.6.3-2-cp36-cp36m-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 a42dd860e1d5f3d6630e3a35d9fa3806cebd0c748e58257e0620cf6ababbd57d
MD5 d7f92abc8016c85f2d1662b7076cf3d4
BLAKE2b-256 c073d88f679b739fcb38b2dfee305cdc851b29ab41d2bf827687d80565b3939a

See more details on using hashes here.

File details

Details for the file pin-2.6.3-2-cp27-cp27mu-manylinux_2_24_x86_64.whl.

File metadata

  • Download URL: pin-2.6.3-2-cp27-cp27mu-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 5.6 MB
  • Tags: CPython 2.7mu, manylinux: glibc 2.24+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.6

File hashes

Hashes for pin-2.6.3-2-cp27-cp27mu-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 240a28a27ca6f7e7e3abb5925305cfe97d1788d8909bb677ea63a131848ffcaf
MD5 e772a31792b5f1a718756270d2cb3e3d
BLAKE2b-256 28eddc4a702fb4c87a4e8f7faf27e4542cd2afe392fd27daf500d2ce1e2a6cb2

See more details on using hashes here.

File details

Details for the file pin-2.6.3-1-cp39-cp39-manylinux_2_24_x86_64.whl.

File metadata

  • Download URL: pin-2.6.3-1-cp39-cp39-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 5.6 MB
  • Tags: CPython 3.9, manylinux: glibc 2.24+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.6

File hashes

Hashes for pin-2.6.3-1-cp39-cp39-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 7eef2ef770f1774468018db288ae04c6d5a96db704f86d51b5a572e234dd7572
MD5 cb89017a751266dcaf85b460c32c7ee9
BLAKE2b-256 26d3735d274689ac189c5c195b8c8d03e376169bbea33363c5f62946ed602f57

See more details on using hashes here.

File details

Details for the file pin-2.6.3-1-cp38-cp38-manylinux_2_24_x86_64.whl.

File metadata

  • Download URL: pin-2.6.3-1-cp38-cp38-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 5.6 MB
  • Tags: CPython 3.8, manylinux: glibc 2.24+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.6

File hashes

Hashes for pin-2.6.3-1-cp38-cp38-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 7e94e02b9c74efc50a479440a3086ec2ea4b2a949c24beef8e18e521278decdb
MD5 0e6a26e98c27644185e728ef1415359b
BLAKE2b-256 bb4f6553c8639b17890834f50c14638703af1f5a16ebd0a5ccdc4eb7b0d6cf60

See more details on using hashes here.

File details

Details for the file pin-2.6.3-1-cp37-cp37m-manylinux_2_24_x86_64.whl.

File metadata

  • Download URL: pin-2.6.3-1-cp37-cp37m-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 5.6 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.24+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.6

File hashes

Hashes for pin-2.6.3-1-cp37-cp37m-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 ee75c4b9bf3bf74cca5ca248cd9f5b1054fd8b962d3837bf271d1ecf045899d4
MD5 f799e269993b6ff96c298da4b94e58d4
BLAKE2b-256 6dab3fb80cb51f207eefd193d5a4da5cdad4c2b6ffb261b93b2c471a10c9efda

See more details on using hashes here.

File details

Details for the file pin-2.6.3-1-cp36-cp36m-manylinux_2_24_x86_64.whl.

File metadata

  • Download URL: pin-2.6.3-1-cp36-cp36m-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 5.6 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.24+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.6

File hashes

Hashes for pin-2.6.3-1-cp36-cp36m-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 8c96a7d8c5d3df9743bd91ece201a1739f25c1c7e4ffd3d114b6dce4bfde7b31
MD5 31f921b7bcf3bbe85af383c58e3583cd
BLAKE2b-256 8071b288839f12f6eed8b69a38813a45da47199bd1ed4cd0eeeaf58109ecd228

See more details on using hashes here.

File details

Details for the file pin-2.6.3-1-cp27-cp27mu-manylinux_2_24_x86_64.whl.

File metadata

  • Download URL: pin-2.6.3-1-cp27-cp27mu-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 5.6 MB
  • Tags: CPython 2.7mu, manylinux: glibc 2.24+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.6

File hashes

Hashes for pin-2.6.3-1-cp27-cp27mu-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 094efd405850a81ab4a970fda5b608939008cf81753631a621d4e9eeef953e83
MD5 e1acb0ae661c81a0aa890278dbe95cf7
BLAKE2b-256 41d4ccfd89bb8c28c1440056162e6b0febc4bf0381d3d4b286afab6e430cf007

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page