Replies: 1 comment 2 replies
-
I hope you don't mind me reviving this discussion. I recently stumbled upon an intriguing implementation from Facebook Research that appears to create a Torch wrapper around Pinocchio's functionality: This implementation includes methods for forward kinematics, inverse dynamics, Jacobian computation, and inverse kinematics using Pinocchio, all wrapped to be compatible with PyTorch tensors. It's quite an impressive piece of work! I wanted to bring this to the attention of the Pinocchio community and ask a few questions:
I believe having PyTorch integration could be incredibly valuable for users who want to combine Pinocchio's efficient rigid body algorithms with PyTorch's machine learning capabilities, especially for applications in reinforcement learning for robotics. Thank you for your time and consideration. I'm really looking forward to hearing your thoughts on this exciting development! |
Beta Was this translation helpful? Give feedback.
-
Hello Pinocchio Team,
Around six months ago, when there was no Pinocchio 3 with Casadi support in the Python bindings, I embarked on developing a fork of casadi_kin_dyn to streamline its usage. During this process, I wondered if it would be possible to instantiate templates in Pinocchio using
torch
variables.To explore this, I created a small example. However, I encountered an issue where the computational graph was not preserved during computations.
I am reaching out to ask if integrating
torch
variables in Pinocchio is feasible. There might be a minor issue in my implementation, and if so, I would be happy to assist with integratingtorch
support into the core codebase.Additionally, I found this discussion, which suggests the proposal might not be possible. Any insights or guidance would be greatly appreciated.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions