Euler Angles

Orientation represented by angle sequences about coordinate axes.

1.2 Euler Angles

Euler angles describe the orientation of a body–fixed frame B = {b1, b2, b3} with respect to a reference (often inertial) frame I = {i1, i2, i3} using three rotations applied in a specific order.

A label such as 3–2–1 means: rotate about axis 3, then axis 2, then axis 1 of the current (moving) frame. In aerospace, two sequences appear again and again:

1.2.1 Rotation Sequences

Intrinsic vs extrinsic rotations

(a) 3–2–1 sequence (yaw–pitch–roll)

This is the standard heading–pitch–bank description of an aircraft or spacecraft relative to a local navigation or inertial frame.

(b) 3–1–3 sequence (orbital angles)

The three angles (Ω, i, ω) act like an “attitude” for the orbital plane and periapsis line with respect to the inertial frame.

1.2.2 Euler Angle Geometry

A. 3–2–1 (Yaw–Pitch–Roll) Geometry

DCM from 3–2–1 Euler angles

Let CBI map components from frame I to frame B. For a 3–2–1 intrinsic sequence,

CBI = R1(φ) R2(θ) R3(ψ),

where Rk(·) is the basic rotation about axis k. Expanding gives

Cᵇᵢ =
⎡ cθ cψ              cθ sψ              −sθ          ⎤
⎢ sφ sθ cψ − cφ sψ   sφ sθ sψ + cφ cψ   sφ cθ        ⎥
⎣ cφ sθ cψ + sφ sψ   cφ sθ sψ − sφ cψ   cφ cθ        ⎦
      

with c· = cos(·) and s· = sin(·).

Recovering 3–2–1 angles from a DCM

If we write CBI = [cij], then for the 3–2–1 set

θ = −arcsin(c₁₃)
ψ = atan2(c₁₂, c₁₁)
φ = atan2(c₂₃, c₃₃)
      

These relations are valid as long as θ ≠ ± 90° (i.e. away from the singularity).

B. 3–1–3 Geometry (Orbital Angles)

For the 3–1–3 sequence with angles (Ω, i, ω):

The corresponding DCM is

CBI = R3(ω) R1(i) R3(Ω).

From this DCM, the inverse relations are

Ω = atan2(C₃₁, −C₃₂)
i = arccos(C₃₃)
ω = atan2(C₁₃, C₂₃)
      

again assuming i ≠ 0°, 180° (so that we are not at the singular attitude).

1.2.3 Singularities & Gimbal Lock

Loss of a degree of freedom

This loss of one degree of freedom is the Euler singularity or gimbal lock.

3–2–1 singularity

For the 3–2–1 sequence, θ = ± 90° causes the yaw and roll axes to line up. Only the combination (ψ + φ) is meaningful; ψ and φ individually become ambiguous.

3–1–3 singularity

For the 3–1–3 sequence, i = 0° or i = 180° makes the first and third rotation axes coincident, so Ω and ω can change while the physical attitude remains the same.

In general:

In all cases the second angle is the one that drives the singularity.

1.2.4 Combining Successive Euler Rotations

Suppose a rigid body first undergoes a rotation with Euler angles θ = {θ1, θ2, θ3}, then a second rotation with the same type of sequence φ = {φ1, φ2, φ3}.

The overall attitude relative to the original frame can be written as

C(final) = C(φ) C(θ) = C(ψ),
      

where ψ = {ψ1, ψ2, ψ3} is an equivalent single set of Euler angles.

In principle one can solve for ψ from the matrix product, but:

Takeaway: Euler angles are excellent for understanding rotations, but clumsy for chaining many rotations. In practice, attitude calculations are done with quaternions or DCMs, and Euler angles are used only for inputs and outputs.

1.2.5 Euler Angle Kinematic Differential Equations

In dynamics we often know the body angular velocity vector

ω = [ ω₁  ω₂  ω₃ ]ᵀ  (in the body frame)
      

and we want the time evolution of the Euler angles.

For the 3–2–1 set, the relation between body rates (p, q, r) and the Euler-angle rates (˙φ, ˙θ, ˙ψ) is

⎡ p ⎤   ⎡ 1   0            −sinθ          ⎤ ⎡ φ̇ ⎤
⎢ q ⎥ = ⎢ 0   cosφ         sinφ cosθ      ⎥ ⎢ θ̇ ⎥
⎣ r ⎦   ⎣ 0  −sinφ         cosφ cosθ      ⎦ ⎣ ψ̇ ⎦
      

This comes from writing ω as a combination of the Euler-rate vectors and also directly in body components (p, q, r), then equating the two expressions.

The coefficient matrix becomes singular at the same attitudes as before:

At these points it is impossible to invert the equations to obtain Euler angle rates from (p, q, r).

1.2.6 Practical Remarks on Euler Angles

Advantages

Limitations

Because of these issues, modern attitude estimation and control usually: