Skip to content

Commit 8d21fca

Browse files
Update src/compas_fab/robots/semantics.py
Co-Authored-By: Gonzalo Casas <[email protected]>
1 parent 7eace0e commit 8d21fca

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/compas_fab/robots/semantics.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,9 @@ def get_all_configurable_joints(self):
140140
for group in self.group_names:
141141
for name in self._group_dict[group]["joints"]:
142142
joint = self.urdf_robot.get_joint_by_name(name)
143-
if joint:
144-
if joint.is_configurable() and name not in (self.passive_joints + names):
145-
joints.append(joint)
146-
names.append(name)
143+
if joint and joint.is_configurable() and name not in (self.passive_joints + names):
144+
joints.append(joint)
145+
names.append(name)
147146
return joints
148147

149148
def get_configurable_joints(self, group=None):

0 commit comments

Comments
 (0)