|
This entry is the self study companion to Euler Angles: 3-2-1 yaw pitch roll.
The problems develop the intrinsic - - sequence from its moving-frame geometry through the passive direction cosine matrix, aerospace sign interpretation, inverse extraction, singularity, quaternion representation, angular velocity relation, and numerical implementation.
All exercises are stated first. Complete worked solutions follow afterward.
PhysicsLibrary uses the passive coordinate map
 |
(1) |
For intrinsic - - yaw pitch roll,
 |
(2) |
and
 |
(3) |
For a conventional aircraft body frame,
The common principal branch is
 |
(4) |
Figure. Intrinsic  -  -  frame chain: yaw about  , pitch about  , and roll about  .
Figure. Positive yaw, pitch, and roll directions for the conventional Forward-Right-Down body-axis interpretation.
Figure. At
 , the first and third physical rotation axes become collinear.
- Map direction and chronological order.
State what
means physically. Then state the chronological intrinsic - - frame rotations associated with
.
- Intermediate-frame construction.
Introduce
for intrinsic - - and write the three frame-labeled passive coordinate maps. Show how they compose to form .
- Aerospace positive-angle interpretation.
For a Forward-Right-Down body frame, explain the physical sense of positive , positive , and positive .
- Elementary passive matrices and single-axis checks.
Write ,
, and . Then state the three single-angle reductions of the complete - - DCM.
- Derive the full passive 3-2-1 DCM.
Starting from
multiply the matrices and obtain all nine elements.
- Interpret rows and columns.
For
state the geometric meaning of row and column . What does the first row represent in the aerospace specialization?
- Recover yaw and pitch from the forward axis.
A body forward axis expressed in North-East-Down coordinates is
Assuming the principal branch, find yaw and pitch. Can roll be obtained from this vector alone?
- Principal ranges.
State the common principal ranges for , , and . Explain why
on this branch.
- Inverse DCM extraction.
For a nonsingular passive DCM
write the principal extraction formulas for , , and .
- Alternative pitch extraction.
Show why
is equivalent to the principal arcsine formula away from singularity.
- Numerical DCM.
Compute the passive - - DCM for
- Numerical round trip and DCM checks.
Using the matrix from Exercise 11:
- recover
;
- state the orthogonality check;
- state the determinant check;
- write the reverse coordinate map.
- Locate and interpret the singularity.
State the - - singularity condition. Explain geometrically what happens to and at
and
.
- Exact coupling at positive ninety degrees.
Set
in the full - - DCM and show that only one combination of yaw and roll remains observable. Identify that combination.
- Exact coupling at negative ninety degrees.
Repeat Exercise 14 for
Which combination of yaw and roll remains observable?
- A singular-case software convention.
At
, suppose the original Euler angles are
The implementation chooses at singularity. What yaw should it return so that the same orientation is represented?
- Equivalent extrinsic description.
Write the extrinsic sequence and chronological angle order equivalent to intrinsic
- Active versus passive.
If is the PhysicsLibrary passive - - matrix, what active rotation matrix represents the corresponding physical rotation? Explain why transposed formulas often appear in references.
- Passive quaternion composition.
Write the passive Hamilton quaternion product corresponding to intrinsic - - . Then write its four scalar-first components in terms of half-angle sines and cosines.
- Numerical quaternion consistency.
For
compute the passive quaternion and state the DCM consistency relation that should hold.
- Euler rates to body angular velocity.
At
let
Compute the body angular velocity components .
- Body angular velocity to Euler rates.
At the same attitude, suppose
Recover
. Why does this inverse relation become singular at
?
- Small-angle approximation.
Derive the first-order passive DCM for small
and express it using the cross-product matrix of
- Exact relative attitude versus Euler subtraction.
Two body attitudes relative to the same reference frame are
and
First form the naive Euler-coordinate difference. Then describe the correct DCM operation for the exact relative attitude. The exact relative - - principal angles are approximately
Explain what this comparison demonstrates.
- Convention and implementation audit.
A source says only “use yaw pitch roll.” List at least eight convention or implementation questions that should be answered before directly copying its formulas into a PhysicsLibrary implementation.
The equation
means that the physical vector is unchanged while its coordinates are re-expressed from frame into frame .
The chronological intrinsic rotations are
 |
(5) |
Thus the first axis belongs to the initial frame, while the second and third axes belong to successive intermediate frames.
Let
The three passive frame maps are
 |
(6) |
 |
(7) |
and
 |
(8) |
Matching adjacent frame labels gives
 |
(9) |
For Forward-Right-Down axes:
- positive yaw rotates the current
axis toward the current axis;
- positive pitch rotates the current
axis toward the negative current direction, corresponding to nose up;
- positive roll rotates the current
axis toward the current axis, corresponding to right wing down.
These are physical frame rotations following the right hand rule.
The passive elementary matrices are
 |
(10) |
 |
(11) |
and
 |
(12) |
Therefore
 |
(13) |
 |
(14) |
and
 |
(15) |
Use
with analogous notation for and .
First,
 |
(16) |
Premultiplication by gives
 |
(17) |
For
its entries satisfy
 |
(18) |
Thus row is the body basis vector
expressed in frame , and column is the reference basis vector
expressed in frame .
The first row is the body forward axis expressed in the reference frame:
 |
(19) |
The horizontal components are equal and positive, so
 |
(20) |
The Down component gives
hence
 |
(21) |
Roll cannot be determined from the forward axis alone because the final roll is about that same forward axis and therefore does not change its direction.
A common principal branch is
 |
