[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: Adam Leeper
Dato:  
Til: ros-users
Emne: [ros-users] tf: making quaternion from rotation matrix
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