Algorithm Search⌘K

Definitionadvanced

Cayley parameterization of rotations

Also called Gibbs vector, Cayley-Gibbs-Rodrigues parameters.

The rotation (I - [c])^-1 (I + [c]) of a vector c = tan(theta/2) times the axis, a rational three-parameter chart of SO(3) that misses only the half turns.

The Cayley parameters describe a rotation by one vector c∈R3c \in \mathbb{R}^3, the unit axis ω^\hat\omega times tan⁡θ2\tan\frac\theta2, where θ\theta is the angle of rotation. The rotation matrix is R=(I−[c])−1(I+[c])R = (I - [c])^{-1}(I + [c]), a rational function of cc with no sines or cosines, and the inverse is c=vee⁡(R−RT)/(1+tr⁡R)c = \operatorname{vee}(R - R^{\mathsf T})/(1 + \operatorname{tr} R). The chart is one-to-one and smooth on all of R3\mathbb{R}^3, but it misses the rotations by π\pi, where tan⁡θ2\tan\frac\theta2 is infinite. The vector is also called the Gibbs vector or the Rodrigues parameters; it equals the vector part of a unit quaternion divided by its scalar part.

Notation on this page: rotations are active, quaternions are in the Hamilton convention with the scalar first, and [c][c] is the skew-symmetric matrix of cc, so that [c]v=c×v[c]v = c \times v; vee is its inverse.

Definition

Definition. The Cayley map is

cay⁡(c)=(I−[c])−1(I+[c])=I+21+∣c∣2([c]+[c]2),c∈R3.\operatorname{cay}(c) = (I - [c])^{-1}(I + [c]) = I + \frac{2}{1 + |c|^2}\big([c] + [c]^2\big), \qquad c \in \mathbb{R}^3 .

The Cayley parameters of a rotation RR in the special orthogonal group SO(3) are the vector cc with cay⁡(c)=R\operatorname{cay}(c) = R.

The basic facts are:

  • It is a rotation. I−[c]I - [c] is invertible for every cc, because the eigenvalues of [c][c] are 00 and ±i∣c∣\pm i|c|. The factors I−[c]I - [c] and I+[c]I + [c] commute, and (I+[c])T=I−[c](I + [c])^{\mathsf T} = I - [c], so cay⁡(c)Tcay⁡(c)=I\operatorname{cay}(c)^{\mathsf T}\operatorname{cay}(c) = I. The determinant is 1, because cay⁡(0)=I\operatorname{cay}(0) = I and R3\mathbb{R}^3 is connected.
  • Axis and angle. With c=tan⁡θ2 ω^c = \tan\frac\theta2\,\hat\omega, the second form of the map is I+sin⁡θ [ω^]+(1−cos⁡θ)[ω^]2I + \sin\theta\,[\hat\omega] + (1 - \cos\theta)[\hat\omega]^2, which is Rodrigues' formula, because 2tan⁡θ2/(1+tan⁡2θ2)=sin⁡θ2\tan\frac\theta2/(1 + \tan^2\frac\theta2) = \sin\theta and 2tan⁡2θ2/(1+tan⁡2θ2)=1−cos⁡θ2\tan^2\frac\theta2/(1 + \tan^2\frac\theta2) = 1 - \cos\theta. So cc is the rotation by θ=2arctan⁡∣c∣\theta = 2\arctan|c| about c/∣c∣c/|c|, with θ∈[0,π)\theta \in [0, \pi).
  • Inverse. For tr⁡R≠−1\operatorname{tr} R \ne -1, that is θ≠π\theta \ne \pi,
    [c]=(R−I)(R+I)−1,c=11+tr⁡R(r32−r23r13−r31r21−r12).[c] = (R - I)(R + I)^{-1}, \qquad c = \frac{1}{1 + \operatorname{tr} R}\begin{pmatrix} r_{32} - r_{23} \\ r_{13} - r_{31} \\ r_{21} - r_{12} \end{pmatrix}.
    The second formula follows from R−RT=2sin⁡θ [ω^]R - R^{\mathsf T} = 2\sin\theta\,[\hat\omega] and 1+tr⁡R=2(1+cos⁡θ)1 + \operatorname{tr} R = 2(1 + \cos\theta).
  • The image. cay⁡\operatorname{cay} is a one-to-one map of R3\mathbb{R}^3 onto the rotations with tr⁡R>−1\operatorname{tr} R > -1, which are all rotations except the half turns. Its derivative has full rank everywhere. This is one of the three ways of failing that Stuelpnagel's theorem allows: one-to-one and nonsingular, but not onto.
  • Quaternions. If q=(w,u)q = (w, u) is a unit quaternion of RR with w≠0w \ne 0, then c=u/wc = u/w. Conversely q=(1,c)/1+∣c∣2q = (1, c)/\sqrt{1 + |c|^2}. The half turns are exactly the rotations with w=0w = 0.
  • Composition. If R1=cay⁡(c1)R_1 = \operatorname{cay}(c_1), R2=cay⁡(c2)R_2 = \operatorname{cay}(c_2) and c1⋅c2≠1c_1 \cdot c_2 \ne 1, then
    R1R2=cay⁡(c1+c2+c1×c21−c1⋅c2).R_1 R_2 = \operatorname{cay}\Big(\frac{c_1 + c_2 + c_1 \times c_2}{1 - c_1 \cdot c_2}\Big).
    This is the quaternion product (1,c1)(1,c2)=(1−c1⋅c2,  c1+c2+c1×c2)(1, c_1)(1, c_2) = (1 - c_1 \cdot c_2,\; c_1 + c_2 + c_1 \times c_2), divided by its scalar part. When c1⋅c2=1c_1 \cdot c_2 = 1, the product is a half turn.

