Package symbol

pinocchio package from pinocchio repo

pinocchio

ROS Distro
humble

Package Summary

Version 4.0.0
License BSD-2-Clause
Build type CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/stack-of-tasks/pinocchio.git
VCS Type git
VCS Version devel
Last Updated 2026-04-20
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives.

Additional Links

Maintainers

  • Justin Carpentier
  • Wolfgang Merkt
  • Guilhem Saurel

Authors

No additional authors.

Pinocchio Logo

License Documentation Ask DeepWiki Coverage Report Conda Downloads Conda Version PyPI version pre-commit.ci status

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

Table of contents

Pinocchio main features

Pinocchio is fast:

  • C++ template library,
  • cache-friendly,
  • support custom scalar type.

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,
  • computations of kinematic and dynamic regressors for system identification and more,
  • full support of closed-loop mechanisms,
  • state-of-the-art frictional contact solvers,
  • low-complexity constrained articulated body algorithms,
  • sparse constrained dynamics and its analytical derivatives,
  • full support of multiple-precision floating-point (MPFR) in Python and C++,
  • support of modern and open-source Automatic Differentiation frameworks like CppAD or CasADi,
  • automatic code generation support is available via CppADCodeGen.

Pinocchio can support description formats:

  • URDF format,
  • SDF format,
  • MJCF format,
  • SRDF format,
  • programmatically.

Pinocchio is flexible:

File truncated at 100 lines see the full file

CHANGELOG

Changelog

All notable changes to this project will be documented in this file.

Change that doesn’t affect end user should not be listed:

  • CI change
  • Github specific file change

The format is based on Keep a Changelog.

[Unreleased]

[4.0.0] - 2026-04-13

Highlights

  • lcaba algorithm:
    • Compute forward dynamics for constrained system with closed kinematics loops
    • Python example here
  • New constraint API:
    • PointContactConstraintModelTpl, PointAnchorConstraintModelTpl, FrameAnchorConstraintModelTpl, JointLimitConstraintModelTpl and JointFrictionConstraintModelTpl constraint models
    • Each constraint model is associated to its own constraint data
    • Variants ConstraintModelTpl/ConstraintDataTpl encapsulate all constraints models and data
    • Delassus operator API: DelassusOperatorDenseTpl, DelassusOperatorSparseTpl, DelassusOperatorCholeskyExpressionTpl, DelassusOperatorRigidBodyTpl
    • These operators are tightly linked to the new constraints API All these operators compute the same mathematical operator $J M^{-1} J^T$ ($J$ is the constraints jacobian, $M^{-1}$ is the inverse of the mass matrix), but with different algorithms and internal optimizations
  • ADMMConstraintSolverTpl and PGSConstraintSolverTpl algorithms:
    • Solve constrained dynamics expressed with the new constraint API
    • Python examples here and here. These examples show how to use each constraint model, how to build a constraint problem, how to compute the associated Delassus operator and how to solve it
  • New header convention
    • Introduce omnibus headers:
      • pinocchio/math.hpp
      • pinocchio/spatial.hpp
      • pinocchio/mutlibody.hpp

Added

  • Add lcaba algorithm in pinocchio/algorithm/loop-constrained-aba.hpp
    • Compute forward dynamics for constrained system with closed kinematics loops
  • Add computeJointMinimalOrdering in pinocchio/constraints.hpp
    • Compute joint processing order for lcaba
  • Add new constraint API in pinocchio/constraints.hpp
    • PointContactConstraintModel: models a unilateral contact constraint with coulomb friction cone
    • PointAnchorConstraintModel: models a point-wise equality constraint (bilateral constraint)
    • FrameAnchorConstraintModel: models a frame-wise equality constraint (bilateral constraint)
    • JointLimitConstraintModel: models a component-wise joint limit lower/upper bound constraint
    • JointFrictionConstraintModel: models a component-wise joint friction lower/upper bound constraint
  • Add new Delassus API in pinocchio/algorithm/delassus.hpp
  • Add ADMMConstraintSolverTpl in pinocchio/algorithm/solvers/admm-solver.hpp
    • Solve constrained dynamics using an ADMM algorithm
  • Add PGSConstraintSolverTpl in pinocchio/algorithm/solvers/pgs-solver.hpp
    • Solve constrained dynamics using a projected Gauss Siedel algorithm
  • Add new functions in pinocchio/multibody/liegroup.hpp
    • tangentMap: transforms a configuration variation into a small variation expressed in the parametric space
    • tangentMapProduct and tangentMapTransport: apply tangentMap while exploiting sparsity
  • Add mimic joint support for all Lie group related algorithms
  • Add new methods to JointModelBase:
    • jointQrows and jointQcols that make selections of size NQ
    • jointQVMap that make selections of size NQ x NV
    • lieGroup that returns the Lie group instance associated to a joint
  • Add lieGroup function that returns the Lie group instance associated to a model
  • Add new mjcf::buildModel overload to load new constraint API from MJCF
  • Add new sdf::buildModel overload to load new constraint API from SDF
  • Add new Python functions to load MJCF model:
    • Add pinocchio.buildModelFromMJCFAndRootJoint load model with a custom root joint
    • Add pinocchio.buildModelAndConstraintFromMJCF load model and constraints (new API)
    • Add pinocchio.buildModelAndLegacyConstraintFromMJCF load model and constraints (old API)
  • Add Python example showcasing the candlewick visualizer
  • Add PINOCCHIO_DISABLE_UNSUPPORTED_WARNINGS C++ definition to disable unsupported algorithm warnings
  • Add PINOCCHIO_BUILD_MPFR_TESTING CMake option to build MPFR tests
  • Add pinocchio/utils/alloca.hpp: Helpers for mapping stack allocation for Eigen::Map
  • Add pinochio/container/eigen-storage.hpp: Introduce internal::EigenStorageTpl
  • Add pinochio/container/matrix-stack.hpp: Introduce internal::MatrixStackTpl
  • Add pinochio/container/double-entry-container.hpp: Introduce internal::DoubleEntryContainer
  • Add internal::MatrixBlockElementTpl in math.hpp
  • Add internal::BlockDiagonalMatrixTpl in math.hpp
  • Add internal::matrix_product in math.hpp
  • Add internal::matrix_inversion in math.hpp
  • Add internal::matrix_inversion_code_generated in math.hpp
  • Add support to libsdformat > 14

Changed

  • C++17 is now the minimal supported version of the C++ standard. Check cppreference to see if your compiler supports it.
  • Introduce new header convention described here
    • Omnibus header as default pinocchio include
    • Replace headers guards by #pragma once
  • Bindings/python: Add missing arg names in visualizer-visitor.hpp
  • Renamed PINOCCHIO_PRAGMA_DEPRECATED_HEADER to PINOCCHIO_MOVED_HEADER
  • Docs: update documentation stylesheet, fix some Doxygen config options
  • Replace hpp-fcl by coal (see doc/_porting.md):
    • C++:
      • Deprecate pinocchio/multibody/fcl.hpp moved at pinocchio/multibody/coal.hpp
      • Deprecate pinocchio/serialization/fcl.hpp moved at pinocchio/serialization/coal.hpp
      • Deprecate pinocchio/collision/fcl-pinocchio-conversions.hpp moved at pinocchio/collision/coal-pinocchio-conversions.hpp
      • Deprecate pinocchio/bindings/python/collision/fcl/transform.hpp moved at pinocchio/bindings/python/collision/coal/transform.hpp
      • Deprecate pinocchio::toFclTransform3f replaced by pinocchio::toCoalTransform3s
      • Deprecate PINOCCHIO_WITH_HPP_FCL replaced by PINOCCHIO_WITH_COLLISION
    • Python:

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged pinocchio at Robotics Stack Exchange

Package symbol

pinocchio package from pinocchio repo

pinocchio

ROS Distro
jazzy

Package Summary

Version 4.0.0
License BSD-2-Clause
Build type CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/stack-of-tasks/pinocchio.git
VCS Type git
VCS Version devel
Last Updated 2026-04-20
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives.

Additional Links

Maintainers

  • Justin Carpentier
  • Wolfgang Merkt
  • Guilhem Saurel

Authors

No additional authors.

Pinocchio Logo

License Documentation Ask DeepWiki Coverage Report Conda Downloads Conda Version PyPI version pre-commit.ci status

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

Table of contents

Pinocchio main features

Pinocchio is fast:

  • C++ template library,
  • cache-friendly,
  • support custom scalar type.

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,
  • computations of kinematic and dynamic regressors for system identification and more,
  • full support of closed-loop mechanisms,
  • state-of-the-art frictional contact solvers,
  • low-complexity constrained articulated body algorithms,
  • sparse constrained dynamics and its analytical derivatives,
  • full support of multiple-precision floating-point (MPFR) in Python and C++,
  • support of modern and open-source Automatic Differentiation frameworks like CppAD or CasADi,
  • automatic code generation support is available via CppADCodeGen.

Pinocchio can support description formats:

  • URDF format,
  • SDF format,
  • MJCF format,
  • SRDF format,
  • programmatically.

Pinocchio is flexible:

File truncated at 100 lines see the full file

CHANGELOG

Changelog

All notable changes to this project will be documented in this file.

Change that doesn’t affect end user should not be listed:

  • CI change
  • Github specific file change

The format is based on Keep a Changelog.

[Unreleased]

[4.0.0] - 2026-04-13

Highlights

  • lcaba algorithm:
    • Compute forward dynamics for constrained system with closed kinematics loops
    • Python example here
  • New constraint API:
    • PointContactConstraintModelTpl, PointAnchorConstraintModelTpl, FrameAnchorConstraintModelTpl, JointLimitConstraintModelTpl and JointFrictionConstraintModelTpl constraint models
    • Each constraint model is associated to its own constraint data
    • Variants ConstraintModelTpl/ConstraintDataTpl encapsulate all constraints models and data
    • Delassus operator API: DelassusOperatorDenseTpl, DelassusOperatorSparseTpl, DelassusOperatorCholeskyExpressionTpl, DelassusOperatorRigidBodyTpl
    • These operators are tightly linked to the new constraints API All these operators compute the same mathematical operator $J M^{-1} J^T$ ($J$ is the constraints jacobian, $M^{-1}$ is the inverse of the mass matrix), but with different algorithms and internal optimizations
  • ADMMConstraintSolverTpl and PGSConstraintSolverTpl algorithms:
    • Solve constrained dynamics expressed with the new constraint API
    • Python examples here and here. These examples show how to use each constraint model, how to build a constraint problem, how to compute the associated Delassus operator and how to solve it
  • New header convention
    • Introduce omnibus headers:
      • pinocchio/math.hpp
      • pinocchio/spatial.hpp
      • pinocchio/mutlibody.hpp

Added

  • Add lcaba algorithm in pinocchio/algorithm/loop-constrained-aba.hpp
    • Compute forward dynamics for constrained system with closed kinematics loops
  • Add computeJointMinimalOrdering in pinocchio/constraints.hpp
    • Compute joint processing order for lcaba
  • Add new constraint API in pinocchio/constraints.hpp
    • PointContactConstraintModel: models a unilateral contact constraint with coulomb friction cone
    • PointAnchorConstraintModel: models a point-wise equality constraint (bilateral constraint)
    • FrameAnchorConstraintModel: models a frame-wise equality constraint (bilateral constraint)
    • JointLimitConstraintModel: models a component-wise joint limit lower/upper bound constraint
    • JointFrictionConstraintModel: models a component-wise joint friction lower/upper bound constraint
  • Add new Delassus API in pinocchio/algorithm/delassus.hpp
  • Add ADMMConstraintSolverTpl in pinocchio/algorithm/solvers/admm-solver.hpp
    • Solve constrained dynamics using an ADMM algorithm
  • Add PGSConstraintSolverTpl in pinocchio/algorithm/solvers/pgs-solver.hpp
    • Solve constrained dynamics using a projected Gauss Siedel algorithm
  • Add new functions in pinocchio/multibody/liegroup.hpp
    • tangentMap: transforms a configuration variation into a small variation expressed in the parametric space
    • tangentMapProduct and tangentMapTransport: apply tangentMap while exploiting sparsity
  • Add mimic joint support for all Lie group related algorithms
  • Add new methods to JointModelBase:
    • jointQrows and jointQcols that make selections of size NQ
    • jointQVMap that make selections of size NQ x NV
    • lieGroup that returns the Lie group instance associated to a joint
  • Add lieGroup function that returns the Lie group instance associated to a model
  • Add new mjcf::buildModel overload to load new constraint API from MJCF
  • Add new sdf::buildModel overload to load new constraint API from SDF
  • Add new Python functions to load MJCF model:
    • Add pinocchio.buildModelFromMJCFAndRootJoint load model with a custom root joint
    • Add pinocchio.buildModelAndConstraintFromMJCF load model and constraints (new API)
    • Add pinocchio.buildModelAndLegacyConstraintFromMJCF load model and constraints (old API)
  • Add Python example showcasing the candlewick visualizer
  • Add PINOCCHIO_DISABLE_UNSUPPORTED_WARNINGS C++ definition to disable unsupported algorithm warnings
  • Add PINOCCHIO_BUILD_MPFR_TESTING CMake option to build MPFR tests
  • Add pinocchio/utils/alloca.hpp: Helpers for mapping stack allocation for Eigen::Map
  • Add pinochio/container/eigen-storage.hpp: Introduce internal::EigenStorageTpl
  • Add pinochio/container/matrix-stack.hpp: Introduce internal::MatrixStackTpl
  • Add pinochio/container/double-entry-container.hpp: Introduce internal::DoubleEntryContainer
  • Add internal::MatrixBlockElementTpl in math.hpp
  • Add internal::BlockDiagonalMatrixTpl in math.hpp
  • Add internal::matrix_product in math.hpp
  • Add internal::matrix_inversion in math.hpp
  • Add internal::matrix_inversion_code_generated in math.hpp
  • Add support to libsdformat > 14

Changed

  • C++17 is now the minimal supported version of the C++ standard. Check cppreference to see if your compiler supports it.
  • Introduce new header convention described here
    • Omnibus header as default pinocchio include
    • Replace headers guards by #pragma once
  • Bindings/python: Add missing arg names in visualizer-visitor.hpp
  • Renamed PINOCCHIO_PRAGMA_DEPRECATED_HEADER to PINOCCHIO_MOVED_HEADER
  • Docs: update documentation stylesheet, fix some Doxygen config options
  • Replace hpp-fcl by coal (see doc/_porting.md):
    • C++:
      • Deprecate pinocchio/multibody/fcl.hpp moved at pinocchio/multibody/coal.hpp
      • Deprecate pinocchio/serialization/fcl.hpp moved at pinocchio/serialization/coal.hpp
      • Deprecate pinocchio/collision/fcl-pinocchio-conversions.hpp moved at pinocchio/collision/coal-pinocchio-conversions.hpp
      • Deprecate pinocchio/bindings/python/collision/fcl/transform.hpp moved at pinocchio/bindings/python/collision/coal/transform.hpp
      • Deprecate pinocchio::toFclTransform3f replaced by pinocchio::toCoalTransform3s
      • Deprecate PINOCCHIO_WITH_HPP_FCL replaced by PINOCCHIO_WITH_COLLISION
    • Python:

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged pinocchio at Robotics Stack Exchange

Package symbol

pinocchio package from pinocchio repo

pinocchio

ROS Distro
kilted

Package Summary

Version 4.0.0
License BSD-2-Clause
Build type CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/stack-of-tasks/pinocchio.git
VCS Type git
VCS Version devel
Last Updated 2026-04-20
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives.

Additional Links

Maintainers

  • Justin Carpentier
  • Wolfgang Merkt
  • Guilhem Saurel

Authors

No additional authors.

Pinocchio Logo

License Documentation Ask DeepWiki Coverage Report Conda Downloads Conda Version PyPI version pre-commit.ci status

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

Table of contents

Pinocchio main features

Pinocchio is fast:

  • C++ template library,
  • cache-friendly,
  • support custom scalar type.

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,
  • computations of kinematic and dynamic regressors for system identification and more,
  • full support of closed-loop mechanisms,
  • state-of-the-art frictional contact solvers,
  • low-complexity constrained articulated body algorithms,
  • sparse constrained dynamics and its analytical derivatives,
  • full support of multiple-precision floating-point (MPFR) in Python and C++,
  • support of modern and open-source Automatic Differentiation frameworks like CppAD or CasADi,
  • automatic code generation support is available via CppADCodeGen.

Pinocchio can support description formats:

  • URDF format,
  • SDF format,
  • MJCF format,
  • SRDF format,
  • programmatically.

Pinocchio is flexible:

File truncated at 100 lines see the full file

CHANGELOG

Changelog

All notable changes to this project will be documented in this file.

Change that doesn’t affect end user should not be listed:

  • CI change
  • Github specific file change

The format is based on Keep a Changelog.

[Unreleased]

[4.0.0] - 2026-04-13

