-
Notifications
You must be signed in to change notification settings - Fork 275
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
tf.transformations.quaternion_from_matrix() is misleading #64
Comments
This is an external library pulled in for convenience. I don't want to diverge from it's API. We've had bad experiences with that in the past. |
Alright, would a PR that fixes the documentation be welcomed? |
Definitely. On Tue, May 20, 2014 at 2:36 PM, Jonathan Bohren
|
Closing this as #49 would be adequate. |
The
tf.transformations.quaternion_from_matrix()
function says it returns a quaternion from a rotation matrix, but it fails if you give it an actual rotation matrix (element of SO(3)). Instead it requires that the input "rotation matrix" is a 4x4 matrix (element of SE(3)).If you try passing it a 3x3 rotation matrix, you get the following error:
I understand the utility of extracting a quaternion directly from a rigid transform, but it should also accept an actual rotation matrix as input.
https://github.com/ros/geometry/blob/indigo-devel/tf/src/tf/transformations.py#L1196
Related to #49
The text was updated successfully, but these errors were encountered: