Algorithm Search⌘K

Problemadvanced

Kinematic calibration

Also called robot calibration.

Estimate the true link parameters of a robot from measured end effector poses, so that its forward kinematics model matches the real arm. It is a nonlinear least squares problem.

Kinematic calibration finds the true values of the geometric parameters of a robot: the link lengths, the twists and offsets between joint axes, the zero positions of the joints, and the frames of the base and the tool. The controller computes the pose of the tool with forward kinematics, using the values from the drawings. Small errors in manufacture and assembly make the real pose differ from this prediction, often by a millimeter or more on an industrial arm, even though the arm returns to a taught pose much more precisely. Calibration moves the arm to many poses, measures the tool with an external sensor, and fits the parameters by nonlinear least squares. The main questions are which parameters the data can determine (identifiability), how to choose the poses, and which model of the arm to use.

In plain words

A robot computes where its hand is from its joint angles and from the lengths of its parts. If a part is a little longer than the drawing says, the robot thinks its hand is in one place when it is really a little to the side.

To fix this, move the robot to many positions and measure where the hand really is, for example with a laser tracker. Then adjust the lengths and angles in the robot's model until its predictions match the measurements as closely as possible.

Some errors cannot be told apart. If the whole robot is turned a little on the floor, or its first joint reads a little off, every measurement changes in the same way. Then only the sum of the two errors can be found, and the model must keep only one of them.

Definition

Model. A forward kinematics map T(q; ϕ)∈SE(3)T(q;\, \phi) \in SE(3) of the joint values q∈Rnq \in \mathbb{R}^n and the parameter vector ϕ∈RN\phi \in \mathbb{R}^N. The parameters can be the Denavit-Hartenberg parameters plus joint offsets and the base and tool frames, or the joint screws and home pose of the product of exponentials. The nominal value is ϕ0\phi_0.

Data. KK joint vectors q1,…,qKq_1, \dots, q_K and the measurements y1,…,yKy_1, \dots, y_K of the tool at those joint values. A measurement can be a full pose (m=6m = 6 numbers), a position (m=3m = 3), or less.

Problem. Find

ϕ^=arg⁡min⁡ϕ∑k=1K∥yk−h(qk; ϕ)∥2,\hat\phi = \arg\min_{\phi} \sum_{k=1}^{K} \big\| y_k - h(q_k;\, \phi) \big\|^2 ,

where h(q;ϕ)h(q;\phi) is the part of T(q;ϕ)T(q;\phi) that the sensor measures. The norm can be weighted to put positions and angles on the same scale.

Identification Jacobian. Stack the derivatives ∂h(qk;ϕ)/∂ϕ\partial h(q_k; \phi) / \partial \phi for all kk into the Km×NKm \times N matrix Φ(ϕ)\Phi(\phi).

Identifiability. If Φ(ϕ∗)\Phi(\phi^\ast) has full column rank NN at the true parameters ϕ∗\phi^\ast, then ϕ∗\phi^\ast is locally identifiable: no other parameter vector near ϕ∗\phi^\ast gives the same noise-free measurements. Proof: the map ϕ↦(h(qk;ϕ))k\phi \mapsto (h(q_k;\phi))_k has an injective derivative at ϕ∗\phi^\ast, so it is an immersion and is injective on a neighborhood of ϕ∗\phi^\ast. ■\blacksquare If some column of Φ\Phi is a combination of others for every choice of poses, the parameter set is redundant and must be reduced. If the rank is low only for the chosen poses, more or better poses are needed. This is the same question as observability in control.

Complete and minimal models. A model is complete if it can describe every real arm close to the nominal one, and minimal if no parameter is redundant. Everett, Driels and Mooring (1987) showed that a complete and minimal model of an arm with RR revolute and PP prismatic joints has

N=4R+2P+6N = 4R + 2P + 6

independent parameters when the full pose of the tool is measured. For a 6R arm, N=30N = 30. With position measurement only, the 3 parameters of the tool orientation do not affect the data, and 27 parameters remain.

Variants

variant what is measured notes
open loop, full pose position and orientation of the tool 6 equations per pose
open loop, position only tool position, for example by a laser tracker 3 equations per pose; the tool orientation is not identifiable
closed loop, self calibration none outside; the tool is held on a point, a plane or a sphere the constraint gives the equations; Hollerbach and Wampler (1996) count the equations each pose gives, their calibration index, to classify such methods
parallel robots leg lengths and the measured platform pose the residual can be written in the leg lengths, which needs only the closed form inverse kinematics
non-geometric errors as above joint compliance, gear errors and heat are outside the kinematic model; some methods add terms for them

The DH model near parallel axes. For two nominally parallel joint axes, the DH offset did_i is set by the common normal. A tilt of one axis by a small angle ε\varepsilon moves the common normal far along the axis, so did_i changes by an amount of order 1/ε1/\varepsilon, and the model is not a continuous function of the real geometry. Hayati (1983) and Hayati and Mirmirani (1985) replace did_i by a small rotation βi\beta_i about the yy axis for such joints. The CPC model of Zhuang, Roth and Hamano (1992) is complete and parametrically continuous for all axis layouts. A product of exponentials model is also continuous in this sense, because a small change of a joint axis is a small change of its screw.

Examples

A planar 2R arm, worked by hand. The nominal link lengths are L1=L2=1L_1 = L_2 = 1 m and the true ones are L1=1.02L_1 = 1.02 m and L2=0.97L_2 = 0.97 m. The tip is

p(q)=L1(cos⁡q1,sin⁡q1)+L2(cos⁡(q1+q2),sin⁡(q1+q2)),p(q) = L_1 (\cos q_1, \sin q_1) + L_2 (\cos(q_1 + q_2), \sin(q_1 + q_2)),

which is linear in (L1,L2)(L_1, L_2), so here the least squares problem is linear and one step of Gauss-Newton solves it.

  • At q=(0,0)q = (0, 0) the measured tip is (1.99,0)(1.99, 0); the nominal model predicts (2,0)(2, 0). The rows of Φ\Phi are (1,1)(1, 1) and (0,0)(0, 0).
  • At q=(0,π/2)q = (0, \pi/2) the measured tip is (1.02,0.97)(1.02, 0.97); the nominal model predicts (1,1)(1, 1). The rows are (1,0)(1, 0) and (0,1)(0, 1).

With both poses, Φ⊤Φ=(2112)\Phi^\top \Phi = \begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix} and Φ⊤y=(1.99+1.02, 1.99+0.97)=(3.01,2.96)\Phi^\top y = (1.99 + 1.02,\ 1.99 + 0.97) = (3.01, 2.96). Solving gives L1=(2⋅3.01−2.96)/3=1.02L_1 = (2 \cdot 3.01 - 2.96)/3 = 1.02 and L2=(2⋅2.96−3.01)/3=0.97L_2 = (2 \cdot 2.96 - 3.01)/3 = 0.97, the true values.

With the first pose only, Φ\Phi has rank 1: the data fix L1+L2=1.99L_1 + L_2 = 1.99 and nothing else. A stretched arm cannot tell its two links apart, so the poses must be chosen with care.

Two parameters that cannot be separated. Add to the same arm a rotation β\beta of the base about the vertical axis and an offset δ1\delta_1 of the zero of joint 1. The tip depends only on q1+β+δ1q_1 + \beta + \delta_1, so the columns of Φ\Phi for β\beta and δ1\delta_1 are equal at every pose. No choice of poses makes them identifiable, and a minimal model keeps only their sum.

Known algorithms

Costs are in the real RAM model for KK poses, nn joints and N=O(n)N = O(n) parameters.

step method cost
residuals and Φ\Phi forward kinematics and its derivative in the parameters, pose by pose O(Kn2)O(K n^2) by a direct method, O(Kn)O(K n) with prefix and suffix products
one iteration Gauss-Newton: form Φ⊤Φ\Phi^\top\Phi and solve, or use the QR decomposition of Φ\Phi O(Kn2+n3)O(K n^2 + n^3)
robust iteration Levenberg-Marquardt, with a damping term the same per iteration
redundant parameters find the dependent columns with the singular value decomposition or QR with pivoting, and remove them O(Kn2+n3)O(K n^2 + n^3)
pose selection choose poses that make the smallest singular value, or the condition number, of Φ\Phi good heuristic search

Gauss-Newton converges locally, and quadratically when the residual at the solution is zero. The nominal parameters are usually a good start because the errors are small, but that is an observation about practice, not a theorem.

Bounds

  • Number of measurements (counting). The noise-free equations h(qk;ϕ)=ykh(q_k;\phi) = y_k can determine NN parameters only if Km≥NK m \ge N. For a 6R arm this means at least 5 full poses (5⋅6=305 \cdot 6 = 30) or at least 9 positions (9⋅3=279 \cdot 3 = 27). In practice many more poses are used, to average the noise.
  • Number of parameters. 4R+2P+64R + 2P + 6 for a complete and minimal model with full pose data (Everett, Driels and Mooring 1987).
  • Accuracy of the estimate. For the linearized problem with independent noise of variance σ2\sigma^2 in each measured number, the least squares estimate has covariance σ2(Φ⊤Φ)−1\sigma^2 (\Phi^\top \Phi)^{-1}. So a small singular value of Φ\Phi means a large error in some combination of the parameters.

Reductions

  • To nonlinear least squares. The problem is an instance of nonlinear least squares with a structured Jacobian, one block of rows per pose.
  • From dynamic identification. Dynamic parameter identification estimates masses and inertias and is linear in its parameters, so one linear least squares solve suffices. Its counterpart of a minimal model is the set of base inertial parameters. Kinematic calibration is nonlinear in its parameters, because they enter through sines, cosines and products of transforms.
  • To linear least squares, near the nominal model. Linearize at ϕ0\phi_0: yk−h(qk;ϕ0)≈Φk(ϕ0) Δϕy_k - h(q_k;\phi_0) \approx \Phi_k(\phi_0)\, \Delta\phi. One solve of this linear problem is one Gauss-Newton step, and for small errors one or two steps are often enough.

Applications

Offline programming, where robot programs are generated from a CAD model and run without teaching each pose by hand, needs an arm whose absolute pose is accurate, not only repeatable. So do robots that are guided by external sensors, robots in machining and drilling, and robots replaced in a cell without reteaching. Calibration is also a step in the manufacture of many industrial arms, and the identified parameters are stored in the controller.

References

  1. J. M. Hollerbach and C. W. Wampler, The calibration index and taxonomy for robot kinematic calibration methods, International Journal of Robotics Research 15(6), 1996, pages 573 to 591, the count of equations per pose and the classification of open loop and closed loop calibration methods
  2. S. A. Hayati, Robot arm geometric link parameter estimation, Proceedings of the 22nd IEEE Conference on Decision and Control, 1983, pages 1477 to 1483, the failure of the DH parameters for nearly parallel joint axes, and an extra rotation for such joints
  3. S. Hayati and M. Mirmirani, Improving the absolute positioning accuracy of robot manipulators, Journal of Robotic Systems 2(4), 1985, pages 397 to 413, the modified link model and its use for calibration
  4. H. Zhuang, Z. S. Roth and F. Hamano, A complete and parametrically continuous kinematic model for robot manipulators, IEEE Transactions on Robotics and Automation 8(4), 1992, pages 451 to 463, the CPC model
  5. L. J. Everett, M. Driels and B. W. Mooring, Kinematic modelling for robot calibration, Proceedings of the 1987 IEEE International Conference on Robotics and Automation, Raleigh, the number of independent kinematic parameters, 4R + 2P + 6 (general locator)
  6. B. W. Mooring, Z. S. Roth and M. R. Driels, Fundamentals of Manipulator Calibration, Wiley, 1991, modeling, measurement, identification and compensation (general locator)
  7. Bruno Siciliano, Lorenzo Sciavicco, Luigi Villani and Giuseppe Oriolo, Robotics, Modelling, Planning and Control, Springer, 2009, Section 2.11, Kinematic Calibration

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)
WritingW2 basic
  • a known algorithm
  • a contract.yaml