rl icon indicating copy to clipboard operation
rl copied to clipboard

Retrieve the operationalPosition relative to Tool/Endeffector

Open mohdjawadi opened this issue 1 year ago • 1 comments

Hi! Please how can I retrieve the relative transformation (translation and orientation) of the operational frame based on its local co-ordinates system. In other words, I would like to retrieve the operational position in the tool co-ordinate system.

Thanks

mohdjawadi avatar May 09 '23 14:05 mohdjawadi

Do you mean the relative transformation of the tool frame to the operational frame or the relative transformation of a frame relative to the world frame (e.g., of an object) in tool frame coordinates?

In rl::mdl::Model, the function rl::mdl::Model::tool() can be used to access the last transform before the end-effector (or operational) frame. The tool frame and operational frame are identical in this case.

If you are looking for the relative transformation worldTobject of an object specified relative to the world frame expressed in tool/operational frame coordinates, you can invert the tool/operational frame worldTtool and multiply it:

toolTobject = worldT-1tool · worldTobject = toolTworld · worldTobject

rickertm avatar Jun 05 '23 12:06 rickertm