haosulab / SAPIEN

SAPIEN Embodied AI Platform
https://sapien.ucsd.edu/
MIT License
372 stars 36 forks source link

Qustion about robot.compute_spatial_twist_jacobian() #168

Open isabella4444x opened 1 month ago

isabella4444x commented 1 month ago

Hello, When I compute joint velocity from twist, the function robot.compute_spatial_twist_jacobian() in 0.8 version I want to use disappears now in 3.0v. So is there similar method to get the jacobian? Thank you a lot!!!

fbxiang commented 1 month ago

All functionalities related to kinematics and dynamics are now only supported through Pinocchio. You can call robot.get_pinocchio_model() to create a pinocchio model and you can refer to this file for usage.

https://github.com/haosulab/SAPIEN/blob/dev/python/py_package/wrapper/pinocchio_model.py

isabella4444x commented 1 month ago

Thank you! I have used robot.create_pinocchio_model() to compute the ee link's jacobian. And maybe the first 3dims of the jaccobian is last 3 dims of qvel, I mean the of sort of linear velocity and angular velocity is different?

fbxiang commented 1 month ago

I am not sure what you are trying to achieve here. The Jacobian simply maps joint velocity (in the order of qvel) to link twist (in the order of $v, \omega$). Twist is not linear and angular velocity unless the link's frame aligns with its center of mass in a very specific way.