Highlights

  • lcaba algorithm:
    • Compute forward dynamics for constrained system with closed kinematics loops
    • Python example here
  • New constraint API:
    • PointContactConstraintModelTpl, PointAnchorConstraintModelTpl, FrameAnchorConstraintModelTpl, JointLimitConstraintModelTpl and JointFrictionConstraintModelTpl constraint models
    • Each constraint model is associated to its own constraint data
    • Variants ConstraintModelTpl/ConstraintDataTpl encapsulate all constraints models and data
    • Delassus operator API: DelassusOperatorDenseTpl, DelassusOperatorSparseTpl, DelassusOperatorCholeskyExpressionTpl, DelassusOperatorRigidBodyTpl
    • These operators are tightly linked to the new constraints API All these operators compute the same mathematical operator $J M^{-1} J^T$ ($J$ is the constraints jacobian, $M^{-1}$ is the inverse of the mass matrix), but with different algorithms and internal optimizations
  • ADMMConstraintSolverTpl and PGSConstraintSolverTpl algorithms:
    • Solve constrained dynamics expressed with the new constraint API
    • Python examples here and here. These examples show how to use each constraint model, how to build a constraint problem, how to compute the associated Delassus operator and how to solve it
  • New header convention
    • Introduce omnibus headers:
      • pinocchio/math.hpp
      • pinocchio/spatial.hpp
      • pinocchio/mutlibody.hpp

Added

  • Add lcaba algorithm in pinocchio/algorithm/loop-constrained-aba.hpp
    • Compute forward dynamics for constrained system with closed kinematics loops
  • Add computeJointMinimalOrdering in pinocchio/constraints.hpp
    • Compute joint processing order for lcaba
  • Add new constraint API in pinocchio/constraints.hpp
    • PointContactConstraintModel: models a unilateral contact constraint with coulomb friction cone
    • PointAnchorConstraintModel: models a point-wise equality constraint (bilateral constraint)
    • FrameAnchorConstraintModel: models a frame-wise equality constraint (bilateral constraint)
    • JointLimitConstraintModel: models a component-wise joint limit lower/upper bound constraint
    • JointFrictionConstraintModel: models a component-wise joint friction lower/upper bound constraint
  • Add new Delassus API in pinocchio/algorithm/delassus.hpp
  • Add ADMMConstraintSolverTpl in pinocchio/algorithm/solvers/admm-solver.hpp
    • Solve constrained dynamics using an ADMM algorithm
  • Add PGSConstraintSolverTpl in pinocchio/algorithm/solvers/pgs-solver.hpp
    • Solve constrained dynamics using a projected Gauss Siedel algorithm
  • Add new functions in pinocchio/multibody/liegroup.hpp
    • tangentMap: transforms a configuration variation into a small variation expressed in the parametric space
    • tangentMapProduct and tangentMapTransport: apply tangentMap while exploiting sparsity
  • Add mimic joint support for all Lie group related algorithms
  • Add new methods to JointModelBase:
    • jointQrows and jointQcols that make selections of size NQ
    • jointQVMap that make selections of size NQ x NV
    • lieGroup that returns the Lie group instance associated to a joint
  • Add lieGroup function that returns the Lie group instance associated to a model
  • Add new mjcf::buildModel overload to load new constraint API from MJCF
  • Add new sdf::buildModel overload to load new constraint API from SDF
  • Add new Python functions to load MJCF model:
    • Add pinocchio.buildModelFromMJCFAndRootJoint load model with a custom root joint
    • Add pinocchio.buildModelAndConstraintFromMJCF load model and constraints (new API)
    • Add pinocchio.buildModelAndLegacyConstraintFromMJCF load model and constraints (old API)
  • Add Python example showcasing the candlewick visualizer
  • Add PINOCCHIO_DISABLE_UNSUPPORTED_WARNINGS C++ definition to disable unsupported algorithm warnings
  • Add PINOCCHIO_BUILD_MPFR_TESTING CMake option to build MPFR tests
  • Add pinocchio/utils/alloca.hpp: Helpers for mapping stack allocation for Eigen::Map
  • Add pinochio/container/eigen-storage.hpp: Introduce internal::EigenStorageTpl
  • Add pinochio/container/matrix-stack.hpp: Introduce internal::MatrixStackTpl
  • Add pinochio/container/double-entry-container.hpp: Introduce internal::DoubleEntryContainer
  • Add internal::MatrixBlockElementTpl in math.hpp
  • Add internal::BlockDiagonalMatrixTpl in math.hpp
  • Add internal::matrix_product in math.hpp
  • Add internal::matrix_inversion in math.hpp
  • Add internal::matrix_inversion_code_generated in math.hpp
  • Add support to libsdformat > 14

Changed

  • C++17 is now the minimal supported version of the C++ standard. Check cppreference to see if your compiler supports it.
  • Introduce new header convention described here
    • Omnibus header as default pinocchio include
    • Replace headers guards by #pragma once
  • Bindings/python: Add missing arg names in visualizer-visitor.hpp
  • Renamed PINOCCHIO_PRAGMA_DEPRECATED_HEADER to PINOCCHIO_MOVED_HEADER
  • Docs: update documentation stylesheet, fix some Doxygen config options
  • Replace hpp-fcl by coal (see doc/_porting.md):
    • C++:
      • Deprecate pinocchio/multibody/fcl.hpp moved at pinocchio/multibody/coal.hpp
      • Deprecate pinocchio/serialization/fcl.hpp moved at pinocchio/serialization/coal.hpp
      • Deprecate pinocchio/collision/fcl-pinocchio-conversions.hpp moved at pinocchio/collision/coal-pinocchio-conversions.hpp
      • Deprecate pinocchio/bindings/python/collision/fcl/transform.hpp moved at pinocchio/bindings/python/collision/coal/transform.hpp
      • Deprecate pinocchio::toFclTransform3f replaced by pinocchio::toCoalTransform3s
      • Deprecate PINOCCHIO_WITH_HPP_FCL replaced by PINOCCHIO_WITH_COLLISION
    • Python:

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged pinocchio at Robotics Stack Exchange

Package symbol

pinocchio package from pinocchio repo

pinocchio

ROS Distro
rolling

Package Summary

Version 4.0.0
License BSD-2-Clause
Build type CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/stack-of-tasks/pinocchio.git
VCS Type git
VCS Version devel
Last Updated 2026-04-20
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives.

Additional Links

Maintainers

  • Justin Carpentier
  • Wolfgang Merkt
  • Guilhem Saurel

Authors

No additional authors.

Pinocchio Logo

License Documentation Ask DeepWiki Coverage Report Conda Downloads Conda Version PyPI version pre-commit.ci status

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

Table of contents

Pinocchio main features

Pinocchio is fast:

  • C++ template library,
  • cache-friendly,
  • support custom scalar type.

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,
  • computations of kinematic and dynamic regressors for system identification and more,
  • full support of closed-loop mechanisms,
  • state-of-the-art frictional contact solvers,
  • low-complexity constrained articulated body algorithms,
  • sparse constrained dynamics and its analytical derivatives,
  • full support of multiple-precision floating-point (MPFR) in Python and C++,
  • support of modern and open-source Automatic Differentiation frameworks like CppAD or CasADi,
  • automatic code generation support is available via CppADCodeGen.

Pinocchio can support description formats:

  • URDF format,
  • SDF format,
  • MJCF format,
  • SRDF format,
  • programmatically.

Pinocchio is flexible:

File truncated at 100 lines see the full file

CHANGELOG

Changelog

All notable changes to this project will be documented in this file.

Change that doesn’t affect end user should not be listed:

  • CI change
  • Github specific file change

The format is based on Keep a Changelog.

[Unreleased]

[4.0.0] - 2026-04-13

Highlights

  • lcaba algorithm:
    • Compute forward dynamics for constrained system with closed kinematics loops
    • Python example here
  • New constraint API:
    • PointContactConstraintModelTpl, PointAnchorConstraintModelTpl, FrameAnchorConstraintModelTpl, JointLimitConstraintModelTpl and JointFrictionConstraintModelTpl constraint models
    • Each constraint model is associated to its own constraint data
    • Variants ConstraintModelTpl/ConstraintDataTpl encapsulate all constraints models and data
    • Delassus operator API: DelassusOperatorDenseTpl, DelassusOperatorSparseTpl, DelassusOperatorCholeskyExpressionTpl, DelassusOperatorRigidBodyTpl
    • These operators are tightly linked to the new constraints API All these operators compute the same mathematical operator $J M^{-1} J^T$ ($J$ is the constraints jacobian, $M^{-1}$ is the inverse of the mass matrix), but with different algorithms and internal optimizations
  • ADMMConstraintSolverTpl and PGSConstraintSolverTpl algorithms:
    • Solve constrained dynamics expressed with the new constraint API
    • Python examples here and here. These examples show how to use each constraint model, how to build a constraint problem, how to compute the associated Delassus operator and how to solve it
  • New header convention
    • Introduce omnibus headers:
      • pinocchio/math.hpp
      • pinocchio/spatial.hpp
      • pinocchio/mutlibody.hpp

