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

Josh Faust jfaust at willowgarage.com
Thu Sep 2 02:30:10 UTC 2010


http://www.bulletphysics.com/Bullet/BulletFull/classbtMatrix3x3.html#a7521bf796271fcb8f0270d24fb13fb30

On Wed, Sep 1, 2010 at 7:03 PM, Adam Leeper <aleeper at stanford.edu> 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
> aleeper at stanford.edu
> 719.358.3804
>
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20100901/4a7ad63d/attachment-0003.html>


More information about the ros-users mailing list