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

Forside
Vedhæftede filer:
Indlæg som e-mail
+ (text/plain)
+ (text/html)
Slet denne besked
Besvar denne besked
Skribent: Josh Faust
Dato:  
Til: ros-users
Emne: 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
>
>