Algorithm Search⌘K

Theoremcore

Pieper's criterion

Also called spherical wrist solvability.

Pieper showed that a six-joint arm with three consecutive axes that meet in one point has a closed-form inverse kinematics. The condition is sufficient, not necessary.

Pieper's criterion says when the inverse kinematics of an arm with six joints can be solved in closed form. Pieper (1968) showed that if three consecutive joint axes meet in one point, the problem splits into smaller problems, and the hardest of them is a polynomial of degree at most 4. The usual case is an arm whose last three axes meet in a point, the spherical wrist; then the arm has at most 8 solutions for a pose. The criterion is a sufficient condition only. Many arms that do not meet it, such as arms with three parallel axes, also have closed forms. This page proves the case of the spherical wrist.

Statement

Take an arm with six revolute joints, with standard Denavit-Hartenberg parameters (ai,αi,di)(a_i, \alpha_i, d_i). Write Ti=Rz(θi) Tz(di) Tx(ai) Rx(αi)T_i = R_z(\theta_i)\,T_z(d_i)\,T_x(a_i)\,R_x(\alpha_i) and T(θ)=T1⋯T6T(\theta) = T_1 \cdots T_6. Suppose the axes of joints 4, 5 and 6 meet in one point cc. Let the target pose be (R,p)(R, p).

Theorem (Pieper, the case of the last three axes).

  1. The point cc is fixed in link 3, and its target position c∗c^\ast depends only on (R,p)(R, p). The angles (θ1,θ2,θ3)(\theta_1, \theta_2, \theta_3) of a solution are exactly the solutions of the position problem T1T2T3 c3=c∗T_1T_2T_3\,c_3 = c^\ast, where c3c_3 are the coordinates of cc in frame 3.
  2. If the arm and target are general (see the proof), the angle θ3\theta_3 of a solution is a zero of a trigonometric polynomial of degree at most 2 that is not zero everywhere. So there are at most 4 values of θ3\theta_3; with x3=tan⁡(θ3/2)x_3 = \tan(\theta_3/2) they are roots of a polynomial of degree at most 4. Each value gives exactly one (θ1,θ2)(\theta_1, \theta_2), by a linear system and an atan2⁡\operatorname{atan2}.
  3. For each (θ1,θ2,θ3)(\theta_1, \theta_2, \theta_3), if the axes 4 and 5 are not parallel, the axes 5 and 6 are not parallel, and the target direction of axis 6 is not parallel to axis 4, there are at most 2 wrist solutions (θ4,θ5,θ6)(\theta_4, \theta_5, \theta_6), given by Paden-Kahan subproblems 2 and 1.

So such an arm has a closed-form solution, with at most 8 solutions for a general pose.

Pieper's thesis treats any three consecutive axes that meet in a point; the case of the first three axes follows from this one by inverting the chain.

In plain words

If the last three joints all turn about lines through one point, those joints can only turn the hand about that point. They cannot move the point. So the first three joints alone must carry that point to the right place. That is a smaller problem with three unknowns, and it has at most four answers. Then the last three joints must turn the hand to the right direction, and that has at most two answers for each of the four.

Proof

Part 1: the wrist point. A joint moves the two links it connects relative to each other, but every point of its axis stays a common point of both links. The axes of joints 4, 5 and 6 all pass through cc, so cc is one point of links 3, 4, 5 and 6 at once. So cc has constant coordinates c3c_3 in frame 3 and c6c_6 in frame 6, and T1T2T3 c3=T(θ) c6T_1T_2T_3\,c_3 = T(\theta)\,c_6 for every θ\theta. For a solution T(θ)=(R,p)T(\theta) = (R, p), so T1T2T3 c3=R c6+p=:c∗T_1T_2T_3\,c_3 = R\,c_6 + p =: c^\ast, which depends only on the target. Conversely, any solution of the position problem gives a candidate for (θ1,θ2,θ3)(\theta_1, \theta_2, \theta_3), and Part 3 completes it or shows it has no completion.

