2b - Eular Angles
2b - Eular Angles
Representation of Orientation
Mathematical Fundamentals Representations
Representation of Orientation
Different Types of Orientation Representations
• Euler angles
• Quaternion
• Axis angles
Mathematical Fundamentals Representations
Representation of Orientation
Different Types of Orientation Representations
• Euler angles
• Quaternion
• Axis angles
Mathematical Fundamentals Representations
Representation of Orientation
Euler angles
• Any orientation transformation from initial frame to final frame can be represented by 3 consecutive
rotations about any of three rotations in any of X,Y and Z axes , (where no two successive rotations
𝑅𝑍 𝑅𝑌 𝑅𝑋 ≠ 𝑅𝑋 𝑅𝑌 𝑅𝑍
Mathematical Fundamentals Representations
Representation of Orientation
Euler angles
• There exist twelve possible sequences of rotation axes can be achieved
𝛼 𝛾 𝛼 𝛾
𝛽
𝛽
Figure from wikidoc.org
Figure from wikidoc.org
If the sequence is on three different axes , Sequence of Rotations with respect to fixed axis is
equivalent to the opposite sequence of rotations with respect to relative (mobile) axis.
𝑅𝑋𝑌𝑍 𝛼𝛽𝛾 = 𝑅𝑍 𝛼 𝑅𝑌 𝛽 𝑅𝑋 𝛾 𝑅𝑍𝑌𝑋 𝛼𝛽𝛾 = 𝑅𝑍 𝛼 𝑅𝑌 𝛽 𝑅𝑋 𝛾
𝑹(𝒁𝑿𝒁) = 𝑅𝑍 𝛼 𝑅𝑋 𝛽 𝑅𝑍 𝛾
Euler angles cos 𝛼 cos 𝛾 − sin 𝛼 sin 𝛾 cos 𝛽 − cos 𝛼 sin 𝛾 − sin 𝛼 sin 𝛾 cos 𝛽 sin 𝛼 sin 𝛽
𝑹(𝒁𝑿𝒁) = sin 𝛼 cos 𝛾 + cos 𝛼 sin 𝛾 cos 𝛽 − sin 𝛼 sin 𝛾 + cos 𝛼 cos 𝛾 cos 𝛽 − cos 𝛼 sin 𝛽
sin 𝛽 sin 𝛾 sin 𝛽 cos 𝛾 cos 𝛽
Mathematical Fundamentals Representations
Representation of Orientation
Finding Euler angle from rotation matrix Euler angles
Example 1 𝒁𝑿𝒁 Euler angles (relative axes )
𝛽 ≠ ± 𝜋ൗ2
𝑟31 sin 𝛽 sin 𝛾 sin 𝛾 𝑟31 𝑟31 𝛼 ≠ ± 𝜋ൗ2
= = tan 𝛾 = 𝛾 = tan−1
𝑟32 sin 𝛽 cos 𝛾 cos 𝛾 𝑟32 𝑟32 𝛾 ≠ ± 𝜋ൗ2
Mathematical Fundamentals Representations
Representation of Orientation
Finding Euler angle from rotation matrix Euler angles
Example 2 𝒁𝒀𝑿 Euler angles (relative/ mobile axes )
Euler angles cos 𝛼 cos 𝛽 cos 𝛼 sin 𝛽 sin 𝛾 − sin 𝛼 cos 𝛾 cos 𝛼 sin 𝛽 cos 𝛾 + sin 𝛼 sin 𝛾
𝑹(𝒁𝒀𝑿) = sin 𝛼 cos 𝛽 cos 𝛼 sin 𝛽 sin 𝛾 + cos 𝛼 cos 𝛾 sin 𝛼 sin 𝛽 cos 𝛾 − cos 𝛼 sin 𝛾
− sin 𝛽 cos 𝛽 sin 𝛾 cos 𝛽 cos 𝛾
Mathematical Fundamentals Representations
Representation of Orientation ZYX (Roll pitch Yaw) is the Most
Finding Euler angle from rotation matrix Euler angles common representation for
navigation systems (such as IMU)
Example 2 𝒁𝒀𝑿 Euler angles (relative/mobile axes ) In programing we use
(Atan2) instead of (tan−1 )
• Rotation matrix to Euler angles𝒁𝒀𝑿 Roll, Pitch , Yaw
𝑟11 𝑟12 𝑟13 • Equivalent rotation matrix for the sequence 𝑹(𝒁𝒀𝑿)
Given R
𝑅 = 𝑟21 𝑟22 𝑟23 Euler angles cos 𝛼 cos 𝛽 cos 𝛼 sin 𝛽 sin 𝛾 − sin 𝛼 cos 𝛾 cos 𝛼 sin 𝛽 cos 𝛾 + sin 𝛼 sin 𝛾
𝑟31 𝑟32 𝑟33 𝑹(𝒁𝒀𝑿) = sin 𝛼 cos 𝛽 cos 𝛼 sin 𝛽 sin 𝛾 + cos 𝛼 cos 𝛾 sin 𝛼 sin 𝛽 cos 𝛾 − cos 𝛼 sin 𝛾
− sin 𝛽 cos 𝛽 sin 𝛾 cos 𝛽 cos 𝛾
• Extracting Euler angles 𝑃𝑖𝑡𝑐ℎ
𝑟31 − sin 𝛽 − sin 𝛽 − sin 𝛽
𝑟31
= = tan 𝛽 𝛽 = tan−1 −
𝑟32 2 + 𝑟33 2 (cos 𝛽 sin 𝛾)2 +(cos 𝛽 cos 𝛾)2 (cos 𝛽)2 (sin 𝛾 2 + cos 𝛾 2 ) cos 𝛽 𝑟32 2 + 𝑟33 2
=1
𝑌𝑎𝑤
𝑟21 sin 𝛼 cos 𝛽 sin 𝛼 𝑟21 𝑟21 Note that this method assumes
−1
=
𝑟11 cos 𝛼 cos 𝛽 = tan 𝛼 = α = tan 𝑟33 ≠ 0 𝑎𝑛𝑑 𝑟11 ≠ 0
cos 𝛼 𝑟11 𝑟11
(causing singularity)
Limitations
• The two different sets of Euler angles correspond to the one rotation matrix. The
mapping from rotation matrix to Euler angles is not unique.
• All the 12 sequence will met singularities, (should be carful)
Mathematical Fundamentals Representations
Representation of Orientation
Different Types of Orientation Representations
• Euler angles
• Quaternion
• Axis angles