(22) |
 |
(23) |
and
 |
(24) |
Because lies between minus and plus ninety degrees,
 |
(25) |
Away from the singularity,
 |
(26) |
 |
(27) |
and
 |
(28) |
The two-argument arctangent is required to preserve the correct quadrant.
From the first row of the DCM,
Therefore
 |
(29) |
On the principal branch,
, so
 |
(30) |
Since
the atan2 expression uses
and returns the same principal pitch.
For
 |
(31) |
The extraction equations give
and
Thus
 |
(32) |
A valid DCM must satisfy
 |
(33) |
and
 |
(34) |
The reverse map is
 |
(35) |
The singularity condition is
 |
(36) |
so
 |
(37) |
At
, the third rotation axis is anti-aligned with the first rotation axis :
 |
(38) |
At
, they are aligned:
 |
(39) |
The physical orientation remains valid; only the Euler coordinate chart loses local uniqueness.
Setting
in the full DCM gives
 |
(40) |
Only
 |
(41) |
appears. Therefore yaw and roll cannot be recovered independently.
At
 |
(42) |
Only
 |
(43) |
is observable.
At positive ninety degrees,
For the original angles,
 |
(44) |
If software imposes
then it must satisfy
Therefore it should return
 |
(45) |
This new pair represents the same singular orientation because the observable combination remains
.
Reverse the axis order and angle association:
intrinsic - - extrinsic - - |
(46) |
Both descriptions produce the same final orientation and the same passive DCM.
The corresponding active rotation matrix is
 |
(47) |
Thus an active-vector reference can legitimately display the transpose of the PhysicsLibrary passive coordinate map. Apparent sign or factor-order conflicts should be investigated at the transformation-semantics level before being called errors.
For a positive passive frame rotation,
Therefore
 |
(48) |
Define
with analogous notation for and .
Using Hamilton multiplication and scalar-first storage,
 |
(49) |
For
the passive quaternion is approximately
 |
(50) |
It should have unit norm to numerical precision and satisfy
 |
(51) |
This is one of the strongest convention checks available because it compares two independent attitude representations.
For intrinsic - - ,
 |
(52) |
At
,
, and the stated Euler rates,
 |
(53) |
 |
(54) |
and
 |
(55) |
Thus are not simply
.
Away from the singularity,
 |
(56) |
Substitution gives approximately
 |
(57) |
The inverse contains
and
. It therefore becomes singular when
 |
(58) |
This is the same geometric singularity found in the Euler coordinate chart.
For small angles,
Keeping only first-order terms gives
 |
(59) |
Define
Then
![$\displaystyle {}^BC_A \approx I-[\boldsymbol\epsilon\times].$ $\displaystyle {}^BC_A \approx I-[\boldsymbol\epsilon\times].$](https://images.physicslibrary.org/cache/objects/1132/l2h/img214.png) |
(60) |
This local relationship does not make finite yaw pitch roll triples ordinary vectors.
The naive coordinate difference is
 |
(61) |
Let
The exact passive relative map from frame coordinates to frame coordinates is
 |
(62) |
For the stated attitudes,
 |
(63) |
Extracting intrinsic - - principal angles gives approximately
 |
(64) |
This differs from
because Euler coordinates are nonlinear sequence-dependent coordinates. Exact finite relative attitude must be formed by attitude composition rather than coordinate subtraction.
Before copying a yaw pitch roll formula, determine at least:
- whether the sequence is intrinsic or extrinsic;
- whether the transformation is active or passive;
- the coordinate-map direction;
- whether vectors are represented as columns or rows;
- the positive-angle convention;
- whether
- - denotes chronological rotations or written matrix factor order;
- the reference-frame axis directions, such as North-East-Down or East-North-Up;
- the body-axis convention, such as Forward-Right-Down;
- the principal Euler angle ranges;
- the singular-case extraction policy;
- the quaternion multiplication and storage conventions if quaternions are also used;
- whether body angular velocity or Euler angle rates are being supplied by the software interface.
A robust implementation should also verify zero-angle and single-axis cases, orthogonality, determinant , transpose reversal, DCM-to-Euler round trips, quaternion agreement, and expected behavior near the pitch singularity.
The passive intrinsic - - map is
 |
(65) |
Away from singularity,
 |
(66) |
 |
(67) |
and
 |
(68) |
The singularity is
 |
(69) |
with outer-angle coupling
 |
(70) |
and
 |
(71) |
The passive quaternion is
 |
(72) |
Body angular velocity and Euler coordinate rates are related by a state-dependent matrix and are not generally equal component by component.
The exercises and worked solutions in this companion are newly written for PhysicsLibrary to reinforce the convention and derivations developed in Euler angles: 3-2-1 yaw pitch roll.
- 1
- D. M. Henderson, Euler Angles, Quaternions, and Transformation Matrices: Working Relationships, JSC-12960, NASA Johnson Space Center, 1977. NASA Technical Reports Server
- 2
- Federal Aviation Administration, Pilot's Handbook of Aeronautical Knowledge, FAA-H-8083-25C, 2023. FAA Pilot's Handbook of Aeronautical Knowledge
- 3
- J. Diebel, “Representing Attitude: Euler Angles, Unit Quaternions, and Rotation Vectors,” Stanford University, 2006. Online PDF
- 4
- SciPy Developers, “Rotation.from_euler,” SciPy documentation. SciPy Euler rotation documentation
Unless otherwise noted, this PhysicsLibrary entry is intended for release under the Creative Commons Attribution ShareAlike 4.0 International license.
|