Skip to content

Commit 65ab9b1

Browse files
committed
update Semantics.get_all_configurable_joints
1 parent dd808c2 commit 65ab9b1

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/compas_fab/robots/semantics.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,9 @@ def get_base_link_name(self, group=None):
140140

141141
def get_all_configurable_joints(self):
142142
joints = []
143-
names = []
144-
for group in self.group_names:
145-
for name in self._group_dict[group]["joints"]:
146-
joint = self.urdf_robot.get_joint_by_name(name)
147-
if joint and joint.is_configurable() and name not in (self.passive_joints + names):
148-
joints.append(joint)
149-
names.append(name)
143+
for joint in self.urdf_robot.get_configurable_joints():
144+
if joint.name not in self.passive_joints:
145+
joints.append(joint)
150146
return joints
151147

152148
def get_configurable_joints(self, group=None):

0 commit comments

Comments
 (0)