Definitionintro
Roll-pitch-yaw angles
Also called Tait-Bryan angles, RPY angles, yaw-pitch-roll angles.
Roll, pitch and yaw are turns about the fixed x, then y, then z axes, so R = Rz(yaw) Ry(pitch) Rx(roll). The chart is singular at a pitch of plus or minus 90 degrees.
Roll-pitch-yaw angles describe an orientation by three turns about three different axes. In the convention used here, the body turns by the roll about the fixed axis, then by the pitch about the fixed axis, then by the yaw about the fixed axis, so the rotation matrix is . The same matrix comes from turns about the moving axes in the reverse order: yaw about the body axis, then pitch about the new axis, then roll about the newest axis. The angles are unique for a pitch strictly between and , and the chart is singular at a pitch of , where roll and yaw turn about the same line.
Notation on this page: rotations are active, and , , are the rotations about the fixed axes of the base frame, as on the page on Euler angles.
Definition
Definition. The roll-pitch-yaw angles of a rotation in the special orthogonal group SO(3) are three angles with
where , , and so on. The usual ranges are and .
Fixed and moving axes. Read from right to left, the product turns a vector about the fixed axes , , in this order. Read from left to right, it turns the frame about its own axes , , in this order, which is the ZYX Euler sequence. So "roll-pitch-yaw about fixed " and "ZYX Euler angles about moving " are one chart with two names. It is one of the six Tait-Bryan sequences, which use three different axes.
Inverse. Given with , the angles with are
and they are the only angles in the ranges above. The square root is , and the formulas divide it out of both arguments of each atan2.
The singular set. At , , so , and only is fixed. At , , and only is fixed. There the first column of is , the formulas for and read atan2(0, 0), and the derivative of the chart has rank 2. Code must test against a tolerance and choose one angle, often . This is the gimbal lock of the chart.
Vehicles. For aircraft, ships and ground robots, the body axis points forward, so roll is the bank about the forward axis, pitch is the nose up or down, and yaw is the heading. Many aerospace texts use a body axis that points down and write the passive matrix from the world frame to the body frame, which is . The angles are the same numbers, but the matrix is transposed and the signs in formulas for rates change.
Examples and non-examples
- A full example. Roll , pitch and yaw give
The inverse formulas give , and . The unit quaternion of the same rotation is the product .
- Close to the singular set. Take the pitch with zero roll and yaw, and turn it by a further about the fixed axis. The new angles are a yaw of , a pitch of and a roll of . A change of in the orientation moved two angles by . A filter or a controller that works on the angles sees this as a jump.
- The singular set. and give the same matrix, because the difference is in both.
- Non-example: the order x, then y, then z about moving axes. is a different chart, with different angles for the same orientation. The phrase "x then y then z" is not complete until it says whether the axes are fixed or moving.
- Non-example: the rates as body rates. is not the angular velocity of the body. The body rates give , which grows without bound near the singular set. Integrating these rates in dead reckoning fails there; integrate a quaternion with the quaternion kinematic equation.
Related definitions
- Euler angles. The family of three-angle charts, with ZYZ as the proper Euler sequence of robot wrists.
- Gimbal lock. The singular set at a pitch of , in the chart and in a mechanical gimbal.
- Stuelpnagel's theorem. No three-parameter chart of SO(3) is free of singular points, so a change of the axis order only moves the singular set.
- Analytic Jacobian. The velocity Jacobian written with the rates of the angles, singular at the gimbal lock of the chart even where the robot itself is not singular.
- Attitude estimation. Filters keep the attitude as a quaternion or a matrix and report roll, pitch and yaw only for display.
References
- Kevin M. Lynch and Frank C. Park, Modern Robotics, Mechanics, Planning, and Control, Cambridge University Press, 2017, Appendix B, Section B.1 (the ZYX Euler angles, equation B.2, and the algorithm of Section B.1.1) and Section B.2 (roll-pitch-yaw angles, equation B.8)
- Bruno Siciliano, Lorenzo Sciavicco, Luigi Villani and Giuseppe Oriolo, Robotics, Modelling, Planning and Control, Springer, 2009, Chapter 2, Section 2.4.2 (RPY angles)
- John Stuelpnagel, On the parametrization of the three-dimensional rotation group, SIAM Review 6(4), 422-430, 1964, Section 6 (three-dimensional parametrizations, the singularity of roll, pitch and yaw at plus or minus 90 degrees)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag SBDNF0 Edit this page History Report an error Markdown