You have 3 free guides left 😟
Unlock your guides
You have 3 free guides left 😟
Unlock your guides

2.1 Spatial descriptions and transformations

3 min readjuly 25, 2024

Spatial descriptions and transformations are crucial in robotics, allowing precise tracking of and in 3D space. Understanding coordinates, reference frames, and degrees of freedom forms the foundation for manipulating objects and navigating environments.

simplify calculations by combining position and orientation into single matrices. This enables efficient representation of complex spatial relationships, chaining of transformations, and inverse operations, essential for robotic motion planning and control.

Spatial Descriptions and Transformations

Position and orientation in 3D

Top images from around the web for Position and orientation in 3D
Top images from around the web for Position and orientation in 3D
  • Position
    • Defined by x, y, and z coordinates in 3D space pinpoints exact location
    • Represents point's location relative to enables precise tracking
  • Orientation
    • Describes object's in 3D space defines spatial alignment
    • Represented by angles or captures complex rotations
  • Reference frames
    • Coordinate systems describe position and orientation establish spatial context
    • Origin and axes define frame provide basis for measurements
    • Six DOF in 3D space: three for position (x, y, z), three for orientation (roll, pitch, yaw)
    • Roll (rotation around x-axis), pitch (y-axis), yaw (z-axis) describe orientation
    • Sequence-dependent representation leads to potential ambiguity
    • Four-dimensional representation of orientation (x, y, z, w) encodes rotation
    • Avoid gimbal lock issues ensures smooth rotations

Homogeneous transformations for spatial relationships

    • Add fourth component to 3D vectors (x, y, z, w) unifies representation
    • Allows representation of position and orientation in single matrix simplifies calculations
    • 4x4 matrices combining rotation and encode complete spatial information
    • Upper-left 3x3 submatrix represents rotation defines orientation
    • Right-most column represents translation specifies position
    • Describe position and orientation of one frame relative to another enables spatial reasoning
    • Multiply matrices to represent multiple transformations combines sequential movements
    • Represent opposite spatial relationship reverses transformation
    • Calculated by inverting transformation matrix undoes spatial change

Translations and rotations with matrices

    • Represent linear displacement along x, y, and z axes shifts position
    • Identity matrix with translation values in fourth column encodes movement
  • Rotation matrices
    • Represent angular displacement around x, y, and z axes changes orientation
    • 3x3 matrices for basic rotations define elemental rotations
    • Rotation around x-axis: Rx(θ)R_x(\theta) = [[1, 0, 0], [0, cos(θ), -sin(θ)], [0, sin(θ), cos(θ)]]
    • Rotation around y-axis: Ry(θ)R_y(\theta) = [[cos(θ), 0, sin(θ)], [0, 1, 0], [-sin(θ), 0, cos(θ)]]
    • Rotation around z-axis: Rz(θ)R_z(\theta) = [[cos(θ), -sin(θ), 0], [sin(θ), cos(θ), 0], [0, 0, 1]]
    • Multiply rotation matrices in desired order produces composite rotation
    • Order matters: rotations are not commutative affects final orientation
  • Translation followed by rotation
    • Multiply rotation matrix by translation matrix preserves correct order
  • Rotation followed by translation
    • Add translation vector to rotated coordinates maintains proper sequence

Composition of spatial transformations

    • Multiply transformation matrices in desired order combines multiple movements
    • Represent multiple sequential transformations as single matrix simplifies calculations
    • Extract individual rotations and translations from complex matrix reverses composition
    • Use methods like Euler angle extraction or quaternion conversion recovers component movements
    • T=[Rt]T = [R | t], where R is 3x3 rotation matrix and t is translation vector encodes complete transformation
    • Use upper-left 3x3 submatrix of transformation matrix isolates orientation change
    • Use first three elements of fourth column of transformation matrix retrieves position shift
    • Transform coordinates from one reference frame to another enables perspective shifts
    • Use inverse transformations to change coordinate representations converts between frames
    • Represent rigid body motions as combination of rotation and translation along axis unifies motion description
© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.


© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.

© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.
Glossary
Glossary