Skip to the content
FixTheRobot Explore Robotics / Manipulator Basics / Theory / 14

Manipulator Basics · Theory · Module 14 of 14

14 — Robot Calibration and Accuracy

A robot can return to the same spot within a few hundredths of a millimetre and still miss a CAD-defined point by a millimetre or more. Learn why accuracy and repeatability differ, where the errors come from, and how kinematic, TCP, base-frame and hand-eye calibration fix them.

  • Advanced
  • About 7 minutes to read
  • 1 linked lab

Robots programmed by teaching only need repeatability. Robots programmed from CAD, vision or offline tools also need absolute accuracy, and that takes calibration.

Learning objectives

After this module you should be able to:

  • Define accuracy and repeatability and explain why they can differ by an order of magnitude.
  • List the main sources of positioning error and which ones calibration can correct.
  • Set up kinematic parameter identification as a least-squares problem.
  • Calibrate a TCP by pivoting about a fixed point, and a base or user frame from measured points.
  • Explain the hand-eye calibration problem AX = XB.

Conceptual explanation

Accuracy and repeatability

Repeatability is how closely the robot returns to the same commanded pose, time after time: the spread of the cloud of reached points. Accuracy is how close the mean of that cloud is to the commanded pose in space. ISO 9283 defines both measurements. Industrial arms typically have repeatability of a few hundredths of a millimetre, while their uncalibrated absolute accuracy is often of the order of a millimetre: the robot is consistent, but its model of itself is slightly wrong.

Sources of error

  • Geometric (about 90% of the static error on many arms): link lengths and offsets, joint zero offsets, axis misalignments, the TCP and the base frame. They are constant, so calibration can identify and correct them.
  • Non-geometric: joint and link compliance under load, gear backlash and transmission errors, and thermal growth. These are only partly correctable, with extended models and warm-up procedures.
  • Measurement and process: fixture tolerances, part variation, sensor noise.

The calibration family

Kinds of calibration in a robot cell.
CalibrationWhat it findsTypical method
Kinematic (robot) calibrationcorrections to the DH or other model parametersmeasure the tool at many poses with a laser tracker; least-squares identification
TCP calibrationthe tool frame relative to the flangetouch one fixed point from several orientations (pivot); or measure the tool directly
Base / user-frame calibrationthe robot base relative to the world, or a fixture frame relative to the robottouch or measure three or more known points; best-fit rigid transform
Hand-eye calibrationa camera relative to the flange (eye in hand) or to the base (eye to hand)observe a calibration target from several robot poses; solve AX = XB

Practise the effect of joint offsets and length errors in Lab 04, and the cost of a wrong TCP in the capstone, where step 3 asks you to find the real tool length.

Mathematical formulation

Kinematic identification: the measured tool positions yky_k at configurations qkq_k depend on the parameters ϕ\phi (nominal ϕ0\phi_0 plus an error δϕ\delta\phi):

  1. yk=f(qk,ϕ0+δϕ)+εk≈f(qk,ϕ0)+Jϕ(qk) δϕ+εky_k = f(q_k, \phi_0 + \delta\phi) + \varepsilon_k \approx f(q_k, \phi_0) + J_\phi(q_k)\,\delta\phi + \varepsilon_k

    Linearise in the parameter errors; Jφ is the identification Jacobian.

  2. δϕ=arg⁡min⁡∑k∥yk−f(qk,ϕ0)−Jϕ(qk) δϕ∥2=(ATA)−1ATb\delta\phi = \arg\min \sum_k \| y_k - f(q_k, \phi_0) - J_\phi(q_k)\,\delta\phi \|^2 = (A^{T}A)^{-1}A^{T}b

    Stack all poses into A and b and solve by least squares; iterate (Gauss–Newton) until it converges.

  3. κ(A) small  ⟺  well-chosen poses\kappa(A) \text{ small} \iff \text{well-chosen poses}

    Poses must excite every parameter: if A is ill-conditioned, some errors cannot be told apart.