Part 2: the position problem. We have T3 c3=Rz(θ3) uT_3\,c_3 = R_z(\theta_3)\,u with the constant vector u=(a3,0,d3)+Rx(α3) c3u = (a_3, 0, d_3) + R_x(\alpha_3)\,c_3. Then c∗=Rz(θ1) gc^\ast = R_z(\theta_1)\,g with

g=(a1,0,d1)+Rx(α1) Rz(θ2) h,h=(a2,0,d2)+Rx(α2) Rz(θ3) u.g = (a_1, 0, d_1) + R_x(\alpha_1)\,R_z(\theta_2)\,h, \qquad h = (a_2, 0, d_2) + R_x(\alpha_2)\,R_z(\theta_3)\,u.

Write ci=cos⁡θic_i = \cos\theta_i, si=sin⁡θis_i = \sin\theta_i, and ca1ca_1, sa1sa_1 for the cosine and sine of α1\alpha_1. The vector hh and its squared length ∣h∣2=a22+d22+∣u∣2+2(a2,0,d2)⋅Rx(α2)Rz(θ3)u|h|^2 = a_2^2 + d_2^2 + |u|^2 + 2(a_2, 0, d_2) \cdot R_x(\alpha_2)R_z(\theta_3)u are affine in (c3,s3)(c_3, s_3). A rotation about zz keeps the length and the zz coordinate, so ∣c∗∣2=∣g∣2|c^\ast|^2 = |g|^2 and cz∗=gzc^\ast_z = g_z. Multiplying out, these two equations are

E1: 2a1h1 c2−2a1h2 s2+K=0,E2: sa1h2 c2+sa1h1 s2+L=0,E_1:\ 2a_1h_1\,c_2 - 2a_1h_2\,s_2 + K = 0, \qquad E_2:\ sa_1h_2\,c_2 + sa_1h_1\,s_2 + L = 0,

with K=∣h∣2+a12−d12−∣c∗∣2+2d1cz∗K = |h|^2 + a_1^2 - d_1^2 - |c^\ast|^2 + 2d_1c^\ast_z and L=d1+ca1h3−cz∗L = d_1 + ca_1h_3 - c^\ast_z, both affine in (c3,s3)(c_3, s_3). This is the same computation as on the Raghavan-Roth method page, where u=(a3,0,d3)u = (a_3, 0, d_3).

Call the arm and target general if a1≠0a_1 \ne 0, sa1≠0sa_1 \ne 0, h12+h22>0h_1^2 + h_2^2 > 0 for every θ3\theta_3, (cx∗,cy∗)≠(0,0)(c^\ast_x, c^\ast_y) \ne (0, 0), and the function qq below is not zero everywhere. Write EjE_j as Pjc2+Qjs2+Kj=0P_jc_2 + Q_js_2 + K_j = 0. Then D=P1Q2−P2Q1=2a1sa1(h12+h22)≠0D = P_1Q_2 - P_2Q_1 = 2a_1sa_1(h_1^2 + h_2^2) \ne 0, so by Cramer's rule (c2,s2)=(X/D,Y/D)(c_2, s_2) = (X/D, Y/D) with X=Q1K2−Q2K1X = Q_1K_2 - Q_2K_1 and Y=K1P2−K2P1Y = K_1P_2 - K_2P_1. A θ2\theta_2 exists if and only if X2+Y2=D2X^2 + Y^2 = D^2. The cross terms cancel, and

X2+Y2−D2=(h12+h22) q,q=4a12L2+sa12K2−4a12sa12(h12+h22).X^2 + Y^2 - D^2 = (h_1^2 + h_2^2)\,q, \qquad q = 4a_1^2L^2 + sa_1^2K^2 - 4a_1^2sa_1^2(h_1^2 + h_2^2).

