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.82k stars 383 forks source link

Use boost::variant Python binding to bind JointModel and JointData #2258

Open jorisv opened 4 months ago

jorisv commented 4 months ago

JointModel and JointData specific attributes are not binded to Python. Only JointModelBase and JointDataBase are part of the Python binding.

Since boost::variant support had been added lately to eigenpy, we can now retrieve the specific JointModel and JointData stored in DataTpl and ModelTpl. We can then bind all joint specific attribute to be able to use them in Python.

We can also use eigenpy to manage GeometryObject::meshMaterial.