Replies: 3 comments 3 replies
-
Indeed, it would be interesting. We already provide with EigenPy and Pinocchio-3x the conversion with SWIG objects. |
Beta Was this translation helpful? Give feedback.
-
If @jmirabel you can start providing your existing set of tools (with unit test), it will be easier for everyone to continue from that. |
Beta Was this translation helpful? Give feedback.
-
This would be very useful - I've also created converters for some Pinocchio objects (Model, Data, Frame, Force, etc. - but not all) and successfully passed them to Pybind11-wrapped modules and retrieved Pinocchio objects back from them. However, there are no unittests. If of use, happy to provide them, but they may also be the same you as yours. I used a macro to implemente the |
Beta Was this translation helpful? Give feedback.
-
Hi,
for several projects, I made Python bindings with PyBind11 and I needed to be able to pass back and forth Pinocchio objects. I have a slightly different implementation in each project, which is not very clean.
As people usually prefers PyBind11 to Boost, I think it is reasonable to have in this project one header which contains everything one needs to do the conversions. Another reasonable option is to use a repo (e.g. pinocchio-pybind11) for this, although, if it is a single header, I'm not sure it's worth it.
I can implement this (with a low bandwidth but there is no emergency) if we agree (and if it does not exists already).
Beta Was this translation helpful? Give feedback.
All reactions