Skip to main content
Open In Colab Rotation representations described a body’s orientation. Angular velocity described how it changes, and exponential coordinates showed how a finite rotation follows from it. This section adds position. A pose pairs a rotation with a translation. A twist pairs an angular velocity with a linear velocity. A screw motion is the exponential of a twist. In Lie I, these are the group SE(3)SE(3), its Lie algebra se(3)\mathfrak{se}(3), and the exponential between them. The section starts in the plane. There every object is a 3×33 \times 3 matrix you can compute by hand, and a TurtleBot serves as the running example. It then takes the same steps in three dimensions. The presentation follows sections 3.1 and 3.3 of Lynch and Park (Kevin M. Lynch, 2017).

Motion in the plane

Poses in SE(2)

A pose in the plane is a position (x,y)(x, y) and a heading θ\theta. Moving a point r\mathbf{r} by a pose takes two steps: rotate it by R(θ)R(\theta), then shift it by p=(x,y)\mathbf{p} = (x, y). The result is R(θ) r+pR(\theta)\,\mathbf{r} + \mathbf{p}. The rotation is a matrix product, but the shift is an addition, so the two steps do not combine into one matrix. Homogeneous coordinates fix this with one extra number. Write the point r=(r1,r2)\mathbf{r} = (r_1, r_2) as (r1,r2,1)(r_1, r_2, 1). A 3×33 \times 3 matrix can then do both steps in one product: [R(θ)p01][r1]=[R(θ) r+p1].\begin{bmatrix} R(\theta) & \mathbf{p} \\ 0 & 1 \end{bmatrix} \begin{bmatrix} \mathbf{r} \\ 1 \end{bmatrix} = \begin{bmatrix} R(\theta)\,\mathbf{r} + \mathbf{p} \\ 1 \end{bmatrix} . The 1 in the last row of the point multiplies p\mathbf{p}, which adds the shift. This matrix is the homogeneous transformation matrix of the pose: T=[R(θ)p01]=[cos⁡θ−sin⁡θxsin⁡θcos⁡θy001]∈SE(2).T = \begin{bmatrix} R(\theta) & \mathbf{p} \\ 0 & 1 \end{bmatrix} = \begin{bmatrix} \cos\theta & -\sin\theta & x \\ \sin\theta & \cos\theta & y \\ 0 & 0 & 1 \end{bmatrix} \in SE(2) . The configuration is the triple (θ,x,y)(\theta, x, y). For a differential-drive robot such as the TurtleBot, (x,y)(x, y) is the position of the chassis and θ\theta is its heading. The headings θ\theta and θ+2π\theta + 2\pi are identical. The matrix R(θ)R(\theta) converts coordinates between the robot and world frames. A velocity vb=(v,0)v_b = (v, 0) along the robot’s heading becomes vs=R(θ) vb=(vcos⁡θ,vsin⁡θ)v_s = R(\theta)\,v_b = (v\cos\theta, v\sin\theta) in the world frame. The last coordinate tells the matrix what kind of object it is moving. A point, such as the position of a wheel, has a 1 there, so it is rotated and shifted. A direction, such as a velocity, has a 0 there. The 0 multiplies p\mathbf{p}, so the direction is only rotated. This matches what happens to the robot: driving it somewhere else moves the points on it, but a direction has no position to move, so it only turns with the robot. For example, take θ=90∘\theta = 90^\circ and p=(1,2)\mathbf{p} = (1, 2). The point (1,0,1)(1, 0, 1) goes to (1,3,1)(1, 3, 1), while the direction (1,0,0)(1, 0, 0) goes to (0,1,0)(0, 1, 0). The inverse of a homogeneous transformation matrix is T−1=[RT−RTp01],T^{-1} = \begin{bmatrix} R^T & -R^T \mathbf{p} \\ 0 & 1 \end{bmatrix} , and transformations compose by matrix multiplication, Tac=TabTbcT_{ac} = T_{ab} T_{bc}. Composing two poses shows the interaction between translation and rotation: T1T2=[R1p101][R2p201]=[R1R2p1+R1p201].T_1 T_2 = \begin{bmatrix} R_1 & p_1 \\ 0 & 1 \end{bmatrix} \begin{bmatrix} R_2 & p_2 \\ 0 & 1 \end{bmatrix} = \begin{bmatrix} R_1 R_2 & p_1 + R_1 p_2 \\ 0 & 1 \end{bmatrix} . The headings combine by multiplying their rotations, which adds the angles. The first rotation acts on the second translation, producing the term R1p2R_1 p_2. As a manifold, SE(2) looks like R2×SO(2)\mathbb{R}^2 \times SO(2), a position paired with a heading. Its group structure also includes the action of rotation on translation. This structure is called a semidirect product and is written SE(2)=R2⋊SO(2)SE(2) = \mathbb{R}^2 \rtimes SO(2).

Twists in the plane

A planar body turns at a rate ω=θ˙\omega = \dot\theta, and its origin moves with a linear velocity (vx,vy)(v_x, v_y). A twist collects the three numbers in one vector, V=(ω,vx,vy)∈R3\mathcal{V} = (\omega, v_x, v_y) \in \mathbb{R}^3. This order follows Lynch and Park: turning rate first, then the linear velocity. The matrix form of the twist belongs to se(2)\mathfrak{se}(2), the Lie algebra of SE(2)SE(2): [V]=[[ω]v00]=[0−ωvxω0vy000]∈se(2).[\mathcal{V}] = \begin{bmatrix} [\omega] & \mathbf{v} \\ 0 & 0 \end{bmatrix} = \begin{bmatrix} 0 & -\omega & v_x \\ \omega & 0 & v_y \\ 0 & 0 & 0 \end{bmatrix} \in \mathfrak{se}(2) . As with angular velocity, you can express a twist in two frames. The body twist comes from [Vb]=T−1T˙[\mathcal{V}_b] = T^{-1}\dot{T}. The space twist comes from [Vs]=T˙T−1[\mathcal{V}_s] = \dot{T} T^{-1}. Both have the same turning rate, ωb=ωs=θ˙\omega_b = \omega_s = \dot\theta, because every rotation in the plane is about the same axis, out of the page. The linear parts differ:
  • vb=R⊤p˙\mathbf{v}_b = R^\top \dot{\mathbf{p}} is the velocity of the body-frame origin, written in the coordinates of {b}\{b\}.
  • vs=p˙−[ω]p=(x˙+θ˙ y, y˙−θ˙ x)\mathbf{v}_s = \dot{\mathbf{p}} - [\omega]\mathbf{p} = (\dot x + \dot\theta\, y,\ \dot y - \dot\theta\, x) is the velocity of the point of the body currently at the origin of {s}\{s\}, written in {s}\{s\}. That point may lie outside the physical body. You can imagine extending the body far enough to contain it.
The body twist is related to the rate of change of the configuration q=(θ,x,y)q = (\theta, x, y) by Vb=[ωbvbxvby]=[1000cos⁡θsin⁡θ0−sin⁡θcos⁡θ][θ˙x˙y˙].\mathcal{V}_b = \begin{bmatrix} \omega_b \\ v_{bx} \\ v_{by} \end{bmatrix} = \begin{bmatrix} 1 & 0 & 0 \\ 0 & \cos\theta & \sin\theta \\ 0 & -\sin\theta & \cos\theta \end{bmatrix} \begin{bmatrix} \dot\theta \\ \dot x \\ \dot y \end{bmatrix} .

Planar screw motion

Any planar displacement that includes a rotation is a rotation about a fixed point s\mathbf{s}. A pure translation is the exception, because its fixed point has moved off to infinity. The figure shows such a motion. Planar screw motion. (a) The body is rotated by RR about the origin of {s}\{s\} and then translated by p\mathbf{p}. Displacing a frame works through this motion step by step. (b) The rotation and translation can occur simultaneously. The displacement is then a rotation of β=90∘\beta = 90^\circ about a fixed point s\mathbf{s}. Two motions produce the same displacement. In the first, the body rotates by RR about the origin of {s}\{s\} and then translates by p\mathbf{p}. In the second, it rotates by β=90∘\beta = 90^\circ about s=(0,2)\mathbf{s} = (0, 2). Both motions end at the same pose. The three screw coordinates (β,sx,sy)(\beta, s_x, s_y) parametrize the displacement. Here, (sx,sy)=(0,2)(s_x, s_y) = (0, 2) gives the coordinates of the point s\mathbf{s} in the fixed frame {s}\{s\}. This point is the screw axis out of the page. The next part shows that a body moving with a constant twist makes exactly this kind of motion.

From velocity to motion

For rotations, angular velocity and the exponential form this sequence: R(t)→  differentiate  R˙→  R−1  [ω]→  exp⁡([ω]Δt)  R(t+Δt).R(t) \xrightarrow{\;\text{differentiate}\;} \dot R \xrightarrow{\;R^{-1}\;} [\omega] \xrightarrow{\;\exp([\omega]\Delta t)\;} R(t + \Delta t) . Multiplication by R−1R^{-1} extracts the local motion. The exponential converts that motion into a finite rotation. In exponential coordinates, an animation of a tangent plane on a sphere depicts the same wrapping process for the sphere S2S^2. For poses, the corresponding quantities are TT, the twist [Vb][\mathcal{V}_b], and e[Vb]Δte^{[\mathcal{V}_b]\Delta t}. Consider the TurtleBot pose from poses in SE(2).
  1. Velocity. The robot travels forward at speed vv and turns at rate ω\omega. Its wheels cannot slide sideways, so its velocity in the body frame is the twist Vb=(ω,v,0)\mathcal{V}_b = (\omega, v, 0). The sideways component is zero. In matrix form, the twist is [Vb]=[0−ωvω00000]∈se(2).[\mathcal{V}_b] = \begin{bmatrix} 0 & -\omega & v \\ \omega & 0 & 0 \\ 0 & 0 & 0 \end{bmatrix} \in \mathfrak{se}(2) . This matrix belongs to the Lie algebra. In the notation of Lie I, [Vb][\mathcal{V}_b] is τ∧\tau^\wedge.
  2. Motion. During a short time interval Δt\Delta t, update the pose with Tk+1=Tkexp⁡([Vb] Δt).T_{k+1} = T_k \exp\big([\mathcal{V}_b]\,\Delta t\big) .
When the twist stays constant, the same update is exact for an interval of any length. Write ϕ=ω Δt\phi = \omega\,\Delta t for the angle turned. With no sideways speed, the exponential has the closed form exp⁡([Vb] Δt)=[cos⁡ϕ−sin⁡ϕvωsin⁡ϕsin⁡ϕcos⁡ϕvω(1−cos⁡ϕ)001],ω≠0.\exp\big([\mathcal{V}_b]\,\Delta t\big) = \begin{bmatrix} \cos\phi & -\sin\phi & \dfrac{v}{\omega}\sin\phi \\ \sin\phi & \cos\phi & \dfrac{v}{\omega}(1 - \cos\phi) \\ 0 & 0 & 1 \end{bmatrix} , \qquad \omega \neq 0 . The rotation block turns the heading by ϕ\phi. The last column is the displacement in the body frame at the start of the interval: the robot travels along a circle of radius v/ωv/\omega. The center of that circle, the point (0,v/ω)(0, v/\omega) in the starting body frame, is the fixed point s\mathbf{s} of a planar screw motion. Solà, Deray and Atchuthan derive this formula for any twist in se(2)\mathfrak{se}(2) (Solà et al., 2018). For a numerical example, start the robot at (x,y)=(1,2)(x, y) = (1, 2), facing the +y+y direction, so θ0=π/2\theta_0 = \pi/2: T0=[0−11102001].T_0 = \begin{bmatrix} 0 & -1 & 1 \\ 1 & 0 & 2 \\ 0 & 0 & 1 \end{bmatrix} . It drives for Δt=1\Delta t = 1 s at v=1v = 1 m/s while turning left at ω=π/2\omega = \pi/2 rad/s. Then ϕ=π/2\phi = \pi/2, the radius is 2/π≈0.6372/\pi \approx 0.637 m, and exp⁡([Vb] Δt)=[0−12/π102/π001].\exp\big([\mathcal{V}_b]\,\Delta t\big) = \begin{bmatrix} 0 & -1 & 2/\pi \\ 1 & 0 & 2/\pi \\ 0 & 0 & 1 \end{bmatrix} . In its own frame, the robot ends up 0.6370.637 m ahead and 0.6370.637 m to the left, turned by a quarter circle. Multiply on the right of T0T_0 to place this motion in the world: T1=T0exp⁡([Vb] Δt)=[−101−2/π0−12+2/π001]≈[−100.3630−12.637001].T_1 = T_0 \exp\big([\mathcal{V}_b]\,\Delta t\big) = \begin{bmatrix} -1 & 0 & 1 - 2/\pi \\ 0 & -1 & 2 + 2/\pi \\ 0 & 0 & 1 \end{bmatrix} \approx \begin{bmatrix} -1 & 0 & 0.363 \\ 0 & -1 & 2.637 \\ 0 & 0 & 1 \end{bmatrix} . The robot ends at (0.363,2.637)(0.363, 2.637), facing the −x-x direction, so θ1=π\theta_1 = \pi. The new position is not (1,2)(1, 2) plus (0.637,0.637)(0.637, 0.637). The body-frame displacement is first rotated by R(θ0)R(\theta_0), which is the term R1p2R_1 p_2 from the composition of two poses in poses in SE(2). Ahead of the robot is +y+y in the world and to its left is −x-x, so the robot moves 0.6370.637 m in +y+y and 0.6370.637 m in −x-x. The code below builds the two matrices and repeats the update.
You can also reach T1T_1 by integrating the robot’s kinematic model, a set of differential equations for the configuration. Start from the relation in twists in the plane between the body twist and the configuration rate. Its matrix is a rotation, so its inverse is its transpose: θ˙=ωb,x˙=vbxcos⁡θ−vbysin⁡θ,y˙=vbxsin⁡θ+vbycos⁡θ.\dot\theta = \omega_b, \qquad \dot x = v_{bx}\cos\theta - v_{by}\sin\theta, \qquad \dot y = v_{bx}\sin\theta + v_{by}\cos\theta . With vbx=vv_{bx} = v, ωb=ω\omega_b = \omega and the no-slip condition vby=0v_{by} = 0, this becomes x˙=vcos⁡θ,y˙=vsin⁡θ,θ˙=ω.\dot x = v\cos\theta, \qquad \dot y = v\sin\theta, \qquad \dot\theta = \omega . These are ordinary differential equations: they give the rate of change of the configuration at the current configuration. ODEs and the Euler method introduces them. The Euler method integrates them in small steps of length Δt\Delta t: xk+1=xk+Δt vcos⁡θk,yk+1=yk+Δt vsin⁡θk,θk+1=θk+Δt ω.x_{k+1} = x_k + \Delta t\, v\cos\theta_k, \qquad y_{k+1} = y_k + \Delta t\, v\sin\theta_k, \qquad \theta_{k+1} = \theta_k + \Delta t\, \omega . Each Euler step drives straight along the current heading, then turns. The code below integrates the same command with one, ten and a thousand steps and compares each end point with T1T_1.
With one step, Euler drives a meter straight ahead and only then turns, so it ends 0.73 m from T1T_1. Ten steps bring the error down to 7 cm, and a thousand steps to under a millimeter: the error shrinks in proportion to Δt\Delta t, as it does for the rotation example of the ODE page. The exponential needs no steps. For constant vv and ω\omega it is the exact solution of these equations, written as one matrix product. Three objects take part in that product, and they live in different spaces: Twists live in a vector space, so you can add and scale them. Poses live on SE(2), a curved space where they can only be composed. The exponential maps the first into the second. The product updates the position and the heading together, and the result is always a valid pose. Two commands in sequence give T2=T0 e[V1]Δt1e[V2]Δt2T_2 = T_0\, e^{[\mathcal{V}_1]\Delta t_1} e^{[\mathcal{V}_2]\Delta t_2}. The order matters, because the product of two exponentials is in general not the exponential of the sum. Parallel parking chains three such commands. The robot starts at the origin, facing +x+x. It drives an arc to the left, then an arc to the right, then straight back. Each command keeps the twist constant, so each one is a single exponential.
The robot ends at (x,y)=(0,0.5)(x, y) = (0, 0.5) with its starting heading. It has moved half a meter to its left, the direction its wheels forbid at every instant. Configuration space draws the same path in the space of all poses.
The parallel-parking path in the Rerun viewer. Drag the time slider to move the robot along the path, and drag in the 3D view to orbit it. The robot’s frame moves with it: the red axis points forward and the green axis to its left. The path never runs along the green axis. Nonholonomic robots derives (v,ω)(v, \omega) from the wheel speeds and applies this update to odometry. The chassis can point in any direction and reach any position. At each instant, the constraint vby=0v_{by} = 0 allows it to move only forward, backward, or turn.
The TurtleBot runs ROS 2, which stores the same quantities in a different form.
  • Pose. A geometry_msgs/Pose contains a position and an orientation quaternion instead of a matrix TT. A planar heading θ\theta becomes the unit quaternion (x,y,z,w)=(0,0,sin⁡θ2,cos⁡θ2)(x, y, z, w) = (0, 0, \sin\tfrac{\theta}{2}, \cos\tfrac{\theta}{2}). ROS lists the scalar part ww last.
  • Twist. A geometry_msgs/Twist lists the linear velocity before the angular velocity, which reverses the Lynch and Park order. A drive command sets linear.x to vv and angular.z to ω\omega and leaves the other four components at zero.
  • Odometry. A nav_msgs/Odometry message gives the pose in a fixed frame and the twist in the robot’s frame. Its twist is therefore the body twist Vb\mathcal{V}_b.
  • Frames. REP 103 makes every frame right handed, with xx forward, yy left, and zz up on the robot.

Motion in space

Poses in SE(3)

