RobotModel.compute_transformations
-
RobotModel.
compute_transformations
(joint_state, link=None, parent_transformation=None)[source] Recursive function to calculate the transformations of each joint.
- Parameters
:class:`compas.robots.Configuration` or joint_state (dict) – A dictionary with the joint names as keys and values in radians and meters (depending on the joint type).
link (
compas.robots.Link
) – Link instance to calculate the child joint’s transformation.parent_transformation (
Transformation
) – The transfomation of the parent joint.
- Returns
dict of str (
Transformation
) – A dictionary with the joint names as keys and values are the joint’s respective transformation.
Examples
>>> config = robot.random_configuration() >>> transformations = robot.compute_transformations(config)