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

Transform twist by HomTransformMatrix #86

Open
bastianhjaeger opened this issue Apr 3, 2017 · 1 comment
Open

Transform twist by HomTransformMatrix #86

bastianhjaeger opened this issue Apr 3, 2017 · 1 comment

Comments

@bastianhjaeger
Copy link

bastianhjaeger commented Apr 3, 2017

Quick question: Who do kindr transforms a twist.

I have some pose and twist in body frame and want to express/transfor it to another frame.

//body pose
kindr::HomTransformMatrixF body_p;
// body twist
kindr::TwistLinearVelocityGlobalAngularVelocityF body_v;

// init pose and twist here.
...

//transformation to camera position
kindr::HomTransformMatrixF body2cam;
kindr::HomTransformMatrixF poseInCameraFrame = body_p * body2cam; // this works

kindr::TwistLinearVelocityGlobalAngularVelocityF twistInCameraFrame = body_v * body2cam; // this does NOT work.

How do I write the transformation from a twist from one to another frame???

@johannes-graeter
Copy link

johannes-graeter commented Nov 24, 2017

you have to add an additional velocity component induced by the transformation,
see https://en.wikipedia.org/wiki/Screw_theory

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