Since h12+h22>0h_1^2 + h_2^2 > 0, the condition on θ3\theta_3 is q=0q = 0. Each of LL, KK, h1h_1, h2h_2 is affine in (c3,s3)(c_3, s_3), so qq is a trigonometric polynomial of degree at most 2. With x3=tan⁡(θ3/2)x_3 = \tan(\theta_3/2), the product (1+x32)2q(1 + x_3^2)^2 q is a polynomial of degree at most 4 in x3x_3, and the angle θ3=π\theta_3 = \pi shows up as a drop of its degree. A trigonometric polynomial of degree 2 that is not zero everywhere has at most 4 zeros in a period, so there are at most 4 values of θ3\theta_3. For each, θ2\theta_2 is unique by Cramer's rule. Then (gx,gy)(g_x, g_y) and (cx∗,cy∗)(c^\ast_x, c^\ast_y) have the same nonzero length, and exactly one θ1\theta_1 modulo 2π2\pi rotates one onto the other: θ1=atan2⁡(cy∗,cx∗)−atan2⁡(gy,gx)\theta_1 = \operatorname{atan2}(c^\ast_y, c^\ast_x) - \operatorname{atan2}(g_y, g_x). A polynomial of degree at most 4 has roots in radicals, so every step is in closed form.

Part 3: the wrist. Use the frame of link 3 for the fixed (θ1,θ2,θ3)(\theta_1, \theta_2, \theta_3), and let ω4\omega_4, ω5\omega_5, ω6\omega_6 be the unit directions of the three wrist axes when θ4=θ5=θ6=0\theta_4 = \theta_5 = \theta_6 = 0, all through cc. The orientation part of the pose equation is eω^4θ4eω^5θ5eω^6θ6=We^{\hat\omega_4\theta_4}e^{\hat\omega_5\theta_5}e^{\hat\omega_6\theta_6} = W with a known rotation WW. Apply both sides to ω6\omega_6, which eω^6θ6e^{\hat\omega_6\theta_6} keeps:

eω^4θ4eω^5θ5 ω6=Wω6.e^{\hat\omega_4\theta_4}e^{\hat\omega_5\theta_5}\,\omega_6 = W\omega_6.

This is subproblem 2 for the point c+ω6c + \omega_6 and two axes through cc. The unit vector z=eω^5θ5ω6=e−ω^4θ4Wω6z = e^{\hat\omega_5\theta_5}\omega_6 = e^{-\hat\omega_4\theta_4}W\omega_6 must lie on two circles of the unit sphere: the circle of vectors with ω5⋅z=ω5⋅ω6\omega_5 \cdot z = \omega_5 \cdot \omega_6 and the circle with ω4⋅z=ω4⋅Wω6\omega_4 \cdot z = \omega_4 \cdot W\omega_6. When ω4\omega_4 and ω5\omega_5 are not parallel, the two circles lie in planes that are not parallel, and they meet in at most 2 points. Each point gives one θ5\theta_5, because ω6\omega_6 is not on axis 5, and one θ4\theta_4, because Wω6W\omega_6 is not on axis 4. So there are at most 2 pairs (θ4,θ5)(\theta_4, \theta_5). For each pair, M=e−ω^5θ5e−ω^4θ4WM = e^{-\hat\omega_5\theta_5}e^{-\hat\omega_4\theta_4}W is a rotation with Mω6=ω6M\omega_6 = \omega_6, so it is a rotation about ω6\omega_6. Take a unit vector vv orthogonal to ω6\omega_6; subproblem 1, eω^6θ6v=Mve^{\hat\omega_6\theta_6}v = Mv, has exactly one solution θ6\theta_6 modulo 2π2\pi. The two rotations eω^6θ6e^{\hat\omega_6\theta_6} and MM about ω6\omega_6 agree on vv, so they are equal, and the full orientation equation holds. With Part 1 the position equation holds as well, since p=c∗−Rc6p = c^\ast - Rc_6 and cc is placed correctly. So each arm solution gives at most 2 full solutions, and the arm has at most 4⋅2=84 \cdot 2 = 8. □\square

