Skip to content

Commit 8f1f20c

Browse files
committed
update semantics test
1 parent 65ab9b1 commit 8f1f20c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/robots/test_semantics.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,17 @@ def test_panda_srdf_file(panda_srdf, panda_urdf):
3333
'panda_joint5',
3434
'panda_joint6',
3535
'panda_joint7']
36+
all_configurable_joint_names = [j.name for j in semantics.get_all_configurable_joints()]
37+
assert all_configurable_joint_names == ['panda_joint1',
38+
'panda_joint2',
39+
'panda_joint3',
40+
'panda_joint4',
41+
'panda_joint5',
42+
'panda_joint6',
43+
'panda_joint7',
44+
'panda_finger_joint1']
45+
configurable_joints = semantics.get_configurable_joints('panda_arm_hand')
46+
assert [j.type for j in configurable_joints] == [0, 0, 0, 0, 0, 0, 0, 2]
3647

3748

3849
def test_ur5_semantics():

0 commit comments

Comments
 (0)