Xinyu-Yi/PIP

trans bvh to rbdl, but failed

visonpon opened this issue · 1 comments

Hi, @Xinyu-Yi ,I tried to visualize pose sequence in pybullet using the following scripts, it works normal, but when tried to trans bvh to rbdl for visualize by steps like bvh's euler (euler_angle_to_rotation_matrix_np)-> rotation matrix (assign values to corresponding joints) -> smpl' rotation matrix(smpl_to_rbdl) -> rbdl, the visualized pose are unnormal. are there any details that i ignored? hope you can help , thanks~

_, _, poses, trans = torch.load(os.path.join(data_dir, 'test.pt')).values()
for num in range(len(poses[0])):
     pose = art.math.axis_angle_to_rotation_matrix[poses[0][num]]
     tran = trans[0][num]
     qs = smpl_to_rbdl(pose,tran)
     set_pose(id_robot,qs[0])
     p.removeAllUserDebugItems()

[my visualize result like below]
temp

oh, after set degrees=True, I solved this problem, sorry to bother you~