Robot.to_world_coords

Robot.to_world_coords(frame_RCF, group=None)[source]

Represents a frame from the robot’s coordinate system (RCF) in the world coordinate system (WCF).

Parameters

frame_RCF (compas.geometry.Frame) – A frame in the robot’s coordinate frame.

Returns

compas.geometry.Frame – A frame in the world coordinate frame.

Examples

>>> frame_RCF = Frame([-0.363, 0.003, -0.147], [0.388, -0.351, -0.852], [0.276, 0.926, -0.256])
>>> frame_WCF = robot.to_world_coords(frame_RCF)
>>> frame_WCF
Frame(Point(-0.363, 0.003, -0.147), Vector(0.388, -0.351, -0.852), Vector(0.276, 0.926, -0.256))