You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: