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.
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
| Calibration | What it finds | Typical method |
|---|---|---|
| Kinematic (robot) calibration | corrections to the DH or other model parameters | measure the tool at many poses with a laser tracker; least-squares identification |
| TCP calibration | the tool frame relative to the flange | touch one fixed point from several orientations (pivot); or measure the tool directly |
| Base / user-frame calibration | the robot base relative to the world, or a fixture frame relative to the robot | touch or measure three or more known points; best-fit rigid transform |
| Hand-eye calibration | a 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 at configurations depend on the parameters (nominal plus an error ):
Linearise in the parameter errors; Jφ is the identification Jacobian.
Stack all poses into A and b and solve by least squares; iterate (Gauss–Newton) until it converges.
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 from several flange poses :
Best-fit rigid transform (Kabsch / Arun) between points in one frame and in another: centre both sets, form , take , then and .
Hand-eye: for two robot poses, the flange motion and the camera motion (observed from the target) satisfy , where is the unknown camera-to-flange transform. Several motions with non-parallel rotation axes determine (Tsai–Lenz, Park–Martin).
Diagrams
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 thirty times:
| Measure | Value |
|---|---|
| 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 | True error | Identified |
|---|---|---|
| joint-1 zero offset | 0.300° | 0.298° |
| joint-2 zero offset | -0.200° | -0.199° |
| link-1 length error | 0.80 mm | 0.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 mm, against the true mm: an error of 0.05 mm. The fixed point itself comes out as a by-product at 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 (true 32°) and a position of 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).
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
- Repeatability is precision; accuracy is trueness. Robots are usually much more repeatable than accurate.
- Most static error is geometric and correctable by identifying the model parameters by least squares.
- TCP: pivot about a fixed point. Base or user frame: best-fit rigid transform from three or more points. Camera: AX = XB.
- 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.