stack-of-tasks / pinocchio

A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives
http://stack-of-tasks.github.io/pinocchio/
BSD 2-Clause "Simplified" License
1.67k stars 357 forks source link

Merge C++/Python context #2256

Open jorisv opened 1 month ago

jorisv commented 1 month ago

Pinocchio use context file to be build against specific scalar type. There are specific context file for python and C++ build. Both contains some overlapping code and should be merged. This will allow to avoid code duplication, but also to use explicit template instantiation C++ library to build python bindings.

Context file are used:

Both context file all contains some redundant information:

The only part that should be keep splitted is the python specific part (eigenpy and pinocchio::python specialization).