Consequences

  • Kinematic decoupling. The proof is the method of kinematic decoupling: solve for the wrist center, then for the wrist angles. For the common wrist with α4=−90°\alpha_4 = -90° and α5=90°\alpha_5 = 90°, Part 3 reduces to ZYZ Euler angles.
  • The first three axes. If the axes of joints 1, 2 and 3 meet in a point, write the inverse pose T(θ)−1=T6−1⋯T1−1T(\theta)^{-1} = T_6^{-1} \cdots T_1^{-1}; it is the pose of a chain that runs from the hand to the base, whose last three axes meet, and the theorem applies to it.
  • Industrial arms. Most six-axis industrial arms are built with a spherical wrist so that this theorem applies and the controller can use a fast closed form.
  • Wrist singularity. The hypothesis of Part 3 fails when axis 6 lines up with axis 4; then only θ4+θ6\theta_4 + \theta_6 is fixed, a kinematic singularity with infinitely many solutions.

Tightness

  • The bound 8 is reached. Take the 3R arm of the Raghavan-Roth example, (ai,αi,di)=(0.5 m,120°,0.5 m)(a_i, \alpha_i, d_i) = (0.5\text{ m}, 120°, 0.5\text{ m}), (0.5 m,30°,1.0 m)(0.5\text{ m}, 30°, 1.0\text{ m}), (1.5 m,0°,0 m)(1.5\text{ m}, 0°, 0\text{ m}), and add a spherical wrist with rows (0,−90°,0)(0, -90°, 0), (0,90°,0)(0, 90°, 0), (0,0°,0)(0, 0°, 0). The pose made by the joint vector (1,−0.5,−1,0.4,0.8,−0.3)(1, -0.5, -1, 0.4, 0.8, -0.3) rad has the wrist point at (0.209252,1.203738,−1.059310)(0.209252, 1.203738, -1.059310) m. The four arm solutions of that page each give two wrist solutions, for example (1,−0.5,−1,0.4,0.8,−0.3)(1, -0.5, -1, 0.4, 0.8, -0.3) and (1,−0.5,−1,−2.741593,−0.8,2.841593)(1, -0.5, -1, -2.741593, -0.8, 2.841593) rad. All 8 joint vectors reproduce the pose to about 10−1510^{-15}.
  • The condition is not necessary. An arm with three consecutive parallel axes also has a closed form, by planar geometry or by subproblems; Elias and Wen (2025) give closed forms for many such families. Textbooks sometimes treat parallel axes as axes that meet at a point at infinity, but Pieper's proof does not cover that case.
  • The general arm. Without such special geometry the best known reduction is a polynomial of degree 16, see the 16 solutions theorem and the Raghavan-Roth method.
  • The general conditions matter. If a1=0a_1 = 0 or sin⁡α1=0\sin\alpha_1 = 0, Part 2 splits into simpler equations, and if the wrist point lies on axis 1, θ1\theta_1 is free and there are infinitely many solutions.

History

Pieper studied the kinematics of computer-controlled arms in his Stanford thesis of 1968. He showed that an arm with three consecutive intersecting axes has a closed-form solution, built on a quartic, and noted that the general six-joint arm was much harder. Paden (1986) and later Murray, Li and Sastry (1994) recast these solutions as sequences of subproblems in the product of exponentials form. Elias and Wen (2025) extend the subproblem approach to arms with parallel axes and to arms that need a one-dimensional search.

References

  1. Donald L. Pieper, The kinematics of manipulators under computer control, Stanford Artificial Intelligence Project Memo AIM-72 (PhD thesis), Stanford University, 1968, Sections 3.3.3 to 3.3.8, the closed-form solutions for arms with three intersecting axes
  2. Richard M. Murray, Zexiang Li and S. Shankar Sastry, A Mathematical Introduction to Robotic Manipulation, CRC Press, 1994, Section 3.3, inverse kinematics by the Paden-Kahan subproblems
  3. Mark W. Spong, Seth Hutchinson and M. Vidyasagar, Robot Modeling and Control, second edition, Wiley, 2020, Section 5.2, Kinematic Decoupling
  4. Alexander J. Elias and John T. Wen, IK-Geo, Unified robot inverse kinematics using subproblem decomposition, Mechanism and Machine Theory, 2025, the closed-form and one-dimensional search solutions for 6R arms with intersecting or parallel axes (general locator)

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