Closed AlexisTM closed 8 years ago
Looks like the euler -> quaternion code wasn't updated with the last refactor. I'll have to update the conversion and add more tests to catch this in future.
I've committed a fix to the matrix -> euler conversion. Please let me know if this fixes the issue, if not please re-open the issue.
Please be aware that the euler order is now [roll, pitch, yaw] This can be over-ridden by modifying euler.index.(roll, pitch, yaw) to the appropriate array indices.
I'm going to revert the change to the euler ordering. It seems the world of eulers is a mess and no one can come up with a standard representation, array-wise. So no point breaking the API at the moment.
Ignore that, the order will remain as [roll, pitch, yaw]
Thanks a lot for your fast reaction ! Indeed, it seems that there is no euler convention order.
There is still the comment to edit
https://github.com/adamlwgriffiths/Pyrr/blob/master/pyrr/quaternion.py#L115-L116
Ah thanks! I'm away from my dev machine atm, but I'll get around to it this weekend.
It seems to be [Roll Pitch Yaw] or [Yaw Pitch Roll] for the ROS (Robotic Operating System) data type transformation library.
I can make the euler indices remappable.
But there needs to be a way to make it consistent with the rest of the library.
If I call create_from_x_rotation
, do I mean the zero-th element [x,y,z], or do I mean roll, which could be the 2nd element [yaw, pitch, roll] - or any other depending on how the user has remapped the indices.
Thoughts?
Dear,
I were using the simplest code because my results were not correct.
The convention of the different object seems to be different
Exemple :
Result :