Re: [ros-users] tf: making quaternion from rotation matrix

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
Delete this message
Reply to this message
Author: Josh Faust
Date:  
To: ros-users
Subject: Re: [ros-users] tf: making quaternion from rotation matrix
http://www.bulletphysics.com/Bullet/BulletFull/classbtMatrix3x3.html#a7521bf796271fcb8f0270d24fb13fb30

On Wed, Sep 1, 2010 at 7:03 PM, Adam Leeper <> wrote:

> Hello-
>
> I might be missing something obvious, but I can't find any helper functions
> for converting a rotation matrix to a quaternion.
>
> I made a rotation matrix by choosing 3 basis vectors and putting them into
> a btMatrix3x3 (or equivalently, a tf::Transform with 0 position offset).
>
> I would like to just be able to just make a quaternion from this matrix.
> Does tf really not have a helper function for this? All I find are
> "createQuaternionFromRPY" sorts of functions, and Quaternion itself does not
> have a constructor that accepts a rotation matrix.
>
> Thanks,
> Adam
>
>
> Adam Leeper
> Stanford University
>
> 719.358.3804
>
> _______________________________________________
> ros-users mailing list
>
> https://code.ros.org/mailman/listinfo/ros-users
>
>