Robot Calibration Cell: Troubleshooting
Every row on this page happened on the cell described in the case study. In our experience, the symptom was rarely where the cause was: a baseline that came out wrong was a lens model, a “noisy lens” was the corner detector, and a clean robot run was the wrong program. The tables are grouped by where the symptom shows.
The robot
Section titled “The robot”| Symptom | Cause | Fix |
|---|---|---|
| Model says a pose is clear; on the arm the camera or its cable touches the robot | The collision check covered the target, stand and floor but not the robot’s own links; the cable and its support were not in the model | Check the camera body and a generous box for cable and plug against every robot link, on every pose and along every move. Require new poses to keep at least the clearance of a path that has already run. See Camera path |
| A new path is “inside the joint ranges of the old one” and still collides | Ranges per joint say nothing about combinations: a far view of the target folds the wrist back onto the arm | Judge poses by distances between bodies, never by joint ranges |
| Joint moves the opposite way from the model | The model’s sign convention is not the controller’s | A slow program that moves one joint at a time by a few degrees while someone watches, before anything else runs. Keep one sign and one offset per joint in a file |
| The run is clean but the stills do not match the plan | Another program was enabled on the pendant, or two were | Decide from the joint log which program ran: see Robot programs |
| After a stop part-way, the next run gives half the stills | The controller resumes the program where it stopped | Start only from the loading position; the station refuses elsewhere |
| The robot’s state on screen is fine; the start command fails or the values never change | The network link died when the controller restarted and the last values were still shown | Time-stamp every reading; treat an old one as none; reopen the link |
| Speed is 100 % when a slow first run was intended | The controller came back from a restart at full speed | Read the speed and say it before every remote start; refuse a never-run program above a low limit |
| A swing path planned at 12 degrees moves 1 to 2 degrees on the arm | The controller blends closely spaced points | Few, large, well separated targets: one per half swing |
| The whole stand shakes during the swing path | The base is not stiff enough for the excitation | Half speed; shorter legs or a stiffer base. Re-measure the target’s position after any change to the stand |
| The pendant shows the USB stick but not the file on it | Not found. A second stick worked | Keep two sticks |
The recording
Section titled “The recording”| Symptom | Cause | Fix |
|---|---|---|
| The robot ran, there is no video | The camera dropped off USB; the program still believed it was recording | Before starting the robot, check that the recording file is growing |
| Half the expected frames | The camera has a 30 / 60 frames-per-second switch | Measure the frame rate from the recording before the robot starts |
| Pictures brighter and blurred after re-plugging the camera | The camera returns to automatic exposure when plugged in | Lock the exposure after every plug-in |
| Stills picked from the video are blurred, or stops are missed | Stills were picked by comparing frames: in compressed video static frames are identical and slow motion looks still | Pick by the gyroscope: see Recording and stills |
| No stills at all from a long recording | The gyroscope bias was taken from the first seconds, when the robot was already moving | Take the bias from the steadiest moments of the whole recording |
| Every camera has the same serial number | The USB descriptor’s serial is the same on every unit | Find where the unit’s own serial is stored (here a vendor-specific camera control) and read that |
| The window freezes with the camera plugged in | The camera is on the bus but answers no control request; each request waits seconds | Timeouts, calls off the user-interface thread, and re-attach the USB device |
Corners and the solve
Section titled “Corners and the solve”| Symptom | Cause | Fix |
|---|---|---|
| Error at the edge of a fisheye of 1 to 2 px while the centre is 0.3 px | Too few corners at the edge, and the corner detector is poor on tags that are small and stretched | Plan poses for the edge of the image; refine each corner in a small undistorted view; drop corners that fail the check instead of keeping them unrefined |
| One lens looks two to three times noisier than the other | The detector on that image, not the lens: sharpness and pixel noise were the same | Same refinement; compare sharpness directly before blaming the lens |
| Baseline off by more than a millimetre, pixel error fine | A lens model without decentering terms moves the second camera to absorb an off-centre lens | A model with tangential terms; read the stereo gate only with such a model |
| The calibration tool crashes on wide-angle views with “needs at least 6 points” | Views with 4 or 5 usable corners pass the tool’s own guard and fail in the pose solver | Raise the guard to 6 points. See The solve |
| Error depends on distance at the edge, and no richer model fixes it | The lens is not central: its viewpoint moves along the axis with the ray angle (2.8 mm by 90 degrees on ours) | Accept a central model as exact at the calibration distance, or solve a viewpoint shift |
| A smooth pattern in the mean residual per target corner | The target is not flat (ours bowed 0.5 mm) | Solve a few shape terms for the target with the lenses |
| Two halves of one run agree to 0.006 mm on the baseline | The halves share their poses, so they share their errors | Bootstrap over stills: 0.06 mm on the same data |
| A seeded “fast” solve passes on the camera it was tuned on and fails on the next | Corners were predicted from another unit’s lens | For a new unit, detect tags first and fit that unit’s own lenses, then refine. Validate any shortcut on several units |
| A lower error on a second take, with fewer image cells covered | Less coverage is easier to fit | Rank takes by coverage first, then error |
Camera to IMU
Section titled “Camera to IMU”| Symptom | Cause | Fix |
|---|---|---|
| The time offset changes when the exposure changes (minus 3.9 ms at 7 ms, minus 2.0 ms at 1.5 ms) | The frame’s time stamp sits at a fixed place in the exposure | Record the exposure with the offset; calibrate at the exposure used in the field |
| Two solvers agree on rotation and offset and disagree by 15 mm on the IMU’s position | Blurred frames at long exposure and a shaking base | More light and shorter exposure first; then judge the position by the accelerometer residual against its signal |
| Gyroscope and accelerometer scales unknown | The range configured in the camera is not in the datasheet | Measure both against the robot’s known motion; the length of gravity must come out at 9.81 m/s^2 |
The station and the people
Section titled “The station and the people”| Symptom | Cause | Fix |
|---|---|---|
| A rule everyone agreed on is broken the first time the engineer is away | The rule lived in a conversation | Put it in the station: it refuses, and says why |
| The technician is alarmed by a red FAIL on a camera that will ship | The screen showed a verdict where a note was meant | Amber “CHECK” with one line of reason; keep verdict words out of anything a customer receives |
| Nobody can tell which of several takes is a camera’s calibration | Every take of every camera was kept and copied about | One take per camera on file; a folder per serial with exactly the files to hand over |
| The disk fills | About 1 GB of video per take | Delete the video of a take that passed; keep the last take that did not, for reprocessing |
| The layout breaks when the monitor is changed | Fixed pixel sizes | Size the preview from the screen |
Sources
Section titled “Sources”- Kalibr — ETH Zurich ASL, software.
- TartanCalib — Duisterhof et al., software; the wide-angle corner refinement idea is from its paper.