In three dimensions, the rotation RR is a 3×33 \times 3 matrix in SO(3)SO(3) and the position p\mathbf{p} has three coordinates. The pose is a 4×44 \times 4 matrix: T=[Rp01]∈SE(3).T = \begin{bmatrix} R & \mathbf{p} \\ 0 & 1 \end{bmatrix} \in SE(3) . Everything in poses in SE(2) carries over unchanged. The matrix acts on homogeneous coordinates in the same way, the inverse has the same form, and composition again produces the term R1p2R_1 p_2. As a manifold, SE(3) looks like R3×SO(3)\mathbb{R}^3 \times SO(3), a position paired with an orientation. Its group is the semidirect product SE(3)=R3⋊SO(3)SE(3) = \mathbb{R}^3 \rtimes SO(3).

Twists

In three dimensions, the angular velocity is a vector ω∈R3\omega \in \mathbb{R}^3. A twist combines it with the linear velocity in one six-dimensional vector: V=[ωv]∈R6,[V]=[[ω]v00]∈se(3).\mathcal{V} = \begin{bmatrix} \omega \\ v \end{bmatrix} \in \mathbb{R}^6 , \qquad [\mathcal{V}] = \begin{bmatrix} [\omega] & v \\ 0 & 0 \end{bmatrix} \in \mathfrak{se}(3) . se(3)\mathfrak{se}(3) is the Lie algebra of SE(3)SE(3). The body twist and the space twist come from the same products as in the plane, [Vb]=T−1T˙[\mathcal{V}_b] = T^{-1}\dot{T} and [Vs]=T˙T−1[\mathcal{V}_s] = \dot{T} T^{-1}. Their linear parts have the same meaning:
  • vb=R⊤p˙v_b = R^\top \dot{\mathbf{p}} is the velocity of the body-frame origin, written in the coordinates of {b}\{b\}.
  • vs=p˙−ωs×pv_s = \dot{\mathbf{p}} - \omega_s \times \mathbf{p} is the velocity of the point of the body currently at the origin of {s}\{s\}, written in {s}\{s\}.
Unlike in the plane, the angular parts now differ as well: ωs=R ωb\omega_s = R\,\omega_b, because the two frames write the same rotation axis in different coordinates. The adjoint converts between the two twists: [AdT]=[R0[p]RR],Vs=[AdT] Vb.[\mathrm{Ad}_T] = \begin{bmatrix} R & 0 \\ [\mathbf{p}]R & R \end{bmatrix} , \qquad \mathcal{V}_s = [\mathrm{Ad}_T]\,\mathcal{V}_b . Calculus on Lie groups derives this matrix.
Spatial-velocity conventions differ across systems, so integration may require conversion. Warp orders a spatial vector as (angular, linear). PhysX reports the linear velocity of the center of mass and the angular velocity, both in the world frame. The Newton twist conventions compare these and other engines side by side.

Screw motion

Exponential coordinates extend from rotations to poses. Let S=(ω,v)∈R6\mathcal{S} = (\omega, v) \in \mathbb{R}^6 be a screw axis. The displacement by θ\theta along it is e[S]θ=[e[ω]θG(θ)v01],G(θ)=Iθ+(1−cos⁡θ)[ω]+(θ−sin⁡θ)[ω]2.e^{[\mathcal{S}]\theta} = \begin{bmatrix} e^{[\omega]\theta} & G(\theta)v \\ 0 & 1 \end{bmatrix} , \qquad G(\theta) = I\theta + (1 - \cos\theta)[\omega] + (\theta - \sin\theta)[\omega]^2 . Here G(θ)G(\theta) is Lynch and Park’s notation. It is unrelated to the generator GG of Lie I. Given a transformation T=(R,p)T = (R, \mathbf{p}), the matrix logarithm reverses this map. First, log⁡R\log R gives [ω]θ[\omega]\theta. Then v=G(θ)−1pv = G(\theta)^{-1} \mathbf{p}. Thus [S]θ=log⁡T[\mathcal{S}]\theta = \log T. Every pose can be reached by one screw motion, a rotation about an axis combined with a translation along it. This is the three-dimensional form of the planar screw motion, where the axis points out of the page and the translation along it is zero. A body with a constant twist moves along a screw, and the update Tk+1=Tkexp⁡([Vb] Δt)T_{k+1} = T_k \exp\big([\mathcal{V}_b]\,\Delta t\big) from velocity to motion holds unchanged with 4×44 \times 4 matrices.

References

  • Kevin M. Lynch, F. (2017). Modern Robotics. Link
  • Solà, J., Deray, J., Atchuthan, D. (2018). A micro Lie theory for state estimation in robotics. arXiv [cs.RO]. DOI

Found an error on this page? Report an issue.