1 / 22

Spatial Descriptions and Transformations

Spatial Descriptions and Transformations. Sebastian van Delden USC Upstate svandelden@uscupstate.edu. Notation…. Lowercase variables are scalars Uppercase variables are vectors or matrices Leading sub- and super-scripts: identify which coordinate system a quantity is defined in: A P

ianna
Télécharger la présentation

Spatial Descriptions and 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. Spatial Descriptions and Transformations Sebastian van Delden USC Upstate svandelden@uscupstate.edu

  2. Notation… • Lowercase variables are scalars • Uppercase variables are vectors or matrices • Leading sub- and super-scripts: identify which coordinate system a quantity is defined in: • AP • A position vector in system {A} • Rotation matrix that rotates from system {B} into system {A} • Trailing superscript: inverse A-1 or transpose AT • Trailing subscript: vector component (XA) or description (APBORIG) • Given angle θ1: cos θ1 == cθ1 == c1

  3. Position Vectors • A 3x1 vector • Leading superscript indicates referenced coordinate system.

  4. Orientation • In which direction is the point pointing… • Attach a coordinate system to the point and describe it relative to a reference system.

  5. Orientation cont… • Write unit vectors of {B}’s three principle axes in terms of coordinate system {A}: • AXB, AYB, AZB • Can be stacked in a 3x3 matrix called a rotation matrix: • = [AXBAYBAZB] = = • The rij values are projections of {B}’s unit vectors onto the unit vectors of {A}.

  6. Orientation cont… • Recall dot product... • Consider unit vector A and B: • B . AT = .707 • .707 is the projection of B onto A. • Also called a “directional cosine”. • Angle between vectors: cos-1(.707) = 45o

  7. Orientation cont… = [AXBAYBAZB] = = or = = [AXBAYBAZB] = I3 So, the inverse a rotation matrix is simple the transpose of that matrix. For any matrix with orthogonal columns, its inverse is equal to its transpose.

  8. Orientation cont… • Example:

  9. “Frames” • A Frame • Contains information about position and orientation of a location • 4 vectors: 3 for orientation, 1 for position • For example, frame {B} can be defined in frame {A} as: • {B} = { , APBORG}

  10. Mappings • Need to express one coordinate system in terms of another. • Changing the description (position and orientation) from one frame to another is called a mapping.

  11. Mappings: Pure Translations • If the two frames different by only a position vector (orientation is the same) then only a translation is needed. • AP = BP + APBORG

  12. Mappings: Pure Translations cont…

  13. Mappings: Pure Rotations • A 3x3 matrix • Columns have unit magnitude • Columns are {B} written in {A} • Rows are {A} written in {B} • Multiple the rotation matrix and the point together: APx = BXA . BP APy = BYA . BP APz = BZA . BP AP = BP

  14. Mappings: Pure Rotations cont… • Example: Pure rotation around Z

  15. Mappings: Pure Rotations cont…

  16. General Mappings • The two frames differ by both a translation and rotation. • AP = BP + APBORG • Example: • A point BP is located at position [2 1 0]T in {B}. • Frame {B} is rotated relative to frame {A} by 60o around the Z axis. • Frame {B}’s origin is translated by [3 4 0]T. • What are the coordinates of the point AP in frame {A}.

  17. Homogeneous Transformation Matrix • A better way to represent general transformations. • The rotation and translation is combined into a single 4x4 matrix.

  18. Homogeneous Transformation Matrices cont… • A 4x4 matrix is better for writing compact equations. • The bottom row is always [0 0 0 1] • These values can be modified to represent scaling and perspective factors. • Homogeneous transformations are used to represent a coordinate system or a movement.

  19. Homogeneous Transformations cont… • Pure Translation Transformations • Pure Rotation Transformations

  20. Compound Transformations • Multiple transforms are simple multiple together: • AP = CP

  21. Inverse of a Homogenous Transform • Given need to find : • Need to find and BPAORG from and APBORG • Rotation Part: • = T • Translation Part: • B(APBORG) = APBORG + BPAORG • 0 = APBORG + BPAORG • BPAORG = - T APBORG

  22. Inverse of a Homogenous Transform • Visualize Translation: • So:

More Related