The order of the factors. The factors of cay⁡(c)\operatorname{cay}(c) commute, so (I−[c])−1(I+[c])=(I+[c])(I−[c])−1(I - [c])^{-1}(I + [c]) = (I + [c])(I - [c])^{-1}. The other order of the signs, (I−[c])(I+[c])−1(I - [c])(I + [c])^{-1}, is cay⁡(−c)\operatorname{cay}(-c), the rotation by −θ-\theta. Lynch and Park, Appendix B.4, define the parameters as ω^tan⁡θ2\hat\omega\tan\frac\theta2 in equation B.16, but write the matrix in equations B.17 and B.18 in the second form, so their formulas give the inverse rotation; with c=(1,0,0)c = (1, 0, 0) their form gives the turn by −90°-90° about xx. Stuelpnagel also writes the second form, (I−S)(I+S)−1(I - S)(I + S)^{-1}; in every form, the half turns are the rotations that the chart misses. Before using a formula from a source, check it on one example.

Examples and non-examples

  • A quarter turn. c=(1,0,0)c = (1, 0, 0) gives θ=2arctan⁡1=90°\theta = 2\arctan 1 = 90° about xx, and cay⁡(c)=Rx(90°)\operatorname{cay}(c) = R_x(90°), with rows (1,0,0)(1, 0, 0), (0,0,−1)(0, 0, -1), (0,1,0)(0, 1, 0).
  • Rational entries. c=(0.5,0,0)c = (0.5, 0, 0) gives the rows (1,0,0)(1, 0, 0), (0,0.6,−0.8)(0, 0.6, -0.8), (0,0.8,0.6)(0, 0.8, 0.6), a rotation by 53.130°53.130° about xx. Every rational cc gives a rotation with rational entries.
  • The cyclic rotation. (x,y,z)↦(z,x,y)(x, y, z) \mapsto (z, x, y) is the rotation by 120°120° about (1,1,1)/3(1, 1, 1)/\sqrt3, so c=tan⁡60°⋅(1,1,1)/3=(1,1,1)c = \tan 60° \cdot (1, 1, 1)/\sqrt3 = (1, 1, 1). The inverse formula agrees: tr⁡R=0\operatorname{tr} R = 0, and (r32−r23,r13−r31,r21−r12)=(1,1,1)(r_{32} - r_{23}, r_{13} - r_{31}, r_{21} - r_{12}) = (1, 1, 1).
  • Composition. c1=(0,0,1)c_1 = (0, 0, 1) is the quarter turn about zz and c2=(1,0,0)c_2 = (1, 0, 0) the quarter turn about xx. Then c1⋅c2=0c_1 \cdot c_2 = 0 and c1+c2+c1×c2=(1,0,1)+(0,1,0)=(1,1,1)c_1 + c_2 + c_1 \times c_2 = (1, 0, 1) + (0, 1, 0) = (1, 1, 1), so Rz(90°)Rx(90°)R_z(90°)R_x(90°) is the cyclic rotation above.
  • Non-example: the half turn. R=diag⁡(1,−1,−1)R = \operatorname{diag}(1, -1, -1), the turn by π\pi about xx, has tr⁡R=−1\operatorname{tr} R = -1, so the inverse formula divides by zero. Along c=(t,0,0)c = (t, 0, 0) the angle is 2arctan⁡t2\arctan t: 168.58°168.58° at t=10t = 10 and 178.85°178.85° at t=100t = 100. The half turn has no Cayley parameters.
  • Non-example: the angle as the length. ∣c∣|c| is tan⁡θ2\tan\frac\theta2, not θ\theta. For small angles c≈θ2ω^c \approx \frac\theta2\hat\omega, half of the exponential coordinates of the logarithm map, and a code that mixes the two is wrong by a factor of 2.
  • Unit quaternion. cc is the quaternion in homogeneous form, u/wu/w. Quaternions have no singular rotation, at the price of a fourth number and a sign.
  • Axis-angle representation and Rodrigues' formula. The exponential coordinates θω^\theta\hat\omega use the angle itself; the Cayley parameters use tan⁡θ2\tan\frac\theta2 and avoid all trigonometric functions.
  • Modified Rodrigues parameters. The vector tan⁡θ4 ω^\tan\frac\theta4\,\hat\omega, which is singular only at θ=2π\theta = 2\pi; with the switch to the parameters of −q-q, it covers every rotation with a bounded vector.
  • The Cayley transform. In any dimension, S↦(I−S)−1(I+S)S \mapsto (I - S)^{-1}(I + S) maps the skew-symmetric matrices one-to-one onto the orthogonal matrices with determinant 1 and no eigenvalue −1-1. Cayley gave it in 1846.
  • Wahba's problem and the QUEST algorithm. QUEST solves for the attitude in Cayley parameters, which reduces the eigenvector problem of the q-method to a linear system.

References

  1. Arthur Cayley, Sur quelques propriétés des déterminants gauches, Journal für die reine und angewandte Mathematik 32, 119-123, 1846, the whole paper (orthogonal matrices built from skew-symmetric matrices)
  2. Kevin M. Lynch and Frank C. Park, Modern Robotics, Mechanics, Planning, and Control, Cambridge University Press, 2017, Appendix B, Section B.4 (Cayley-Rodrigues parameters, equations B.16 to B.18)
  3. John Stuelpnagel, On the parametrization of the three-dimensional rotation group, SIAM Review 6(4), 422-430, 1964, Section 6 (three-dimensional parametrizations, the Cayley form and the rotations with trace -1)

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/XV896C/text.yaml