Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Yaw,Pitch and Roll Multiplication

  1. May 15, 2014 #1
    If I have (α1,β1,γ1) and (α2,β2,γ2) as two set of rotation angles in radians.Where α is Yaw of α about z axis, β is pitch about y axis and γ is roll about x axis. My question is when I multiply the two rotation sets what would be the result? Would it be simple addition of angles if I extract the angle information from result i-e (α1+α2,β1+β2,γ1+γ2)?
     
  2. jcsd
  3. May 15, 2014 #2

    D H

    User Avatar
    Staff Emeritus
    Science Advisor

    No. It doesn't work like that.
     
  4. May 15, 2014 #3

    HallsofIvy

    User Avatar
    Staff Emeritus
    Science Advisor

    You need to multiply the matrices representing the rotations.
    A rotation of angle [itex]\alpha[/itex] about the z axis is given by
    [tex]\begin{bmatrix}cos(\alpha) & -sin(\alpha) & 0 \\ sin(\alpha) & cos(\alpha) & 0 \\ 0 & 0 & 1\end{bmatrix}[/tex]

    A rotation of angle [itex]\beta[/itex] about the y axis is given by
    [tex]\begin{bmatrix}cos(\beta) & 0 & sin(\beta)\\ 0 & 1 & 0 \\ -sin(\beta) & 0 & cos(\beta)\end{bmatrix}[/tex]

    A rotation of angle [itex]\gamma[/itex] about the x axis is given by
    [tex]\begin{bmatrix}1 & 0 & 0 \\ 0 & cos(\gamma) & -sin(\gamma)\\0 & sin(\gamma) & cos(\gamma)\end{bmatrix}[/tex]

    A rotation of "Yaw of α about z axis, β is pitch about y axis and γ is roll about x axis" is given by the product of those three matrice and the combination of two such rotations is the product of the two rotation matrices or of all six matrices.
     
  5. May 15, 2014 #4

    D H

    User Avatar
    Staff Emeritus
    Science Advisor

    Halls, I fixed the math in your post.

    abubakr, there are different conventions regarding which sine term in those matrices Halls posted is negated and the order in which the matrices are multiplied. If you want a combined yaw, pitch, roll sequence that is equivalent to your pair of yaw, pitch, roll sequence, there are algorithms to go from a matrix back to an Euler sequence. They are non-trivial and messy.
     
  6. May 15, 2014 #5
    Thanks for answering.Halls, I exactly followed the sequence and I have check it for different values and changing order etc but its not the same.

    I would like to ask (1) Is there any relationship between the final answer and initial angle values i-e if not addition then what? (2) Can we use Euler angle or Quaternion (Having no idea) or any other coordinate transformation, so that the final answer is simple addition of the angle. (I suspect that after first set of rotation,the second set of rotation apply to the 1st rotation rather than initial point.That is why they are not simply added).(3) Is it possible to apply Yaw of α about z axis and then β is pitch about y axis but the y-axis is not transformed from 1st rotation etc.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook