1 / 30

Homogeneous Transformations

Homogeneous Transformations. Purpose:

betty_james
Download Presentation

Homogeneous Transformations

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Homogeneous Transformations Purpose: The purpose of this chapter is to introduce you to the Homogeneous Transformation. This simple 4 x 4 transformation is used in the geometry engines of CAD systems and in the kinematics model in robot controllers. It is very useful for examining rigid-body position and orientation (pose) of a sequence of robotic links and joint frames.

  2. In particular, you will • Examine the structure of the HT (homogeneous transform). • See how orientation and position are represented within one matrix. • Apply the HT to pose (position and orient) a frame (xyz set of axes) relative to another reference frame. • Examine the HT for simple rotations about an axis. • See the effect of multiplying a series of HT’s. • Interpret the order of a product of HT’s relative to base and body-fixed frames. • See how the HT is used in robotics.

  3. B T C B T C Script Notation: Pre super and sub-scripts are often used to denote frames of reference = transformation of frame C relative to frame B Cp = vector located in frame C Tsai uses a pre and post script notation = transformation of frame C relative to frame B Cp = vector located in frame C Note that we may not use the scripting approach, but instead graphically interpret the frame representations.

  4. ax bx cx px H = ay by cy py az bz cz pz d1 d2 d3 1 Homogeneous Transformation H can represent translation, rotation, stretching or shrinking (scaling), and perspective transformations

  5. ax bx cx px H = ay by cy py az bz cz pz 0 0 0 1 Interpreting the HT as a frame a b c p R a, b, and c form an orientation sub-matrix denoted by R (3 x 3), while p (3 x 1) is the frame’s origin offset.

  6. ax a = ay az What do the terms represent? a is a vector ( set of direction cosines ax, ay, and az ) that orients the frame’s x axis relative to the base X, Y, and Z axes, respectively. Similar interpretations are made for the frame’s y and z axes through the direction cosine sets represented by vectors b and c. p is a vector of 3 components representing the frame’s origin relative to the reference axes. p Frame Base frame

  7. Interpreting the HT used to locate a vector in the base frame Given a fixed vector u, its transformation v is represented by v = H u Note that this form doesn’t work for free vectors ! Frame Interpretation

  8. ux uy uz u = 1 Transforming vectors The position vector u having components ux, uy, uz must be expanded to a 4 x 1 vector by adding a 1. Note: To transform an orientation vector, only use the orientation sub-matrix R, and drop the 1 from the vector so that you are multiplying a (3 x 3) matrix times a (3 x 1) vector.

  9. Interpreting the HT R p ux uy = R u + p v = uz 0T 1 1 The 1 adds in the frame origin, while the R resolves the vector u into the base frame

  10. ax bx cx 0 H = ay by cy 0 az bz cz 0 0 0 0 1 Special cases: Pure rotation

  11. 1 0 0 px H = 0 1 0 py 0 0 1 pz 0 0 0 1 Special cases: Pure translation

  12. 1 0 0 0 cosq -sinq 0 sinq cosq Rotational forms Pure rotation about x R(x, q) = q q x

  13. cosq cosq 0 -sinq 0 sinq 0 sinq cosq 1 0 0 -sinq 0 0 0 cosq 1 Rotational forms Pure rotation about y R(y, q) = Pure rotation about z R(z, q) =

  14. Example - Rotate u by 90o about +Z and 90o about +Y, where XYZ are the fixed base reference axes. What are the final coordinates of the vector u after these two rotations in the base XYZ axes? If the rotation order changed, will the final coordinates be the same? Let uT = [0 1 0]. Soln:   v = R (Z,90˚) u "rotate u to v"   w = R (Y,90˚) v "rotate v to w" Thus, w = R (Y,90˚) R (Z,90˚) u

  15. 0 0 0 -1 1 0 0 1 0 1 0 0 -1 0 0 0 0 1 R(Y,90˚) = R(Z,90˚) =

  16. Z, z', y" y' w = (0,0,1) ° 90 ° 90 Y, x', x" (0,1,0) X,z" Graphical interpretation

  17. 0 - 0 1 0 0 0 1 1 1 0 0 0 1 0 0 0 0 1 - 1 0 0 Change order? w = Not commutative!

  18. Order of p and R: first R, then p R p

  19. Order of p and R: first p, then R R p Note the difference in the final matrix form. Can you explain the difference?

  20. Understanding HT multiplication order If we postmultiply a transformation (A B) representing a frame (relative to base axes) by a second transformation (relative to the frame of the first transformation), we make the transformation with respect to the frame axes of the first transformation. Premultiplying the frame transformation by the second transformation (B A) causes the transformation to be made with respect to the base reference frame.

  21. Example -Given frame and transformation locate frame X = H C and frame Y = C H . Note the differences.

  22. Results : HC H C

  23. Results : CH H C

  24. Inverse Transformations Given u and the rotational transformation R, the coordinates of u after being rotated by R are defined by v = Ru. The inverse question is given v, what u when rotated by R will give v? Answer: u = R-1 v = RT v

  25. = H-1 = Inverse Transformations Similarly for any displacement matrix H (R, p), we can pose a similar question to get u = H-1v. What is the inverse of a displacement transformation? Without proof:

  26. Operational rules for square matrices of full rank :

  27. HT summary • Homogeneous transformation consists of three components: • · rotational, orthogonal 3x3 sub-matrix which is comprised of columns of direction cosines used to orient the axes of one frame relative to another. • · column vector in 4th column represents the origin of second frame relative to first frame, resolved in the first frame. • ·0's in 4th row except for 1 in 4,4 position.

  28. HT summary The homogeneous transformation effectively merges a frame orientation matrix and frame translation vector into one matrix. The order of the operation should be viewed as rotation first, then translation.

  29. HT summary The homogeneous transformation can be viewed as a position/orientation relationship of one frame relative to another frame called the reference frame.

  30. HT summary A Bcan be interpreted as frame A described relative to the first or base frame while frame B is described relative to frame A (usual way). We can also interpret B in the base frame transformed by A in the base frame. Both interpretations give same result.

More Related