Robot.from_tool0_to_attached_tool
-
Robot.
from_tool0_to_attached_tool
(frames_t0cf)[source] Converts frames at the robot’s flange (tool0 frame) to frames at the robot’s tool tip (tcf frame) using the attached tool.
- Parameters
frames_t0cf (list of
Frame
) – Frames (in WCF) at the robot’s flange (tool0).- Returns
list of
Frame
– Frames (in WCF) at the robot’s tool tip (tcf).- Raises
Exception – If the end effector is not set.
Examples
>>> mesh = Mesh.from_stl(compas_fab.get('planning_scene/cone.stl')) >>> frame = Frame([0.14, 0, 0], [0, 1, 0], [0, 0, 1]) >>> robot.attach_tool(Tool(mesh, frame)) >>> frames_t0cf = [Frame((-0.363, 0.003, -0.147), (0.388, -0.351, -0.852), (0.276, 0.926, -0.256))] >>> robot.from_tool0_to_attached_tool(frames_t0cf) [Frame(Point(-0.309, -0.046, -0.266), Vector(0.276, 0.926, -0.256), Vector(0.879, -0.136, 0.456))]