Open kai-lan opened 1 month ago
Thanks Kai.
I have a feeling that when I did this I screwed up the to_euler
function and it actually takes the order argument the wrong way around compared to from_euler
(at least for the xyz
case. I'm not sure about the yzx
case).
So I believe if you do the following you get the same result (I could be wrong):
e = np.array([0.1*np.pi, 0.2*np.pi, 0.5*np.pi])
q = from_euler(e, order='zyx')
e1 = to_euler(q, order='xyz')
q1 = from_euler(e1, order='zyx')
Perhaps you can check that and if so maybe do a PR that fixes it?
There seem to be a bug in quaternion to euler conversion. Here is my test:
Expected output:
Actual output: