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 231 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 231 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 231 sequence is

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

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

A12 = sin(𝜃)

Solving for 𝜃 yields

        −1
𝜃 = sin   (A12)
(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 A13
----
A11. Using these values from the Euler sequence we get

A13-
A11 = −-cos(𝜃)sin(ϕ)
 cos(𝜃)cos(ϕ)

Rearranging the minus sign and using the tangent yields

tan(ϕ) = −-A13-
 A11

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 A32-
A22 which gives the relation A32-
A22 = −-sin(ψ-)cos(𝜃)-
 cos(ψ )cos (𝜃 )

Canceling terms and rearrangeing gives us

ψ = tan1(−-A32-
 A
   22)

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 231 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 (− A13,A11)

𝜃 = asin(A   )
           12

ψ = atan2 (− A32,A22)

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

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

This is version 2 of direction cosine matrix to Euler 231 angles, born on 2005-08-25, modified 2005-08-25.
Object id is 80, canonical name is DirectionCosineMatrixToEuler231Sequence.
Accessed 2732 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)