ToolModel.find_parent_joint

ToolModel.find_parent_joint(link)[source]

Returns the parent joint of the link or None if not found.

Parameters

link (compas.robots.Link) – The link of which we want to know the parent joint.

Returns

compas.robots.Joint – The parent joint of the link.

Examples

>>> j = robot.find_parent_joint(link1)
>>> j.name
'joint1'