Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-79752

Euler Angles to Quaternion conversion

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.0.0
    • GUI: OpenGL
    • None

      The function https://doc.qt.io/qt-5/qquaternion.html#fromEulerAngles preassumes a very specific order of Euler angles and rotation sequence. There are several conventions, and it is usual in geometry packages to allow the user to specify the rotation order as an argument. Something like:

       

      yaw = 0.1; 
      pitch = 0.2; 
      roll = 0.3;
      quaternion = fromEulerAngles( yaw, pitch, roll, "ZXY" )
      
      

      Potentially, this Qt function could be expanded to allow this rotation order as fourth argument. A very good example on how to implement this could be found here:

      https://github.com/bminortx/Buckshot/blob/master/matlabComponents/Matlab_functions/angle2quat.m

       https://www.mathworks.com/help/aerotbx/ug/angle2quat.html

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.graphics.and.multimedia Qt Graphics Team
            fmercury Ferdy Mercury
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes