Skip to content
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

euler2mat and axangle2mat #25

Open
joanacfcampos opened this issue Jul 27, 2018 · 0 comments
Open

euler2mat and axangle2mat #25

joanacfcampos opened this issue Jul 27, 2018 · 0 comments

Comments

@joanacfcampos
Copy link

I have a questions regarding these two functions.
Consider that I have the following angles e = [0 20 70] (XYZ convention)
When using the function euler2mat I obtain the following rotation matrix (R1):
R1 = [[ 0.32 -0.93 0.17], which then when applied to the vector A = [1 0 0], I obtain A' =[0.32 0.88 -0.34]
[0.88 0.34 0.32]
[-0.34 0 0.93]]

My goal is to find the rotation angles from A to A'.
The cross product of the two vectors is [0 0.34 0.88], which gives me the rotation axis, and the angle between the A and A' is 1.24359 radians.

However, when I apply the function axangle2euler(cross_product, angle) I obtain the following tuple: (-0.24568759842706317, 0.3490658499512599, 1.2217304765563635), which applies a rotation in X.

Is this suppose to happen? And if so, what should I be doing instead?

Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant