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

Talkback

Downloads

Information
direction cosine matrix to Euler 313 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 313 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

$\displaystyle DCM = \left[ \begin{array}{ccc} A_{11} & A_{12} & A_{13} \ A_{21} & A_{22} & A_{23} \ A_{31} & A_{32} & A_{33} \end{array} \right]$ (1)

The Euler 313 sequence is

$\displaystyle R_3(\psi)R_1(\theta)R_3(\phi) = \left[ \begin{array}{ccc} c_{\psi... ...\ s_{\theta} s_{\phi} & -s_{\theta} c_{\phi} & c_{\theta} \end{array} \right]$ (2)

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

$A_{33} = cos(\theta)$

Solving for $\theta$ yields

$\displaystyle \theta = cos^{-1}(A_{33})$ (3)

Care must now be taken when evaluating the inverse cosine. It is a multivalued function. Analytically, the convention is to choose the principle value such that

$0 \le \theta \le \pi$

If a numerical program is used, a function acos() usually does this for us. The next step is to analyze the ratio $\dfrac{A_{31}}{A_{32}}$. Using these values from the Euler sequence we get

$\dfrac{A_{31}}{A_{32}}= \dfrac{sin(\theta) sin(\phi)}{-sin(\theta) cos(\phi)}$

Rearranging and using the tangent yields

$tan(\phi) = \dfrac{A_{31}}{-A_{32}}$

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 $\left[ \begin{array}{cc} y & x \ + & + \ \end{array} \right] $

so if x and y are both positive, then $0 \le \phi \le \pi /2$. Similarily for the other quadrant possibilites

quadrant 2 $\left[ \begin{array}{cc} y & x \ + & - \ \end{array} \right] $

quadrant 3 $\left[ \begin{array}{cc} y & x \ - & - \ \end{array} \right] $

quadrant 4 $\left[ \begin{array}{cc} y & x \ - & + \ \end{array} \right] $

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 $\dfrac{A_{13}}{A_{23}}$ which gives the relation $\dfrac{A_{13}}{A_{23}} = \dfrac{sin(\psi) sin(\theta)}{cos(\psi)sin(\theta)}$

Canceling terms and rearrangeing gives us

$\psi = tan^{-1}(\dfrac{A_{13}}{A_{23}})$

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 313 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].

$\displaystyle \phi = atan2(A_{31}, -A_{32})$

$\displaystyle \theta = acos(A_{33})$

$\displaystyle \psi = atan2(A_{13}, A_{23})$



"direction cosine matrix to Euler 313 angles" is owned by bloftin.

View style:


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

This is version 1 of direction cosine matrix to Euler 313 angles, born on 2005-08-25.
Object id is 82, canonical name is DirectionCosineMatrixToEuler313Angles.
Accessed 2292 times total.

Classification:
Physics Classification45.40.-f (Dynamics and kinematics of rigid bodies)

Pending Errata and Addenda
None.
Discussion
Style: Expand: Order:

No messages.

Testing some escape charachters for html category with a generator has an injective cogenerator" now escape ” with "