otaheri / GRAB

GRAB: A Dataset of Whole-Body Human Grasping of Objects
https://grab.is.tue.mpg.de
Other
266 stars 28 forks source link

Relation between right-hand global_orientation and wrist joint from full-body pose #11

Closed purvaten closed 2 years ago

purvaten commented 2 years ago

Hi,

I am trying to see if I can get the right hand wrist global_orientation from full body pose. My understanding is that the 21 full body joints correspond to these specific joints. The last joint is the right wrist.

However, the value for data['body']['body_pose'][-1, :] does not appear to be the same as data['rhand']['global_orient']. Should these two be the same / related? If so, is there a way for me to get right hand global orientation (wrist pose) from the full-body pose?

Thanks!

otaheri commented 2 years ago

Hi @purvaten,

No, the global_orient of the hand is not the same as the last joint of the body. Also, please note that the body should have 55 joints, not 21. If you have 21 joints, you are using the SMPL model most probably, not the SMPLX model.

To get the global rotation of the hand or any other joint, please use this function. As input, it takes the pose_parameter and as output, it will give you the global rotation for each joint.