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

in person_grabber: wrong rotations #2

Open
loechner opened this issue Sep 29, 2011 · 1 comment
Open

in person_grabber: wrong rotations #2

loechner opened this issue Sep 29, 2011 · 1 comment

Comments

@loechner
Copy link

I found a solution for the rotation problem:

    KDL::Rotation rotation(m[0], m[1], m[2],
                           m[3], m[4], m[5],
                   m[6], m[7], m[8]);

    double rX, rY, rZ;
    rotation.GetRPY(rX, rY, rZ);       //get the roll, pitch and yaw values

    tf::Transform transform;
    transform.setOrigin(tf::Vector3(x, y, z));
    transform.setRotation(tf::Quaternion(rZ, -rY, -rX));

Cheers, Julian

@gatsoulis
Copy link
Collaborator

Hi Julian,

thanks for your contribution. We will have a look into this.

Kind Regards,
Yianni
http://isrc.ulster.ac.uk/staff/IGatsoulis

On 29/09/11 14:53, loejuli wrote:

I found a solution for the rotation problem:

  KDL::Rotation rotation(m[0], m[1], m[2],
                         m[3], m[4], m[5],
                 m[6], m[7], m[8]);

  double rX, rY, rZ;
  rotation.GetRPY(rX, rY, rZ);       //get the roll, pitch and yaw values

  tf::Transform transform;
  transform.setOrigin(tf::Vector3(x, y, z));
  transform.setRotation(tf::Quaternion(rZ, -rY, -rX));

It's probably not the right way to submit something like this but it is still a solution ;)

Cheers, Julian

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