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
-
Hello,
I have a question related to the quaternion to Euler angle conversion. When I compare the code from
PlotJuggler/plotjuggler_plugins/ToolboxQuaternion/quaternion_to_rpy.cpp
Line 73 in 47a61d7
to
Roll:
PlotJuggler/plotjuggler_app/resources/default.snippets.xml
Line 94 in 47a61d7
Pitch:
PlotJuggler/plotjuggler_app/resources/default.snippets.xml
Line 110 in 47a61d7
Yaw:
PlotJuggler/plotjuggler_app/resources/default.snippets.xml
Line 125 in 47a61d7
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