Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieve the operationalPosition relative to Tool/Endeffector #70

Open
mohdjawadi opened this issue May 9, 2023 · 1 comment
Open

Comments

@mohdjawadi
Copy link

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

@rickertm
Copy link
Member

rickertm commented Jun 5, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants