ToolModel.transformed_frames
- ToolModel.transformed_frames(joint_state)[source]
Returns the transformed frames based on the joint_state.
- Parameters:
- joint_state
Configuration
| dict[str, float] A configuration instance or a dictionary with joint names and joint values in radians and meters (depending on the joint type).
- joint_state
- Returns:
- list[
Frame
]
- list[
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)