TCP by pivoting: with the tool tip held on one fixed point pp from several flange poses (Ri,pi)(R_i, p_i):

Pivot calibration (6 unknowns, 3 equations per pose)
Ri t+pi=p  ⟺  [Ri−I][tp]=−pi,i=1…nR_i\, t + p_i = p \;\Longleftrightarrow\; \begin{bmatrix} R_i & -I \end{bmatrix}\begin{bmatrix} t \\ p \end{bmatrix} = -p_i, \qquad i = 1 \dots n

Best-fit rigid transform (Kabsch / Arun) between points aka_k in one frame and bkb_k in another: centre both sets, form H=∑(ak−aˉ)(bk−bˉ)TH = \sum (a_k - \bar a)(b_k - \bar b)^{T}, take H=UΣVTH = U\Sigma V^{T}, then R=V diag(1,1,det⁡VUT) UTR = V\,\mathrm{diag}(1, 1, \det VU^{T})\,U^{T} and t=bˉ−Raˉt = \bar b - R\bar a.

Hand-eye: for two robot poses, the flange motion AA and the camera motion BB (observed from the target) satisfy AX=XBAX = XB, where XX is the unknown camera-to-flange transform. Several motions with non-parallel rotation axes determine XX (Tsai–Lenz, Park–Martin).

Diagrams

Accuracy versus repeatabilityFour targets: the cross is the commanded pose, the dots are repeated measured poses. Repeatability is the spread of the dots; accuracy is the distance from their mean to the cross.Accurate, repeatablethe goalRepeatable, inaccuratetypical uncalibrated robotAccurate on averagenot repeatableNeitherworn or loose robot
Repeatability is how tightly repeated moves to the same command cluster; accuracy is how close the cluster is to where the model said the tool would be. Industrial arms are typically far more repeatable than accurate, which is why calibration (correcting the model) pays off.

Worked examples

Example 1: consistent but wrong

A 2R arm (0.4 m and 0.3 m) has small hidden errors: joint zero offsets of 0.3° and −0.2°, and link lengths off by +0.8 mm and −0.5 mm. Each move adds 0.02 mm of random scatter. Commanding q=(30°,60°)q = (30°, 60°) thirty times:

Simulated: the robot is about 40 times more repeatable than accurate.
MeasureValue
Repeatability (largest distance from the mean)0.049 mm
Accuracy (mean distance from the nominal point)1.92 mm

Example 2: identifying the errors

Measure the tool at 12 random configurations (with the same 0.02 mm noise) and solve for the four parameter errors by Gauss–Newton least squares:

Parameter identification from simulated measurements.
ParameterTrue errorIdentified
joint-1 zero offset0.300°0.298°
joint-2 zero offset-0.200°-0.199°
link-1 length error0.80 mm0.80 mm
link-2 length error-0.50 mm-0.51 mm

Over 200 new test configurations, the mean position error falls from 2.33 mm (worst 2.97 mm) with the nominal model to 0.012 mm (worst 0.018 mm) with the identified one, close to the measurement noise.

Example 3: TCP calibration by pivoting

Touch a fixed point with the tool tip from six flange orientations (tilts up to 25°), each touch-up within ±0.1 mm. Solving the stacked pivot equations by least squares gives the TCP t=(4.02, −3.03, 104.96)t = (4.02,\ -3.03,\ 104.96) mm, against the true (4.0, −3.0, 105.0)(4.0,\ -3.0,\ 105.0) mm: an error of 0.05 mm. The fixed point itself comes out as a by-product at (450.0, 100.0, 50.0)(450.0,\ 100.0,\ 50.0) mm. With all tilts about one axis the system becomes ill-conditioned, so orientations must vary in at least two directions.

Example 4: where is the robot in the cell?

Four points known in the robot base frame (touched with the calibrated TCP) are measured in the world frame by a tracker with ±0.15 mm noise. The best-fit rigid transform gives a base yaw of 32.013°32.013° (true 32°) and a position of (1.2000, 0.4499, 0.0202)(1.2000,\ 0.4499,\ 0.0202) m (true (1.2000, 0.4500, 0.0200)), with a largest residual of 0.10 mm.

Interactive experiment

Interactive kinematic error of a 2R arm (needs JavaScript).

Add a joint-1 zero offset and a link-2 length error: the real arm (solid) separates from the nominal model (ghost), and the tool error and its parts are shown.

Real-world applications

  • Offline programming and CAD-to-path (machining, drilling, sealing) need absolute accuracy, so robots are calibrated with laser trackers, often to well under a millimetre.
  • Tool changes and crashes: automatic TCP measurement stations re-check the tool after every change or collision.
  • User frames on fixtures let one program serve several identical cells or a moved fixture: re-teach three points instead of every point.
  • Vision-guided picking depends on hand-eye calibration: a 1° error at 0.5 m is about 9 mm at the part.
  • ROS 2: the URDF holds the nominal kinematics; calibrated joint offsets and frames are usually applied through the robot driver or calibrated description files, and hand-eye results are published as a static TF transform.

Related: Module 05 (the parameters being identified) and Module 06 (how joint errors move the tool).

Common mistakes

Confusing repeatability with accuracy

A datasheet repeatability of 0.02 mm says nothing about how close the robot gets to a CAD point.

Calibrating with poor poses

If all poses are similar, the identification matrix is ill-conditioned and some parameters are unobservable or wildly wrong. Spread poses over the workspace and orientations.

Pivoting about one axis only

If every tilt is about the same axis, the TCP component along that axis is undetermined.

Ignoring temperature and load

Thermal growth and deflection under payload change the geometry. Calibrate in operating conditions, or model them.

Forgetting to re-check after changes

A collision, motor replacement or re-mastering invalidates joint offsets and the TCP. Re-verify before production.

Key takeaways

  1. Repeatability is precision; accuracy is trueness. Robots are usually much more repeatable than accurate.
  2. Most static error is geometric and correctable by identifying the model parameters by least squares.
  3. TCP: pivot about a fixed point. Base or user frame: best-fit rigid transform from three or more points. Camera: AX = XB.
  4. Good calibration depends on well-chosen, diverse poses and on the measurement quality.

Knowledge check

Write an answer to each question, then reveal the explanation. Your answers stay in your browser.

Question 1

A robot has 0.03 mm repeatability and 1.2 mm accuracy. Programs taught by hand work well; programs from CAD miss. Why?

Explanation

Teaching records the robot's own joint values, so only repeatability matters. CAD programs rely on the model mapping coordinates to joints, which is off by about 1.2 mm.

Question 2

Why does pivot calibration need several orientations, and what if all tilts are about one axis?

Explanation

Each pose gives 3 equations for 6 unknowns, so at least two poses with different orientations are needed (more for noise). With tilts about one axis, the TCP component along that axis cannot be determined.

Question 3

What is the minimum number of non-collinear points needed to fix a frame, and why use more?

Explanation

Three non-collinear points fix the rotation and translation; more points average out measurement noise and reveal outliers through the residuals.

Question 4

In AX = XB, what are A, B and X for an eye-in-hand camera?

Explanation

A: the flange motion between two poses (from the robot); B: the camera motion between the same poses (from observing the target); X: the fixed camera-to-flange transform being sought.

Practise it in the labs

Then test yourself in practice exercises and challenge mode.

References and further reading

  • ISO 9283:1998, Manipulating industrial robots — Performance criteria and related test methods.
  • K. S. Arun, T. S. Huang and S. D. Blostein, "Least-squares fitting of two 3-D point sets", IEEE Transactions on Pattern Analysis and Machine Intelligence, 9(5), 1987.
  • R. Y. Tsai and R. K. Lenz, "A new technique for fully autonomous and efficient 3D robotics hand/eye calibration", IEEE Transactions on Robotics and Automation, 5(3), 1989.
  • B. Mooring, Z. Roth and M. Driels, Fundamentals of Manipulator Calibration, Wiley, 1991.