Added

  • Add lcaba algorithm in pinocchio/algorithm/loop-constrained-aba.hpp
    • Compute forward dynamics for constrained system with closed kinematics loops
  • Add computeJointMinimalOrdering in pinocchio/constraints.hpp
    • Compute joint processing order for lcaba
  • Add new constraint API in pinocchio/constraints.hpp
    • PointContactConstraintModel: models a unilateral contact constraint with coulomb friction cone
    • PointAnchorConstraintModel: models a point-wise equality constraint (bilateral constraint)
    • FrameAnchorConstraintModel: models a frame-wise equality constraint (bilateral constraint)
    • JointLimitConstraintModel: models a component-wise joint limit lower/upper bound constraint
    • JointFrictionConstraintModel: models a component-wise joint friction lower/upper bound constraint
  • Add new Delassus API in pinocchio/algorithm/delassus.hpp
  • Add ADMMConstraintSolverTpl in pinocchio/algorithm/solvers/admm-solver.hpp
    • Solve constrained dynamics using an ADMM algorithm
  • Add PGSConstraintSolverTpl in pinocchio/algorithm/solvers/pgs-solver.hpp
    • Solve constrained dynamics using a projected Gauss Siedel algorithm
  • Add new functions in pinocchio/multibody/liegroup.hpp
    • tangentMap: transforms a configuration variation into a small variation expressed in the parametric space
    • tangentMapProduct and tangentMapTransport: apply tangentMap while exploiting sparsity
  • Add mimic joint support for all Lie group related algorithms
  • Add new methods to JointModelBase:
    • jointQrows and jointQcols that make selections of size NQ
    • jointQVMap that make selections of size NQ x NV
    • lieGroup that returns the Lie group instance associated to a joint
  • Add lieGroup function that returns the Lie group instance associated to a model
  • Add new mjcf::buildModel overload to load new constraint API from MJCF
  • Add new sdf::buildModel overload to load new constraint API from SDF
  • Add new Python functions to load MJCF model:
    • Add pinocchio.buildModelFromMJCFAndRootJoint load model with a custom root joint
    • Add pinocchio.buildModelAndConstraintFromMJCF load model and constraints (new API)
    • Add pinocchio.buildModelAndLegacyConstraintFromMJCF load model and constraints (old API)
  • Add Python example showcasing the candlewick visualizer
  • Add PINOCCHIO_DISABLE_UNSUPPORTED_WARNINGS C++ definition to disable unsupported algorithm warnings
  • Add PINOCCHIO_BUILD_MPFR_TESTING CMake option to build MPFR tests
  • Add pinocchio/utils/alloca.hpp: Helpers for mapping stack allocation for Eigen::Map
  • Add pinochio/container/eigen-storage.hpp: Introduce internal::EigenStorageTpl
  • Add pinochio/container/matrix-stack.hpp: Introduce internal::MatrixStackTpl
  • Add pinochio/container/double-entry-container.hpp: Introduce internal::DoubleEntryContainer
  • Add internal::MatrixBlockElementTpl in math.hpp
  • Add internal::BlockDiagonalMatrixTpl in math.hpp
  • Add internal::matrix_product in math.hpp
  • Add internal::matrix_inversion in math.hpp
  • Add internal::matrix_inversion_code_generated in math.hpp
  • Add support to libsdformat > 14

Changed

  • C++17 is now the minimal supported version of the C++ standard. Check cppreference to see if your compiler supports it.
  • Introduce new header convention described here
    • Omnibus header as default pinocchio include
    • Replace headers guards by #pragma once
  • Bindings/python: Add missing arg names in visualizer-visitor.hpp
  • Renamed PINOCCHIO_PRAGMA_DEPRECATED_HEADER to PINOCCHIO_MOVED_HEADER
  • Docs: update documentation stylesheet, fix some Doxygen config options
  • Replace hpp-fcl by coal (see doc/_porting.md):
    • C++:
      • Deprecate pinocchio/multibody/fcl.hpp moved at pinocchio/multibody/coal.hpp
      • Deprecate pinocchio/serialization/fcl.hpp moved at pinocchio/serialization/coal.hpp
      • Deprecate pinocchio/collision/fcl-pinocchio-conversions.hpp moved at pinocchio/collision/coal-pinocchio-conversions.hpp
      • Deprecate pinocchio/bindings/python/collision/fcl/transform.hpp moved at pinocchio/bindings/python/collision/coal/transform.hpp
      • Deprecate pinocchio::toFclTransform3f replaced by pinocchio::toCoalTransform3s
      • Deprecate PINOCCHIO_WITH_HPP_FCL replaced by PINOCCHIO_WITH_COLLISION
    • Python:

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged pinocchio at Robotics Stack Exchange

Package Summary

Version 2.7.1
License BSD-2
Build type CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/clearlab-sustech/bipedal_mpc.git
VCS Type git
VCS Version master
Last Updated 2024-12-30
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives.

Additional Links

Maintainers

  • Justin Carpentier
  • Wolfgang Merkt

Authors

No additional authors.

Pinocchio Logo

License Documentation Coverage Report Conda Downloads Conda Version PyPI version

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 was first tailored 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 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 software 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, open-source software for Motion and Manipulation Planning.

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.

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

Table of contents

Pinocchio main features

Pinocchio is fast:

  • C++ template library,
  • cache friendly,
  • automatic code generation support is available 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 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).

Documentation

The online Pinocchio documentation of the last release is available here. A cheat sheet pdf with the main functions and algorithms can be found here.

Examples

We provide some basic examples of using Pinocchio in Python in the examples 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. 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 continuous integrations

File truncated at 100 lines see the full file

CHANGELOG

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog.

[Unreleased]

[2.7.1] - 2024-04-26

