Skip to content

Transform twist by HomTransformMatrix #86

@bastianhjaeger

Description

@bastianhjaeger

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions