Physics Library
 An open source physics library
Encyclopedia | Forums | Docs | Random |  
Login
create new user
Username:
Password:
forget your password?
Main Menu
Sections

Meta

Talkback

Downloads

Information
direction cosine matrix to Euler 123 angles (Definition)

Starting with a direction cosine matrix (DCM), we need to determine the three Euler Angles. The connection is made by comparing the DCM elements with the combined Euler 123 sequence. It is important to note that the 12 combinations of Euler angles for a given sequence can be found from a given DCM. The DCM matrix is

         ⌊                ⌋
           A11  A12   A13
DCM   =  ⌈ A21  A22   A23 ⌉
           A31  A32   A33
(1)

The Euler 123 sequence is

                    ⌊                                          ⌋
                        cψc𝜃   cψs 𝜃sϕ + sψc ϕ − cψs𝜃cϕ + sψsϕ
R  (ψ)R  (𝜃)R (ϕ) = ⌈  − s c   − s s s + c  c   s  s c + c  s  ⌉
  3     2    1            ψ 𝜃    ψ  𝜃 ϕ   ψ  ϕ   ψ  𝜃 ϕ   ψ  ϕ
                         s𝜃        − c𝜃sϕ            c𝜃cϕ
(2)

If we examine the element in coloum 1 row 3, then by inspection

A31 = sin(𝜃)

Solving for 𝜃 yields

        −1
𝜃 = sin   (A31)
(3)

Care must now be taken when evaluating the inverse sine. It is a multivalued function, which will have values of 𝜃 and π 𝜃. Analytically, the convention is to choose the principle value such that

π∕2 𝜃 π∕2

If a numerical program is used, a function asin() usually does this for us. The next step is to analyze the ratio A32
----
A33. Using these values from the Euler sequence we get

A32-
A33 = −-sin(ϕ)cos(𝜃)
 cos(ϕ )cos (𝜃)

Rearranging the minus sign and using the tangent yields

tan(ϕ) = −-A32-
 A33

Solving the quadrant ambiquity caused by the inverse tangent is done by examining the signs of the numerator and denominator. Denoting y as the numerator and x as the denominator, then the quadrant is chosen by:

quadrant 1 [        ]
   y  x
  +   +

so if x and y are both positive, then 0 ϕ π∕2. Similarily for the other quadrant possibilites

quadrant 2 [        ]
   y  x
  +   −

quadrant 3 [        ]
   y  x
  −   −

quadrant 4 [  y  x  ]

  −   +

Ofcourse, it is much simplier to use a calculator or numerical program that uses the atan2() function which will choose the principle value. In a similar fashion we can find the final Euler angle by looking at the ratio A21-
A11 which gives the relation A21-
A11 = −-cos(𝜃)sin-(ψ)-
 cos(𝜃)cos(ψ)

Canceling terms and rearrangeing gives us

ψ = tan1(−-A21-
 A
   11)

which uses the same method to resolove quadrant ambiguity as above. To summarize, we will give the formulas for the conversion from a direction cosine matrix to the Euler 123 angles in Matlab syntax. Be careful how you implement this in other numerical programs. In Matlab it goes atan2(y,x) and in Mathematica it is ArcTan[x, y].

ϕ = atan2 (− A32,A33)

𝜃 = asin(A   )
           31

ψ = atan2 (− A21,A11)

"direction cosine matrix to Euler 123 angles" is owned by bloftin.
(view preamble)
View style:

Cross-references: formulas, relation, program, function, matrix, Euler 123 sequence, Euler Angles, direction cosine matrix

This is version 7 of direction cosine matrix to Euler 123 angles, born on 2005-08-16, modified 2005-08-25.
Object id is 61, canonical name is DirectionCosineMatrixToEuler123Sequence.
Accessed 2922 times total.

Classification:
Physics Classification45.40.-f (Dynamics and kinematics of rigid bodies)
Pending Errata and Addenda
None.
Discussion
Style: Expand: Order:

No messages.

Interact
rate | post | correct | update request | add derivation | add example | add (any)