Changed

  • Modify algorithm that appends a model to another (#2218)
  • Set NOMINMAX as a public definitions on Windows (#2139)
  • Improve documentation of enum ReferenceFrame (#2190)
  • Improve documentation of getJointJacobian (#2193).

Fixed

  • CMake now uses Relative Path instead of Absolute (#2202)
  • Order of frames in ReducedModel is now the same as in the full model (#2160)
  • Remove a lot of warnings (#2139)
  • MeshcatVisualizer doesn’t crash anymore when there is no collision model defined (#2147)
  • Fix MSVC build (#2155)
  • Fix stub generation (#2166)
  • Clean up empty documentation pages and sections (#2167)
  • Fix SO(3) title and cross-section reference in the documentation (#2210)

Added

  • Add examples/floating-base-velocity-viewer.py to visualize floating base velocity (#2143)
  • Add remark to the documentation of getFrame(Classical)Acceleration functions (#2169)
  • Allow use of installed jrl-cmakemodules (#2216)

[2.7.0] - 2024-01-23

Added

  • Add GeometryObject::meshMaterial attribute (#2084)

Fixed

  • Use bp::ssize_t for recent version of Windows compilers (#2102)
  • Fix missing include for Boost >= 1.83 (#2103)
  • Remove f-strings to fix install with python 2 (#2110)
  • CMake: stop exporting CppAd/cppadcodegen & fetch submodule if not available (#2112)
  • Fix malloc issue in CRBA algo (#2126)
  • Fix build cppad and cppadcg with Boost < 1.77 (#2132)

[2.6.21] - 2023-11-27

Added

  • Add inverse dynamics (rnea) Python and C++ example (#2083)
  • Add visualization of Frames in MeshCat viewer (#2098)

Fixed

  • Re-initialize Ycrb[0] in crbaMinimal (#2040)
  • Fix custom scalar use in log function (#2047)
  • Raise exception on wrong input size in XYZQUATToSE3 Python binding function (#2073)
  • Remove memory leak in buildGeomFromUrdf and buildGeomFromUrdfString Python binding functions (#2082https://github.com/stack-of-tasks/pinocchio/pull/2082)
  • Fix Panda3D viewer examples (#2087)
  • Fix centroidal dynamics derivatives with respect to time (#2094))

Changed

  • Rename freeflyer_joint to root_joint in humanoid sample model (#2043)
  • CMake minimal version is now 3.10 (#2055)
  • Split headers and sources in different directories to have a more standard C++ project (#2070)

Removed

  • Remove support to hpp-fcl < v2.0.0 (#2086)

[2.6.20] - 2023-08-09

What’s Changed

  • Fix support of recent versions of Boost for CppAD and CppADCodeGen by @jcarpent in https://github.com/stack-of-tasks/pinocchio/pull/2000
  • build(deps): bump ros-industrial/industrial_ci from afbf77f39db26785371161d5691ab435b31bb3ba to 1e0c5aff1147d50d58bf4185a55ff564c9b6e027 by @dependabot in https://github.com/stack-of-tasks/pinocchio/pull/2007
  • Enabled copy and deepcopy by @cmastalli in https://github.com/stack-of-tasks/pinocchio/pull/1882
  • build(deps): bump ros-industrial/industrial_ci from afbf77f39db26785371161d5691ab435b31bb3ba to 9f963f67ebb889792175776c5ee00134d7bb569b by @dependabot in https://github.com/stack-of-tasks/pinocchio/pull/2013
  • Sync submodule cmake by @jcarpent in https://github.com/stack-of-tasks/pinocchio/pull/2029

[2.6.19] - 2023-06-19

What’s Changed

  • Add Motion::toHomogeneousMatrix by @stephane-caron in https://github.com/stack-of-tasks/pinocchio/pull/1946
  • The insatiable English teacher PR 🧙 by @stephane-caron in https://github.com/stack-of-tasks/pinocchio/pull/1957
  • require C++14 for Boost >= 1.81 by @nim65s in https://github.com/stack-of-tasks/pinocchio/pull/1949
  • CMake: an example require python 3 by @nim65s in https://github.com/stack-of-tasks/pinocchio/pull/1966
  • Fix IK example in the documentation by @stephane-caron in https://github.com/stack-of-tasks/pinocchio/pull/1963
  • Issue templates by @stephane-caron in https://github.com/stack-of-tasks/pinocchio/pull/1971
  • build(deps): bump ros-industrial/industrial_ci from 4b78602d67127a63dce62926769d9ec4e2ce72e4 to afbf77f39db26785371161d5691ab435b31bb3ba by @dependabot in https://github.com/stack-of-tasks/pinocchio/pull/1976
  • Enhance CMake packaging for Windows by @jcarpent in https://github.com/stack-of-tasks/pinocchio/pull/1984
  • Documentation by @drewhamiltonasdf in https://github.com/stack-of-tasks/pinocchio/pull/1986
  • Add support for ccache on Conda build by @jcarpent in https://github.com/stack-of-tasks/pinocchio/pull/1987
  • build(deps): bump ros-industrial/industrial_ci from 4b78602d67127a63dce62926769d9ec4e2ce72e4 to afbf77f39db26785371161d5691ab435b31bb3ba by @dependabot in https://github.com/stack-of-tasks/pinocchio/pull/1988
  • Enhance compatibility with new Python versions by @jcarpent in https://github.com/stack-of-tasks/pinocchio/pull/1996

New Contributors

  • @drewhamiltonasdf made their first contribution in https://github.com/stack-of-tasks/pinocchio/pull/1986

[2.6.18] - 2023-04-29

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged pinocchio at Robotics Stack Exchange

Package symbol

pinocchio package from pinocchio repo

pinocchio

ROS Distro
galactic

Package Summary

Version 4.0.0
License BSD-2-Clause
Build type CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/stack-of-tasks/pinocchio.git
VCS Type git
VCS Version devel
Last Updated 2026-04-20
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives.

Additional Links

Maintainers

  • Justin Carpentier
  • Wolfgang Merkt
  • Guilhem Saurel

Authors

No additional authors.

Pinocchio Logo

License Documentation Ask DeepWiki Coverage Report Conda Downloads Conda Version PyPI version pre-commit.ci status

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

Table of contents

Pinocchio main features

Pinocchio is fast:

  • C++ template library,
  • cache-friendly,
  • support custom scalar type.

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,
  • computations of kinematic and dynamic regressors for system identification and more,
  • full support of closed-loop mechanisms,
  • state-of-the-art frictional contact solvers,
  • low-complexity constrained articulated body algorithms,
  • sparse constrained dynamics and its analytical derivatives,
  • full support of multiple-precision floating-point (MPFR) in Python and C++,
  • support of modern and open-source Automatic Differentiation frameworks like CppAD or CasADi,
  • automatic code generation support is available via CppADCodeGen.

Pinocchio can support description formats:

  • URDF format,
  • SDF format,
  • MJCF format,
  • SRDF format,
  • programmatically.

Pinocchio is flexible:

File truncated at 100 lines see the full file

CHANGELOG

Changelog

All notable changes to this project will be documented in this file.

Change that doesn’t affect end user should not be listed:

  • CI change
  • Github specific file change

The format is based on Keep a Changelog.

[Unreleased]

[4.0.0] - 2026-04-13

Highlights

  • lcaba algorithm:
    • Compute forward dynamics for constrained system with closed kinematics loops
    • Python example here
  • New constraint API:
    • PointContactConstraintModelTpl, PointAnchorConstraintModelTpl, FrameAnchorConstraintModelTpl, JointLimitConstraintModelTpl and JointFrictionConstraintModelTpl constraint models
    • Each constraint model is associated to its own constraint data
    • Variants ConstraintModelTpl/ConstraintDataTpl encapsulate all constraints models and data
    • Delassus operator API: DelassusOperatorDenseTpl, DelassusOperatorSparseTpl, DelassusOperatorCholeskyExpressionTpl, DelassusOperatorRigidBodyTpl
    • These operators are tightly linked to the new constraints API All these operators compute the same mathematical operator $J M^{-1} J^T$ ($J$ is the constraints jacobian, $M^{-1}$ is the inverse of the mass matrix), but with different algorithms and internal optimizations
  • ADMMConstraintSolverTpl and PGSConstraintSolverTpl algorithms:
    • Solve constrained dynamics expressed with the new constraint API
    • Python examples here and here. These examples show how to use each constraint model, how to build a constraint problem, how to compute the associated Delassus operator and how to solve it
  • New header convention
    • Introduce omnibus headers:
      • pinocchio/math.hpp
      • pinocchio/spatial.hpp
      • pinocchio/mutlibody.hpp

Added

  • Add lcaba algorithm in pinocchio/algorithm/loop-constrained-aba.hpp
    • Compute forward dynamics for constrained system with closed kinematics loops
  • Add computeJointMinimalOrdering in pinocchio/constraints.hpp
    • Compute joint processing order for lcaba
  • Add new constraint API in pinocchio/constraints.hpp
    • PointContactConstraintModel: models a unilateral contact constraint with coulomb friction cone
    • PointAnchorConstraintModel: models a point-wise equality constraint (bilateral constraint)
    • FrameAnchorConstraintModel: models a frame-wise equality constraint (bilateral constraint)
    • JointLimitConstraintModel: models a component-wise joint limit lower/upper bound constraint
    • JointFrictionConstraintModel: models a component-wise joint friction lower/upper bound constraint
  • Add new Delassus API in pinocchio/algorithm/delassus.hpp
  • Add ADMMConstraintSolverTpl in pinocchio/algorithm/solvers/admm-solver.hpp
    • Solve constrained dynamics using an ADMM algorithm
  • Add PGSConstraintSolverTpl in pinocchio/algorithm/solvers/pgs-solver.hpp
    • Solve constrained dynamics using a projected Gauss Siedel algorithm
  • Add new functions in pinocchio/multibody/liegroup.hpp
    • tangentMap: transforms a configuration variation into a small variation expressed in the parametric space
    • tangentMapProduct and tangentMapTransport: apply tangentMap while exploiting sparsity
  • Add mimic joint support for all Lie group related algorithms
  • Add new methods to JointModelBase:
    • jointQrows and jointQcols that make selections of size NQ
    • jointQVMap that make selections of size NQ x NV
    • lieGroup that returns the Lie group instance associated to a joint
  • Add lieGroup function that returns the Lie group instance associated to a model
  • Add new mjcf::buildModel overload to load new constraint API from MJCF
  • Add new sdf::buildModel overload to load new constraint API from SDF
  • Add new Python functions to load MJCF model:
    • Add pinocchio.buildModelFromMJCFAndRootJoint load model with a custom root joint
    • Add pinocchio.buildModelAndConstraintFromMJCF load model and constraints (new API)
    • Add pinocchio.buildModelAndLegacyConstraintFromMJCF load model and constraints (old API)
  • Add Python example showcasing the candlewick visualizer
  • Add PINOCCHIO_DISABLE_UNSUPPORTED_WARNINGS C++ definition to disable unsupported algorithm warnings
  • Add PINOCCHIO_BUILD_MPFR_TESTING CMake option to build MPFR tests
  • Add pinocchio/utils/alloca.hpp: Helpers for mapping stack allocation for Eigen::Map
  • Add pinochio/container/eigen-storage.hpp: Introduce internal::EigenStorageTpl
  • Add pinochio/container/matrix-stack.hpp: Introduce internal::MatrixStackTpl
  • Add pinochio/container/double-entry-container.hpp: Introduce internal::DoubleEntryContainer
  • Add internal::MatrixBlockElementTpl in math.hpp
  • Add internal::BlockDiagonalMatrixTpl in math.hpp
  • Add internal::matrix_product in math.hpp
  • Add internal::matrix_inversion in math.hpp
  • Add internal::matrix_inversion_code_generated in math.hpp
  • Add support to libsdformat > 14

Changed

  • C++17 is now the minimal supported version of the C++ standard. Check cppreference to see if your compiler supports it.
  • Introduce new header convention described here
    • Omnibus header as default pinocchio include
    • Replace headers guards by #pragma once
  • Bindings/python: Add missing arg names in visualizer-visitor.hpp
  • Renamed PINOCCHIO_PRAGMA_DEPRECATED_HEADER to PINOCCHIO_MOVED_HEADER
  • Docs: update documentation stylesheet, fix some Doxygen config options
  • Replace hpp-fcl by coal (see doc/_porting.md):
    • C++:
      • Deprecate pinocchio/multibody/fcl.hpp moved at pinocchio/multibody/coal.hpp
      • Deprecate pinocchio/serialization/fcl.hpp moved at pinocchio/serialization/coal.hpp
      • Deprecate pinocchio/collision/fcl-pinocchio-conversions.hpp moved at pinocchio/collision/coal-pinocchio-conversions.hpp
      • Deprecate pinocchio/bindings/python/collision/fcl/transform.hpp moved at pinocchio/bindings/python/collision/coal/transform.hpp
      • Deprecate pinocchio::toFclTransform3f replaced by pinocchio::toCoalTransform3s
      • Deprecate PINOCCHIO_WITH_HPP_FCL replaced by PINOCCHIO_WITH_COLLISION
    • Python:

File truncated at 100 lines see the full file

Dependant Packages

No known dependants.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged pinocchio at Robotics Stack Exchange

Package symbol

pinocchio package from pinocchio repo

pinocchio

ROS Distro
iron

Package Summary

Version 4.0.0
License BSD-2-Clause
Build type CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/stack-of-tasks/pinocchio.git
VCS Type git
VCS Version devel
Last Updated 2026-04-20
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives.

Additional Links

Maintainers

  • Justin Carpentier
  • Wolfgang Merkt
  • Guilhem Saurel

Authors

No additional authors.

Pinocchio Logo

License Documentation Ask DeepWiki Coverage Report Conda Downloads Conda Version PyPI version pre-commit.ci status

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

Table of contents

Pinocchio main features

Pinocchio is fast:

  • C++ template library,
  • cache-friendly,
  • support custom scalar type.

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,
  • computations of kinematic and dynamic regressors for system identification and more,
  • full support of closed-loop mechanisms,
  • state-of-the-art frictional contact solvers,
  • low-complexity constrained articulated body algorithms,
  • sparse constrained dynamics and its analytical derivatives,
  • full support of multiple-precision floating-point (MPFR) in Python and C++,
  • support of modern and open-source Automatic Differentiation frameworks like CppAD or CasADi,
  • automatic code generation support is available via CppADCodeGen.

Pinocchio can support description formats:

  • URDF format,
  • SDF format,
  • MJCF format,
  • SRDF format,
  • programmatically.

Pinocchio is flexible:

File truncated at 100 lines see the full file

CHANGELOG

Changelog

All notable changes to this project will be documented in this file.

Change that doesn’t affect end user should not be listed:

  • CI change
  • Github specific file change

The format is based on Keep a Changelog.

[Unreleased]

[4.0.0] - 2026-04-13

Highlights

  • lcaba algorithm:
    • Compute forward dynamics for constrained system with closed kinematics loops
    • Python example here
  • New constraint API:
    • PointContactConstraintModelTpl, PointAnchorConstraintModelTpl, FrameAnchorConstraintModelTpl, JointLimitConstraintModelTpl and JointFrictionConstraintModelTpl constraint models
    • Each constraint model is associated to its own constraint data
    • Variants ConstraintModelTpl/ConstraintDataTpl encapsulate all constraints models and data
    • Delassus operator API: DelassusOperatorDenseTpl, DelassusOperatorSparseTpl, DelassusOperatorCholeskyExpressionTpl, DelassusOperatorRigidBodyTpl
    • These operators are tightly linked to the new constraints API All these operators compute the same mathematical operator $J M^{-1} J^T$ ($J$ is the constraints jacobian, $M^{-1}$ is the inverse of the mass matrix), but with different algorithms and internal optimizations
  • ADMMConstraintSolverTpl and PGSConstraintSolverTpl algorithms:
    • Solve constrained dynamics expressed with the new constraint API
    • Python examples here and here. These examples show how to use each constraint model, how to build a constraint problem, how to compute the associated Delassus operator and how to solve it
  • New header convention
    • Introduce omnibus headers:
      • pinocchio/math.hpp
      • pinocchio/spatial.hpp
      • pinocchio/mutlibody.hpp

Added

  • Add lcaba algorithm in pinocchio/algorithm/loop-constrained-aba.hpp
    • Compute forward dynamics for constrained system with closed kinematics loops
  • Add computeJointMinimalOrdering in pinocchio/constraints.hpp
    • Compute joint processing order for lcaba
  • Add new constraint API in pinocchio/constraints.hpp
    • PointContactConstraintModel: models a unilateral contact constraint with coulomb friction cone
    • PointAnchorConstraintModel: models a point-wise equality constraint (bilateral constraint)
    • FrameAnchorConstraintModel: models a frame-wise equality constraint (bilateral constraint)
    • JointLimitConstraintModel: models a component-wise joint limit lower/upper bound constraint
    • JointFrictionConstraintModel: models a component-wise joint friction lower/upper bound constraint
  • Add new Delassus API in pinocchio/algorithm/delassus.hpp
  • Add ADMMConstraintSolverTpl in pinocchio/algorithm/solvers/admm-solver.hpp
    • Solve constrained dynamics using an ADMM algorithm
  • Add PGSConstraintSolverTpl in pinocchio/algorithm/solvers/pgs-solver.hpp
    • Solve constrained dynamics using a projected Gauss Siedel algorithm
  • Add new functions in pinocchio/multibody/liegroup.hpp
    • tangentMap: transforms a configuration variation into a small variation expressed in the parametric space
    • tangentMapProduct and tangentMapTransport: apply tangentMap while exploiting sparsity
  • Add mimic joint support for all Lie group related algorithms
  • Add new methods to JointModelBase:
    • jointQrows and jointQcols that make selections of size NQ
    • jointQVMap that make selections of size NQ x NV
    • lieGroup that returns the Lie group instance associated to a joint
  • Add lieGroup function that returns the Lie group instance associated to a model
  • Add new mjcf::buildModel overload to load new constraint API from MJCF
  • Add new sdf::buildModel overload to load new constraint API from SDF
  • Add new Python functions to load MJCF model:
    • Add pinocchio.buildModelFromMJCFAndRootJoint load model with a custom root joint
    • Add pinocchio.buildModelAndConstraintFromMJCF load model and constraints (new API)
    • Add pinocchio.buildModelAndLegacyConstraintFromMJCF load model and constraints (old API)
  • Add Python example showcasing the candlewick visualizer
  • Add PINOCCHIO_DISABLE_UNSUPPORTED_WARNINGS C++ definition to disable unsupported algorithm warnings
  • Add PINOCCHIO_BUILD_MPFR_TESTING CMake option to build MPFR tests
  • Add pinocchio/utils/alloca.hpp: Helpers for mapping stack allocation for Eigen::Map
  • Add pinochio/container/eigen-storage.hpp: Introduce internal::EigenStorageTpl
  • Add pinochio/container/matrix-stack.hpp: Introduce internal::MatrixStackTpl
  • Add pinochio/container/double-entry-container.hpp: Introduce internal::DoubleEntryContainer
  • Add internal::MatrixBlockElementTpl in math.hpp
  • Add internal::BlockDiagonalMatrixTpl in math.hpp
  • Add internal::matrix_product in math.hpp
  • Add internal::matrix_inversion in math.hpp
  • Add internal::matrix_inversion_code_generated in math.hpp
  • Add support to libsdformat > 14

Changed

  • C++17 is now the minimal supported version of the C++ standard. Check cppreference to see if your compiler supports it.
  • Introduce new header convention described here
    • Omnibus header as default pinocchio include
    • Replace headers guards by #pragma once
  • Bindings/python: Add missing arg names in visualizer-visitor.hpp
  • Renamed PINOCCHIO_PRAGMA_DEPRECATED_HEADER to PINOCCHIO_MOVED_HEADER
  • Docs: update documentation stylesheet, fix some Doxygen config options
  • Replace hpp-fcl by coal (see doc/_porting.md):
    • C++:
      • Deprecate pinocchio/multibody/fcl.hpp moved at pinocchio/multibody/coal.hpp
      • Deprecate pinocchio/serialization/fcl.hpp moved at pinocchio/serialization/coal.hpp
      • Deprecate pinocchio/collision/fcl-pinocchio-conversions.hpp moved at pinocchio/collision/coal-pinocchio-conversions.hpp
      • Deprecate pinocchio/bindings/python/collision/fcl/transform.hpp moved at pinocchio/bindings/python/collision/coal/transform.hpp
      • Deprecate pinocchio::toFclTransform3f replaced by pinocchio::toCoalTransform3s
      • Deprecate PINOCCHIO_WITH_HPP_FCL replaced by PINOCCHIO_WITH_COLLISION
    • Python:

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged pinocchio at Robotics Stack Exchange

Package symbol

pinocchio package from pinocchio repo

pinocchio

ROS Distro
melodic

Package Summary

Version 4.0.0
License BSD-2-Clause
Build type CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/stack-of-tasks/pinocchio.git
VCS Type git
VCS Version devel
Last Updated 2026-04-20
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives.

Additional Links

Maintainers

  • Justin Carpentier
  • Wolfgang Merkt
  • Guilhem Saurel

Authors

No additional authors.

Pinocchio Logo

License Documentation Ask DeepWiki Coverage Report Conda Downloads Conda Version PyPI version pre-commit.ci status

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

Table of contents

Pinocchio main features

Pinocchio is fast:

  • C++ template library,
  • cache-friendly,
  • support custom scalar type.

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,
  • computations of kinematic and dynamic regressors for system identification and more,
  • full support of closed-loop mechanisms,
  • state-of-the-art frictional contact solvers,
  • low-complexity constrained articulated body algorithms,
  • sparse constrained dynamics and its analytical derivatives,
  • full support of multiple-precision floating-point (MPFR) in Python and C++,
  • support of modern and open-source Automatic Differentiation frameworks like CppAD or CasADi,
  • automatic code generation support is available via CppADCodeGen.

Pinocchio can support description formats:

  • URDF format,
  • SDF format,
  • MJCF format,
  • SRDF format,
  • programmatically.

Pinocchio is flexible:

File truncated at 100 lines see the full file

CHANGELOG

Changelog

All notable changes to this project will be documented in this file.

Change that doesn’t affect end user should not be listed:

  • CI change
  • Github specific file change

The format is based on Keep a Changelog.

[Unreleased]

[4.0.0] - 2026-04-13

Highlights

  • lcaba algorithm:
    • Compute forward dynamics for constrained system with closed kinematics loops
    • Python example here
  • New constraint API:
    • PointContactConstraintModelTpl, PointAnchorConstraintModelTpl, FrameAnchorConstraintModelTpl, JointLimitConstraintModelTpl and JointFrictionConstraintModelTpl constraint models
    • Each constraint model is associated to its own constraint data
    • Variants ConstraintModelTpl/ConstraintDataTpl encapsulate all constraints models and data
    • Delassus operator API: DelassusOperatorDenseTpl, DelassusOperatorSparseTpl, DelassusOperatorCholeskyExpressionTpl, DelassusOperatorRigidBodyTpl
    • These operators are tightly linked to the new constraints API All these operators compute the same mathematical operator $J M^{-1} J^T$ ($J$ is the constraints jacobian, $M^{-1}$ is the inverse of the mass matrix), but with different algorithms and internal optimizations
  • ADMMConstraintSolverTpl and PGSConstraintSolverTpl algorithms:
    • Solve constrained dynamics expressed with the new constraint API
    • Python examples here and here. These examples show how to use each constraint model, how to build a constraint problem, how to compute the associated Delassus operator and how to solve it
  • New header convention
    • Introduce omnibus headers:
      • pinocchio/math.hpp
      • pinocchio/spatial.hpp
      • pinocchio/mutlibody.hpp

Added

  • Add lcaba algorithm in pinocchio/algorithm/loop-constrained-aba.hpp
    • Compute forward dynamics for constrained system with closed kinematics loops
  • Add computeJointMinimalOrdering in pinocchio/constraints.hpp
    • Compute joint processing order for lcaba
  • Add new constraint API in pinocchio/constraints.hpp
    • PointContactConstraintModel: models a unilateral contact constraint with coulomb friction cone
    • PointAnchorConstraintModel: models a point-wise equality constraint (bilateral constraint)
    • FrameAnchorConstraintModel: models a frame-wise equality constraint (bilateral constraint)
    • JointLimitConstraintModel: models a component-wise joint limit lower/upper bound constraint
    • JointFrictionConstraintModel: models a component-wise joint friction lower/upper bound constraint
  • Add new Delassus API in pinocchio/algorithm/delassus.hpp
  • Add ADMMConstraintSolverTpl in pinocchio/algorithm/solvers/admm-solver.hpp
    • Solve constrained dynamics using an ADMM algorithm
  • Add PGSConstraintSolverTpl in pinocchio/algorithm/solvers/pgs-solver.hpp
    • Solve constrained dynamics using a projected Gauss Siedel algorithm
  • Add new functions in pinocchio/multibody/liegroup.hpp
    • tangentMap: transforms a configuration variation into a small variation expressed in the parametric space
    • tangentMapProduct and tangentMapTransport: apply tangentMap while exploiting sparsity
  • Add mimic joint support for all Lie group related algorithms
  • Add new methods to JointModelBase:
    • jointQrows and jointQcols that make selections of size NQ
    • jointQVMap that make selections of size NQ x NV
    • lieGroup that returns the Lie group instance associated to a joint
  • Add lieGroup function that returns the Lie group instance associated to a model
  • Add new mjcf::buildModel overload to load new constraint API from MJCF
  • Add new sdf::buildModel overload to load new constraint API from SDF
  • Add new Python functions to load MJCF model:
    • Add pinocchio.buildModelFromMJCFAndRootJoint load model with a custom root joint
    • Add pinocchio.buildModelAndConstraintFromMJCF load model and constraints (new API)
    • Add pinocchio.buildModelAndLegacyConstraintFromMJCF load model and constraints (old API)
  • Add Python example showcasing the candlewick visualizer
  • Add PINOCCHIO_DISABLE_UNSUPPORTED_WARNINGS C++ definition to disable unsupported algorithm warnings
  • Add PINOCCHIO_BUILD_MPFR_TESTING CMake option to build MPFR tests
  • Add pinocchio/utils/alloca.hpp: Helpers for mapping stack allocation for Eigen::Map
  • Add pinochio/container/eigen-storage.hpp: Introduce internal::EigenStorageTpl
  • Add pinochio/container/matrix-stack.hpp: Introduce internal::MatrixStackTpl
  • Add pinochio/container/double-entry-container.hpp: Introduce internal::DoubleEntryContainer
  • Add internal::MatrixBlockElementTpl in math.hpp
  • Add internal::BlockDiagonalMatrixTpl in math.hpp
  • Add internal::matrix_product in math.hpp
  • Add internal::matrix_inversion in math.hpp
  • Add internal::matrix_inversion_code_generated in math.hpp
  • Add support to libsdformat > 14

Changed

  • C++17 is now the minimal supported version of the C++ standard. Check cppreference to see if your compiler supports it.
  • Introduce new header convention described here
    • Omnibus header as default pinocchio include
    • Replace headers guards by #pragma once
  • Bindings/python: Add missing arg names in visualizer-visitor.hpp
  • Renamed PINOCCHIO_PRAGMA_DEPRECATED_HEADER to PINOCCHIO_MOVED_HEADER
  • Docs: update documentation stylesheet, fix some Doxygen config options
  • Replace hpp-fcl by coal (see doc/_porting.md):
    • C++:
      • Deprecate pinocchio/multibody/fcl.hpp moved at pinocchio/multibody/coal.hpp
      • Deprecate pinocchio/serialization/fcl.hpp moved at pinocchio/serialization/coal.hpp
      • Deprecate pinocchio/collision/fcl-pinocchio-conversions.hpp moved at pinocchio/collision/coal-pinocchio-conversions.hpp
      • Deprecate pinocchio/bindings/python/collision/fcl/transform.hpp moved at pinocchio/bindings/python/collision/coal/transform.hpp
      • Deprecate pinocchio::toFclTransform3f replaced by pinocchio::toCoalTransform3s
      • Deprecate PINOCCHIO_WITH_HPP_FCL replaced by PINOCCHIO_WITH_COLLISION
    • Python:

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged pinocchio at Robotics Stack Exchange

Package symbol

pinocchio package from pinocchio repo

pinocchio

ROS Distro
noetic

Package Summary

Version 4.0.0
License BSD-2-Clause
Build type CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/stack-of-tasks/pinocchio.git
VCS Type git
VCS Version devel
Last Updated 2026-04-20
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives.

Additional Links

Maintainers

  • Justin Carpentier
  • Wolfgang Merkt
  • Guilhem Saurel

Authors

No additional authors.

Pinocchio Logo

License Documentation Ask DeepWiki Coverage Report Conda Downloads Conda Version PyPI version pre-commit.ci status

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

Table of contents

Pinocchio main features

Pinocchio is fast:

  • C++ template library,
  • cache-friendly,
  • support custom scalar type.

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,
  • computations of kinematic and dynamic regressors for system identification and more,
  • full support of closed-loop mechanisms,
  • state-of-the-art frictional contact solvers,
  • low-complexity constrained articulated body algorithms,
  • sparse constrained dynamics and its analytical derivatives,
  • full support of multiple-precision floating-point (MPFR) in Python and C++,
  • support of modern and open-source Automatic Differentiation frameworks like CppAD or CasADi,
  • automatic code generation support is available via CppADCodeGen.

Pinocchio can support description formats:

  • URDF format,
  • SDF format,
  • MJCF format,
  • SRDF format,
  • programmatically.

Pinocchio is flexible:

File truncated at 100 lines see the full file

CHANGELOG

Changelog

All notable changes to this project will be documented in this file.

Change that doesn’t affect end user should not be listed:

  • CI change
  • Github specific file change

The format is based on Keep a Changelog.

[Unreleased]

[4.0.0] - 2026-04-13

Highlights

  • lcaba algorithm:
    • Compute forward dynamics for constrained system with closed kinematics loops
    • Python example here
  • New constraint API:
    • PointContactConstraintModelTpl, PointAnchorConstraintModelTpl, FrameAnchorConstraintModelTpl, JointLimitConstraintModelTpl and JointFrictionConstraintModelTpl constraint models
    • Each constraint model is associated to its own constraint data
    • Variants ConstraintModelTpl/ConstraintDataTpl encapsulate all constraints models and data
    • Delassus operator API: DelassusOperatorDenseTpl, DelassusOperatorSparseTpl, DelassusOperatorCholeskyExpressionTpl, DelassusOperatorRigidBodyTpl
    • These operators are tightly linked to the new constraints API All these operators compute the same mathematical operator $J M^{-1} J^T$ ($J$ is the constraints jacobian, $M^{-1}$ is the inverse of the mass matrix), but with different algorithms and internal optimizations
  • ADMMConstraintSolverTpl and PGSConstraintSolverTpl algorithms:
    • Solve constrained dynamics expressed with the new constraint API
    • Python examples here and here. These examples show how to use each constraint model, how to build a constraint problem, how to compute the associated Delassus operator and how to solve it
  • New header convention
    • Introduce omnibus headers:
      • pinocchio/math.hpp
      • pinocchio/spatial.hpp
      • pinocchio/mutlibody.hpp

Added

  • Add lcaba algorithm in pinocchio/algorithm/loop-constrained-aba.hpp
    • Compute forward dynamics for constrained system with closed kinematics loops
  • Add computeJointMinimalOrdering in pinocchio/constraints.hpp
    • Compute joint processing order for lcaba
  • Add new constraint API in pinocchio/constraints.hpp
    • PointContactConstraintModel: models a unilateral contact constraint with coulomb friction cone
    • PointAnchorConstraintModel: models a point-wise equality constraint (bilateral constraint)
    • FrameAnchorConstraintModel: models a frame-wise equality constraint (bilateral constraint)
    • JointLimitConstraintModel: models a component-wise joint limit lower/upper bound constraint
    • JointFrictionConstraintModel: models a component-wise joint friction lower/upper bound constraint
  • Add new Delassus API in pinocchio/algorithm/delassus.hpp
  • Add ADMMConstraintSolverTpl in pinocchio/algorithm/solvers/admm-solver.hpp
    • Solve constrained dynamics using an ADMM algorithm
  • Add PGSConstraintSolverTpl in pinocchio/algorithm/solvers/pgs-solver.hpp
    • Solve constrained dynamics using a projected Gauss Siedel algorithm
  • Add new functions in pinocchio/multibody/liegroup.hpp
    • tangentMap: transforms a configuration variation into a small variation expressed in the parametric space
    • tangentMapProduct and tangentMapTransport: apply tangentMap while exploiting sparsity
  • Add mimic joint support for all Lie group related algorithms
  • Add new methods to JointModelBase:
    • jointQrows and jointQcols that make selections of size NQ
    • jointQVMap that make selections of size NQ x NV
    • lieGroup that returns the Lie group instance associated to a joint
  • Add lieGroup function that returns the Lie group instance associated to a model
  • Add new mjcf::buildModel overload to load new constraint API from MJCF
  • Add new sdf::buildModel overload to load new constraint API from SDF
  • Add new Python functions to load MJCF model:
    • Add pinocchio.buildModelFromMJCFAndRootJoint load model with a custom root joint
    • Add pinocchio.buildModelAndConstraintFromMJCF load model and constraints (new API)
    • Add pinocchio.buildModelAndLegacyConstraintFromMJCF load model and constraints (old API)
  • Add Python example showcasing the candlewick visualizer
  • Add PINOCCHIO_DISABLE_UNSUPPORTED_WARNINGS C++ definition to disable unsupported algorithm warnings
  • Add PINOCCHIO_BUILD_MPFR_TESTING CMake option to build MPFR tests
  • Add pinocchio/utils/alloca.hpp: Helpers for mapping stack allocation for Eigen::Map
  • Add pinochio/container/eigen-storage.hpp: Introduce internal::EigenStorageTpl
  • Add pinochio/container/matrix-stack.hpp: Introduce internal::MatrixStackTpl
  • Add pinochio/container/double-entry-container.hpp: Introduce internal::DoubleEntryContainer
  • Add internal::MatrixBlockElementTpl in math.hpp
  • Add internal::BlockDiagonalMatrixTpl in math.hpp
  • Add internal::matrix_product in math.hpp
  • Add internal::matrix_inversion in math.hpp
  • Add internal::matrix_inversion_code_generated in math.hpp
  • Add support to libsdformat > 14

Changed

  • C++17 is now the minimal supported version of the C++ standard. Check cppreference to see if your compiler supports it.
  • Introduce new header convention described here
    • Omnibus header as default pinocchio include
    • Replace headers guards by #pragma once
  • Bindings/python: Add missing arg names in visualizer-visitor.hpp
  • Renamed PINOCCHIO_PRAGMA_DEPRECATED_HEADER to PINOCCHIO_MOVED_HEADER
  • Docs: update documentation stylesheet, fix some Doxygen config options
  • Replace hpp-fcl by coal (see doc/_porting.md):
    • C++:
      • Deprecate pinocchio/multibody/fcl.hpp moved at pinocchio/multibody/coal.hpp
      • Deprecate pinocchio/serialization/fcl.hpp moved at pinocchio/serialization/coal.hpp
      • Deprecate pinocchio/collision/fcl-pinocchio-conversions.hpp moved at pinocchio/collision/coal-pinocchio-conversions.hpp
      • Deprecate pinocchio/bindings/python/collision/fcl/transform.hpp moved at pinocchio/bindings/python/collision/coal/transform.hpp
      • Deprecate pinocchio::toFclTransform3f replaced by pinocchio::toCoalTransform3s
      • Deprecate PINOCCHIO_WITH_HPP_FCL replaced by PINOCCHIO_WITH_COLLISION
    • Python:

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged pinocchio at Robotics Stack Exchange