vec3->list

This commit is contained in:
Yoonyoung Cho 2025-02-16 22:09:46 +09:00
parent 4f7510241d
commit 04ce90f3de
1 changed files with 2 additions and 0 deletions

View File

@ -619,6 +619,8 @@ class Controller:
) )
xyz = world_from_pelvis.transform.translation xyz = world_from_pelvis.transform.translation
rxn = world_from_pelvis.transform.rotation rxn = world_from_pelvis.transform.rotation
xyz = np.array([txn.x, txn.y, txn.z])
quat_wxyz = np.array([rxn.w, rxn.x, rxn.y, rxn.z]) quat_wxyz = np.array([rxn.w, rxn.x, rxn.y, rxn.z])
root_state_w = np.zeros(7) root_state_w = np.zeros(7)
root_state_w[0:3] = xyz root_state_w[0:3] = xyz