| New Reply |
Extracting yaw, pitch, roll from transformation matrix |
Share Thread | Thread Tools |
| Dec8-10, 10:34 AM | #1 |
|
|
Extracting yaw, pitch, roll from transformation matrix
There are two references frames, A and B.
Let A's reference frame be denoted by the columns of the identity matrix, and let A's origin be (0,0,0). Let B's reference frame and origin be denoted by a transformation matrix T, where T = R11 R12 R13 x R21 R22 R23 y R31 R32 R33 z 0 0 0 1 (Sorry, I don't know how to make it fancy as this is my first post). So basically the R sub matrix is the rotation matrix, and x,y,z is the translation of the origin. Now, I have the values of the elements of T. From this, how do I determine the yaw, pitch, and roll? Roll is defined to be the rotation about the x-axis; pitch is defined to be the rotation about the y-axis; and yaw is defined to be the rotation about the z-axis. EDIT: I have already seen this http://en.wikipedia.org/wiki/Rotatio...eral_rotations and know that I can just set R_x(gamma) * R_y(beta) * R_z(\alpha) * (a column of the R matrix) = <1,0,0> and then solve for gamma, beta, and alpha, but I was wondering if there was an easier, more direct way. |
| Dec8-10, 12:28 PM | #2 |
|
|
Perhaps look up "Euler angles"
|
| Dec8-10, 01:06 PM | #3 |
|
Mentor
|
A couple of warnings:
1. Note that a roll-pitch-yaw sequence is not the same as a yaw-pitch-roll sequence. There are 12 such Euler sequences: The six aeronautic sequences, the standard Euler sequence (z-x-z), plus five others similar to z-x-z (z-y-z, x-y-z, ...). When you are communicating with others you had dang well better agree on a sequence. 2. You will have to worry about (near) gimbal lock versus non-gimbal lock situations. Gimbal lock occurs when the middle angle of the sequence pitch in a roll-pitch-yaw sequence is 0 or 180 degrees. Near gimbal lock is when that angle is close to 0 or 180. You need to treat those cases specially. Going from an Euler sequence to a transformation matrix is simple. Going from a matrix to a sequence is not so simple. |
| Dec8-10, 04:08 PM | #4 |
|
|
Extracting yaw, pitch, roll from transformation matrix
This kind of conversion is rather ugly... a nice algorithm that handles all possible configurations of axes (including roll-pitch-yaw) very compactly is given here:
http://etclab.mie.utoronto.ca/people...GEMS/GEMS.html |
| Dec8-10, 04:27 PM | #5 |
|
Mentor
|
|
| Dec8-10, 08:33 PM | #6 |
|
|
Craig's book on robotics (the title is either "Introduction to..." or "Fundamentals of...") has a nice treatment of moving back and forth between transformation matrices and poses (x, y, z, rx, ry, rz), as well as a detailed explanation of the 12 sequences. It was a good starting point for me, but unfortunately I don't own the book.
|
| New Reply |
| Thread Tools | |
Similar Threads for: Extracting yaw, pitch, roll from transformation matrix
|
||||
| Thread | Forum | Replies | ||
| Calculation of vehicle pitch rate and roll rate from acceleration | Classical Physics | 12 | ||
| accelerometer to roll and pitch | General Math | 2 | ||
| Robotics Yaw Pitch Roll Euler Angles | Calculus | 4 | ||
| how to find roll, pitch yaw.... | Mechanical Engineering | 1 | ||
| Plane banking: Pitch and roll axes | Engineering, Comp Sci, & Technology Homework | 2 | ||