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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have a question related to the quaternion to Euler angle conversion. When I compare the code from
https://github.com/facontidavide/PlotJuggler/blob/47a61d768c6aaa7be20c8c3c5b48ad2bd0459b1a/plotjuggler_plugins/ToolboxQuaternion/quaternion_to_rpy.cpp#L73
to
Roll: https://github.com/facontidavide/PlotJuggler/blob/47a61d768c6aaa7be20c8c3c5b48ad2bd0459b1a/plotjuggler_app/resources/default.snippets.xml#L94
Pitch: https://github.com/facontidavide/PlotJuggler/blob/47a61d768c6aaa7be20c8c3c5b48ad2bd0459b1a/plotjuggler_app/resources/default.snippets.xml#L110
Yaw: https://github.com/facontidavide/PlotJuggler/blob/47a61d768c6aaa7be20c8c3c5b48ad2bd0459b1a/plotjuggler_app/resources/default.snippets.xml#L125
I see that the order of the elements is different:
vs.
Is this intentional ?
Note: My impression is that if you "mismap" the quaternions:
w =q[0]; x = q[1]; y = q[2]; z = q[3];then the code seems to do the right calculation when compared to
Quaternion to DCM: https://github.com/PX4/PX4-Autopilot/blob/1dacb4cdef2d7145754fc788fa8dc482eed74b40/src/lib/matrix/matrix/Dcm.hpp#L86
DCM to Euler: https://github.com/PX4/PX4-Autopilot/blob/1dacb4cdef2d7145754fc788fa8dc482eed74b40/src/lib/matrix/matrix/Euler.hpp#L92
I understand that this a very specific issue, please take with a grain of salt -- I don't want to raise this as an issue.
BR
Ralph Paul
Beta Was this translation helpful? Give feedback.
All reactions