RobotModel.transformed_frames

RobotModel.transformed_frames(joint_state)[source]

Returns the transformed frames based on the joint_state.

Parameters:
joint_stateConfiguration | dict[str, float]

A configuration instance or a dictionary with joint names and joint values in radians and meters (depending on the joint type).

Returns:
list[Frame]

Examples

>>> robot = RobotModel.ur5()
>>> config = robot.zero_configuration()
>>> config["shoulder_pan_joint"] = 1.2
>>> config["wrist_2_joint"] = 0.5
>>> ft = robot.transformed_frames(config)
>>> ft[1].point
Point(x=0.000, y=0.000, z=0.089)
>>> ft[1].xaxis
Vector(x=0.362, y=0.932, z=0.000)
>>> ft[1].yaxis
Vector(x=-0.932, y=0.362, z=0.000)