Algorithm Search⌘K

Definitionintro

Pose

Also called position and orientation.

The position and orientation of a frame relative to another, an element of SE(2) in the plane or SE(3) in space.

The pose of a robot, or of any rigid body, is its position together with its orientation, given as the place and the direction of a body frame relative to a reference frame. In the plane a pose is three numbers (x,y,θ)(x, y, \theta), an element of SE(2), and in space it is a rotation matrix and a position (R,p)(R, p), an element of the special Euclidean group SE(3). The same object is both a place where the body is and a motion that takes the reference frame to the body frame, which is why poses compose by matrix product and not by vector addition. Mapping, localization and manipulation all work with poses: the pose of the robot in the map, of a landmark seen by a camera, or of a tool relative to a part.

Definition

Pose in the plane. Let {a}\{a\} be a reference frame and {b}\{b\} a body frame, both in the plane. The pose of {b}\{b\} in {a}\{a\} is xab=(x,y,θ)x_{ab} = (x, y, \theta), where (x,y)(x, y) are the {a}\{a\} coordinates of the origin of {b}\{b\}, and θ\theta is the angle from the xx axis of {a}\{a\} to the xx axis of {b}\{b\}, counterclockwise, usually wrapped to [−π,π)[-\pi, \pi). Its matrix in SE(2) is

Tab=(cos⁡θ−sin⁡θxsin⁡θcos⁡θy001).T_{ab} = \begin{pmatrix} \cos\theta & -\sin\theta & x \\ \sin\theta & \cos\theta & y \\ 0 & 0 & 1 \end{pmatrix} .

Pose in space. The pose of {b}\{b\} in {a}\{a\} is Tab=(Rab,pab)∈SE(3)T_{ab} = (R_{ab}, p_{ab}) \in SE(3), where pabp_{ab} is the position of the origin of {b}\{b\} in {a}\{a\} coordinates and the columns of Rab∈SO(3)R_{ab} \in SO(3) are the axes of {b}\{b\} in {a}\{a\} coordinates. As a homogeneous transformation matrix,

Tab=(Rabpab01).T_{ab} = \begin{pmatrix} R_{ab} & p_{ab} \\ 0 & 1 \end{pmatrix} .

The rules of the subscripts. A point with coordinates xbx_b in {b}\{b\} has the coordinates xa=Rabxb+pabx_a = R_{ab}x_b + p_{ab} in {a}\{a\}. Poses chain by Tac=TabTbcT_{ac} = T_{ab}T_{bc}, and the inverse is Tba=Tab−1=(RabT,−RabTpab)T_{ba} = T_{ab}^{-1} = (R_{ab}^{\mathsf T}, -R_{ab}^{\mathsf T}p_{ab}). The inner subscripts must match in a product. In the robotics literature on uncertain poses, the planar product xab⊕xbcx_{ab} \oplus x_{bc} and the inverse ⊖xab\ominus x_{ab} are the pose compounding operators.

Representations in space. The group SE(3) has dimension 6, but the 12 numbers of (R,p)(R, p) are not free. Common ways to store a pose are the 4×44 \times 4 matrix, the position with a unit quaternion (7 numbers, with qq and −q-q the same), the position with roll-pitch-yaw angles (6 numbers, with gimbal lock), the exponential coordinates of the exponential map of SE(3) (6 numbers, good near a reference pose), and the dual quaternion (8 numbers).

Examples and non-examples

A robot on the floor. A robot at xwr=(2,1,π/2)x_{wr} = (2, 1, \pi/2) in the world frame {w}\{w\} stands at (2,1)(2, 1) and faces the +y+y direction. Its matrix is Twr=(0−12101001)T_{wr} = \begin{pmatrix} 0 & -1 & 2 \\ 1 & 0 & 1 \\ 0 & 0 & 1 \end{pmatrix}.

  • A landmark 1 m straight ahead has robot coordinates (1,0)(1, 0) and world coordinates Twr(1,0,1)T=(2,2,1)TT_{wr}(1, 0, 1)^{\mathsf T} = (2, 2, 1)^{\mathsf T}, that is (2,2)(2, 2).
  • The inverse pose is xrw=(−1,2,−π/2)x_{rw} = (-1, 2, -\pi/2): the world origin is 1 m behind the robot and 2 m to its left. Check: the vector from the robot to the origin is (−2,−1)(-2, -1), and its parts along the robot axes (0,1)(0, 1) and (−1,0)(-1, 0) are −1-1 and 22.
  • A second robot at xws=(3,3,π)x_{ws} = (3, 3, \pi) has the relative pose xrs=xrw⊕xws=(2,−1,π/2)x_{rs} = x_{rw} \oplus x_{ws} = (2, -1, \pi/2): 2 m ahead of the first robot and 1 m to its right, turned by a quarter turn to the left relative to it.

A pose in space. The pose with R=Rz(π/2)R = R_z(\pi/2) and p=(1,1,0)p = (1, 1, 0) is the check value of the exponential map of SE(3). As a position and a quaternion it is ((1,1,0),(0.70711,0,0,0.70711))((1, 1, 0), (0.70711, 0, 0, 0.70711)).

Non-example: the difference of two pose vectors. For the two robots above, xws−xwr=(1,2,π/2)x_{ws} - x_{wr} = (1, 2, \pi/2), but the pose of the second robot relative to the first is (2,−1,π/2)(2, -1, \pi/2). The difference is in world axes, not in the axes of the first robot, so it is not a relative pose.

Non-example: the average of two headings. The headings 3.13.1 and −3.1-3.1 rad point in nearly the same direction, close to π\pi. Their arithmetic mean is 00, which points the other way. Means of poses must be taken on the group, as in uncertainty on Lie groups, or at least with the angles unwrapped about a reference.

Non-example: a location. A position (x,y)(x, y) without a heading is a location, not a pose. Thrun, Burgard and Fox make this distinction for mobile robots. A heading alone is an orientation, or an attitude in aerospace.

Non-example: the configuration of an arm. The joint angles of an arm are a point in its configuration space, not a pose. Forward kinematics maps them to the pose of the tool frame, and many joint vectors can give the same pose.

Non-example: a twist. A twist is a velocity of a body, an element of the Lie algebra, not a place. Integrating a constant twist for unit time gives a pose, its exponential.

References

  1. Sebastian Thrun, Wolfram Burgard and Dieter Fox, Probabilistic Robotics, MIT Press, 2005, Chapter 5, Section 5.2.1 (kinematic configuration; the pose (x, y, theta) of a mobile robot in the plane)
  2. Kevin M. Lynch and Frank C. Park, Modern Robotics, Mechanics, Planning, and Control, Cambridge University Press, 2017, Chapter 3, Sections 3.1 and 3.3.1 (rigid-body motions in the plane, and homogeneous transformation matrices)

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/9204S9/text.yaml