---
title: Rigid motions
part: geometry
order: 7
summary: The rigid motions and the extended poses are semidirect products of the rotations with translations; their chart translates the identity's on the left, so that its translation coordinates are in the frame of the point, and their exponential couples translation to rotation through the left Jacobian.
depends_on: [rotations, product-manifold]
katex_macros:
    '\Exp': '\operatorname{Exp}'
    '\Log': '\operatorname{Log}'
    '\rv': '\operatorname{rv}'
    '\Ad': '\operatorname{Ad}'
---

# Rigid motions

A rigid motion is a rotation and a translation: the pose of a body, or the change of coordinates between two frames.
An extended pose adds a velocity.
Both are groups built on the [rotations](/math/rotations.md), and this note gives them a retraction, their group's maps, and their exponential.
The quaternion product $\otimes$, the covering $\pi$, the exponential $\Exp$ and its Jacobians $J_l$ and $J_r$ are those of that note, and tangent coordinates are ordered rotation first.

## The groups

A rigid motion is a pair $(q, p)$ of a unit quaternion and a vector of $\R^3$, with the product

$$
	(q_1, p_1)(q_2, p_2) = \bigl(q_1 \otimes q_2,\ p_1 + \pi(q_1)\, p_2\bigr) , @tag(product)
$$

the identity $(1, 0)$ and the inverse $(\bar q, -\pi(q)\transpose p)$.
It acts on a point as $x \mapsto \pi(q)\, x + p$, so that the product is composition: the motion $(q, p)$ takes coordinates in the body's frame to coordinates in the outer frame, $p$ is where the body is, and $\pi(q)$ is how it is turned.
This is the semidirect product $S^3 \ltimes \R^3$, and up to the sign of its quaternion, $(q, p) \mapsto (-q, p)$, it is the group $SE(3)$ of rigid motions, a [quotient](/math/quotient-manifold.md) as the rotations are.
Its dimension is $6$.
As a homogeneous matrix it is

$$
	\begin{bmatrix} \pi(q) & p \\ 0 & 1 \end{bmatrix} ,
$$

whose product is [](eq:product) and whose action on $(x, 1)$ is the action on the point $x$.

An *extended pose* is a triple $(q, v, p)$, with the velocity carried as the position is:

$$
	(q_1, v_1, p_1)(q_2, v_2, p_2) = \bigl(q_1 \otimes q_2,\ v_1 + \pi(q_1)\, v_2,\ p_1 + \pi(q_1)\, p_2\bigr) .
$$

Up to sign this is the group $SE_2(3)$, of dimension $9$, the state of a body whose attitude, velocity and position are estimated together.

## The chart

The groups are not [products](/math/product-manifold.md) of the rotations with a Euclidean space as groups, though they are as manifolds, and they have a retraction of their own.

> **Proposition (The charts of the rigid motions).** Let $q \oplus \phi$ be a retraction of the rotations that is the left translation of its chart at the identity, $q \oplus \phi = q \otimes (1 \oplus \phi)$, with inverse $q' \ominus q$.
> On the rigid motions let
>
> $$
> 	(q, p) \oplus (\phi, \rho) = \bigl(q \oplus \phi,\ p + \pi(q)\, \rho\bigr),
> $$
>
> and on the extended poses let
>
> $$
> 	(q, v, p) \oplus (\phi, \eta, \rho) = \bigl(q \oplus \phi,\ v + \pi(q)\, \eta,\ p + \pi(q)\, \rho\bigr).
> $$
>
> Each is a retraction, the left translation by the point of the chart at the identity, with the inverse
>
> $$
> 	(q', p') \ominus (q, p) = \bigl(q' \ominus q,\ \pi(q)\transpose (p' - p)\bigr)
> $$
>
> and likewise for $v$, defined wherever the rotations' inverse is.
> Its domain is the rotation chart's domain times the whole of the translations' coordinates, and with the Cayley chart of the rotations it is unchanged by the sign of either quaternion.

<Proof>

The product of $(q, p)$ and $(1 \oplus \phi, \rho)$ is $(q \otimes (1 \oplus \phi),\ p + \pi(q)\, \rho)$, the chart, and likewise for the extended pose; at $(\phi, \rho) = 0$ it is $(q, p)$.
Its derivative there is the identity once the tangent space at $(q, p)$ is identified with $\R^6$ by the rotation's coordinates and the translation's coordinates in the frame of the point, which is the identification the left translation carries from the identity.
For fixed $(q, p)$ the chart is the rotation's chart in its first coordinates and the affine map $\rho \mapsto p + \pi(q)\, \rho$ of $\R^3$ onto itself in the rest, which gives its domain and its inverse.
With the Cayley chart, $(-q) \oplus \phi = -(q \oplus \phi)$ and $q' \ominus q$ is unchanged by either sign, and the rest reads the quaternion only through $\pi$, with $\pi(-q) = \pi(q)$.

</Proof>

With the Cayley chart, then, this is a retraction on $SE(3)$ and on $SE_2(3)$ themselves, by [%full](statement:math/quotient-manifold/descent), defined on all of $\R^6$ or $\R^9$ and missing only the motions whose rotation is a half-turn from the point's.

The translation coordinates are in the frame of the point: a step $\rho$ moves the position along the body's own axes.
That is how the error of an odometer or of a scan matcher is given, and it is what the group's left translation produces.
A pose whose position's error is given in a fixed frame is a different manifold with a retraction, the product of the rotations with $\R^3$, whose chart is $(q \oplus \phi,\ p + \rho)$.
The two have the same points, and the identity between them is a change of chart: the product's coordinates $(\phi, \rho)$ reach $(q \oplus \phi,\ p + \rho)$, whose coordinates in the motion's chart are $(\phi,\ \pi(q)\transpose \rho)$, so the [derivative in charts](/math/retraction.md#derivatives-through-the-retraction) of the identity from the product to the motion is $\operatorname{diag}(I, \pi(q)\transpose)$.

## The maps of the group

With $R = \pi(q)$, the maps a computation needs of a rigid motion are these.

| map | of | as |
| --- | --- | --- |
| composition | $T_1, T_2$ | $(q_1 \otimes q_2,\ p_1 + R_1 p_2)$ |
| inverse | $T$ | $(\bar q,\ -R\transpose p)$ |
| relative motion | $T_1, T_2$ | $T_1^{-1} T_2 = (\bar q_1 \otimes q_2,\ R_1\transpose (p_2 - p_1))$ |
| action on a point | $T, x$ | $R x + p$ |
| action on a direction | $T, x$ | $R x$ |
| inverse action | $T, x$ | $R\transpose (x - p)$ |

Each is smooth, and each is a map of $SE(3)$: the sign of a quaternion changes at most the sign of the result's.
The relative motion $T_1^{-1} T_2$ is the second pose seen from the first, which is what an odometer measures between two poses and what a camera measures of a landmark.

The *adjoint* is the conjugation of the group's Lie algebra, $T \Exp(\xi)\, T^{-1} = \Exp(\Ad(T)\, \xi)$, and carries a perturbation in the frame of the motion to the outer frame, $T \oplus \xi = (1 \oplus \Ad(T)\, \xi)\, T + O(\lvert \xi \rvert^2)$.
In the order $(\phi, \rho)$ it is

$$
	\Ad(q, p) = \begin{bmatrix} R & 0 \\ [p]_\times R & R \end{bmatrix}, @tag(adjoint)
$$

which many references write with the blocks the other way about, their translation first.
Unlike the rotations' [](eq:math/rotations/conjugation), the relation holds to first order only, since the chart is not the exponential.

## The exponential and the logarithm

The exponential is the motion at a constant body twist $(\phi, \rho)$, rotating at the rate $\phi$ while translating at the body velocity $\rho$, for unit time, and the logarithm is its inverse:

$$
	\Exp(\phi, \rho) = \bigl(\Exp \phi,\ J_l(\phi)\, \rho\bigr)
$$

and

$$
	\Log(q, p) = \bigl(\phi,\ J_l(\phi)^{-1} p\bigr), \qquad \phi = \Log q, @tag(exponential)
$$

the logarithm defined for $q \ne -1$.
A pose moving at constant body rates $(\omega, v)$ for a time $\Delta t$ moves from $T_k$ to $T_{k+1} = T_k\, \Exp(\omega\, \Delta t,\ v\, \Delta t)$, exactly.
With the rotation vector $\rv$ of the shorter turn in place of $\Log$, the logarithm is a map of $SE(3)$, discontinuous at the half-turns as on the rotations.

The exponential couples the translation to the rotation through the left Jacobian, and the chart of [%full](statement:charts) does not.
In exponential coordinates a step from $(q, p)$ reaches $(q \otimes \Exp \phi,\ p + R\, J_l(\phi)\, \rho)$, and

$$
	J_l(\phi)\, \rho = \rho + \tfrac12\, \phi \times \rho + O(\lvert \phi \rvert^2 \lvert \rho \rvert) ,
$$

so the two agree to first order and differ at second order by the term $\tfrac12 \phi \times \rho$.
First derivatives read in the chart are therefore the Jacobians of the textbooks, as on the rotations ([%full](statement:math/rotations/agreement)); second derivatives are not, and are the chart's own.

The motions' Jacobians, with $\Exp(\xi + \varepsilon) = \Exp(\mathcal J_l(\xi)\, \varepsilon)\, \Exp(\xi) = \Exp(\xi)\, \Exp(\mathcal J_r(\xi)\, \varepsilon)$ to first order, are in the order $(\phi, \rho)$

$$
	\mathcal J_l(\phi, \rho) = \begin{bmatrix} J_l(\phi) & 0 \\ Q(\phi, \rho) & J_l(\phi) \end{bmatrix},
	\qquad
	\mathcal J_r(\phi, \rho) = \mathcal J_l(-\phi, -\rho),
	\qquad
	\mathcal J_l^{-1} = \begin{bmatrix} J_l^{-1} & 0 \\ -J_l^{-1} Q\, J_l^{-1} & J_l^{-1} \end{bmatrix}, @tag(jacobians)
$$

with $\Phi = [\phi]_\times$, $\Psi = [\rho]_\times$, $\theta = \lvert \phi \rvert$ and

$$
	Q(\phi, \rho) = \tfrac12 \Psi + B\, (\Phi \Psi + \Psi \Phi + \Phi \Psi \Phi)
	+ D\, (\Phi^2 \Psi + \Psi \Phi^2 - 3\, \Phi \Psi \Phi)
	+ E\, (\Phi \Psi \Phi^2 + \Phi^2 \Psi \Phi) , @tag(q)
$$

where $B$ is the coefficient of [](eq:math/rotations/jacobians) and

$$
	D = \frac{\theta^2 + 2 \cos \theta - 2}{2 \theta^4},
	\qquad
	E = \frac{2\theta - 3 \sin \theta + \theta \cos \theta}{2 \theta^5} .
$$

This is the block of the textbooks written translation first, moved below the diagonal by the order of the coordinates here.
Like the rotations' coefficients, $D$ and $E$ are smooth, with closed forms that divide by a power of $\theta$.

## Interpolation

Two interpolations between $T_1$ and $T_2$ are in use:

$$
	T_1\, \Exp\bigl(t \Log(T_1^{-1} T_2)\bigr)
	\qquad\text{and}\qquad
	\bigl(q_1 \otimes \Exp(t \Log(\bar q_1 \otimes q_2)),\ (1 - t)\, p_1 + t\, p_2\bigr) . @tag(interpolation)
$$

The first is the screw motion at a constant twist, the one-parameter subgroup through $T_1^{-1} T_2$ carried to $T_1$.
The second interpolates the rotation along its geodesic and the position along a straight line, the geodesic of the product.
Each comes with $\rv$ in place of $\Log$ for the shorter turn.

## Extended poses

The extended poses have the same maps, with the velocity carried as the position is: the composition $(q_1 \otimes q_2,\ v_1 + R_1 v_2,\ p_1 + R_1 p_2)$, the inverse $(\bar q,\ -R\transpose v,\ -R\transpose p)$, the relative motion likewise, the exponential $(\Exp \phi,\ J_l(\phi)\, \eta,\ J_l(\phi)\, \rho)$ and its logarithm, the left Jacobian with the blocks $J_l(\phi)$ on its diagonal and $Q(\phi, \eta)$ and $Q(\phi, \rho)$ below it in its first column, and in the order $(\phi, \eta, \rho)$ the adjoint

$$
	\Ad(q, v, p) = \begin{bmatrix} R & 0 & 0 \\ [v]_\times R & R & 0 \\ [p]_\times R & 0 & R \end{bmatrix} . @tag(extended-adjoint)
$$

Their action on points is that of their pose $(q, p)$.
As a matrix an extended pose is the $5 \times 5$ one with the columns $(R, v, p)$ over the rows $(0, 1, 0)$ and $(0, 0, 1)$.
