kindr icon indicating copy to clipboard operation
kindr copied to clipboard

Transform twist by HomTransformMatrix

Open bastianhjaeger opened this issue 7 years ago • 1 comments

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???

bastianhjaeger avatar Apr 03 '17 09:04 bastianhjaeger

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

johannes-graeter avatar Nov 24 '17 06:11 johannes-graeter