Add unit-test for get_link_transform API.

This commit is contained in:
Tahsincan Köse
2024-07-10 12:32:12 +03:00
parent 14b554bf36
commit 1dc81627bc

View File

@@ -134,3 +134,9 @@ def test_cu_robot_batch_world_collision():
)
assert d_world.shape[0] == b
assert torch.sum(d_world) == 0.0
def test_cu_robot_get_link_transform():
model = load_robot_world()
world_T_panda_hand = model.kinematics.get_link_transform("panda_hand")
# It seems the panda hand is initialized at the origin.
assert torch.sum(world_T_panda_hand.position) == 0.0