We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ddef9a commit e582aeaCopy full SHA for e582aea
src/compas_fab/robots/robot.py
@@ -355,6 +355,20 @@ def get_configurable_joints(self, group=None):
355
else:
356
return self.model.get_configurable_joints()
357
358
+ def get_joint_types_by_names(self, names):
359
+ """Returns a list of joint types for a list of joint names.
360
+
361
+ Parameters
362
+ ----------
363
+ name: list of str
364
+ The names of the joints.
365
366
+ Returns
367
+ -------
368
+ list of str
369
+ """
370
+ return [self.get_joint_by_name(n).type for n in names]
371
372
def get_joint_by_name(self, name):
373
"""Returns the joint in the robot model matching its name.
374
0 commit comments