Skip to content

Record the dataset

Step 2 of the walkthrough. Here you record takes the solver can use.

  • You need: the board from step 1, set up and measured.
  • You get: one bag (recording file) per take. Step 3 calibrates the cameras from it.
  • Check: each take passes the rules in section 1, and the solve in steps 3 and 4 converges.

A calibration can only find what the motion shows it. The 60 s motion below turns the rig about every axis and sweeps the board across the whole image.

We built it from a real hand-held recording with our Looper Insight 9. Then we checked it on a digital twin: a simulated copy of that rig, with realistic noise, which we record, solve and compare with the known truth. A motion is good if the twin still converges on every calibration parameter, that is, the solve settles on the true value within its uncertainty.

  • About 60 s long. 50 s also works.
  • Fill the frame. Cover the image out to its corners. The lens distortion is only pinned down where the board was seen. On a wide lens this matters most; see Wide lenses.
  • Vary distance and angle. Move in and out, and turn the rig about every axis.
  • No motion blur. Use enough light for a short exposure (about 2 ms).
  • Rest at both ends. Hold still for about 3 s at the start and at the end.

 

1 Watch it once2 Practise each move3 Follow along with your rig

0.0 s

Space play · ←/→ move · R repeat · F full screen · Esc exit practice

Sensor traces (gyro, accelerometer)
IMU xyz

The fine wobble is natural hand shake; do not add it on purpose.

Pick the chip for your board, then follow the Now panel. It names the move, says what to do, counts down and shows what comes next. The camera card on the right shows what the camera sees, and which parts of the image are still empty.

Chessboard motion: the same four moves, built from our chessboard example. It swings less, comes in only to 0.28 m and turns only a little in the loop, so the whole board stays in view. It also passes the twin.

Do the moves in order and blend each into the next. Keep a comfortable hand pace: at most about 0.4 m/s and 1.9 rad/s.

#MoveTimeWhat to do
0Rest0–3 sHold still in front of the board and count to 3.
1Left–right + turn3–20 sSwing left and right round the board, 2 times. At each end, turn the camera a little past facing the board, so the board slides to the left or right edge of the picture. Turn round sharply.
2Up–down + tilt20–32 sMove up and down, 2 times. Tilt the camera a little past the board, so the board reaches the top or bottom edge of the picture.
3In–out + twist32–47 sMove in to 0.22 m and out to 0.52 m, 3 times. Twist the camera about its view axis like a steering wheel: one way coming in, the other way going out. Hold the board off-centre, so the twist carries it into the corners.
4Loop + twist47–57 sMove round a loop parallel to the board, about 43 cm across, 2 times. Turn the camera a little against the loop and twist it a little, once per loop, so the board runs into every corner.
5Rest57–60 sHold still and count to 3.
  • Vary the speed on every sweep: push through the middle, brake into the ends.
  • Keep most of the board in view. An AprilGrid may run partly off the edge; a chessboard may not.
  • Do not add shake. The natural wobble of a hand is all the motion needs.

The VI-Rig 4 IMUs + 4 cameras set has 15 takes, 4imus_4cams_01.bag to 4imus_4cams_15.bag. The dataset page lists every sensor with its topic, rate and shutter.

  • Download: calibench-vi/datasets → virig-4imus-4cams on the Hub. Access is gated.
  • Which file: use 4imus_4cams_NN.bag. In it, the ELP image stamps sit on the camera’s own clock. The 4imus_4cams_NN_raw.bag next to it is the recording as captured, with the ELP driver’s stamps. Moving the stamps drops the ELP frames that cannot be matched to the camera clock, so the ELP rate in 4imus_4cams_NN.bag is about 20–22 Hz.
  • Board config: the AprilGrid target file april.yaml sits next to the bags.
  1. Record the 60 s motion with your rig. For 50 s, drop one in–out and one loop. Note where you record (the city, or latitude and altitude): step 4 sets the local gravity from it, with the Local gravity calculator.
  2. Calibrate the cameras with the board block from step 1: step 3: camera-only calibration.
  3. Calibrate cameras and IMUs together and read the result: step 4: camera–IMU calibration.

Two hand-held recordings of our Looper Insight 9, solved with MVIS. Both pass the twin. The cards show the corners MVIS detected in each of the three cameras, drawn without the camera images.

 

Watch the path and the corners each camera detected

0.0 s

Space play · ←/→ move · R repeat · F full screen

Sensor traces (gyro, accelerometer)
IMU xyz

Both move faster than the guide motion. At a comfortable pace, follow the 60 s guide.

Each of these leaves some parameters loose: the solve cannot pin them down.

  • Fast shaking from one spot, face-on: the lens distortion stays loose.
  • One slow axis at a time, never tilted: the lever arm (where the camera sits relative to the IMU), the time offsets and the IMU scales stay loose.
  • A missing rotation (no tilt, no twist, or only turning left–right): the matching gyroscope and accelerometer scales, or the whole camera–IMU rotation, cannot be found.
  • The board always in the centre: the image edges are never seen, so the distortion stays loose.

Wide lenses: take the board to the image edge

Section titled “Wide lenses: take the board to the image edge”

On a fisheye lens, a recording with the board only near the image centre gives a wrong calibration that looks fine.

  • What goes wrong: the lens position along its own axis and the focal length trade against each other. On a dual-fisheye 360° camera, recordings with 95 % of the corners within 52° of the lens axis put each lens 2 to 3 mm too far in, with the focal length 0.6 to 0.8 % too long.
  • You get no warning: the solve converges, the recordings repeat, and the reprojection error is smaller than in the correct solves.
  • What to do: in the same recording, take the board from the image centre out to the image edge, on all sides. Turn the camera until the board is cut off by the edge of the image, then come back.
  • How to check: look at the coverage picture after the solve. Corners should reach the edge of the lens’s image circle. Then compare two recordings with different coverage, not two repeats of the same motion.
  • Two lenses back to back: record each lens with the board in front of it. A lens that sees the board only at its edge is not well calibrated by that recording.

The measurements are on Why take the board to the image edge.

The twin is a simulated Looper Insight 9 in front of the board, with realistic corner and IMU noise, motion blur and dropped detections.

We solved each motion on 3 noise draws and once without noise. Each solve estimated tgat_{ga} (the time offset between the gyroscope and the accelerometer) and left the camera intrinsics (focal length, image centre and lens distortion) free.

A motion is good if, on all 22 parameters:

  • every solve converges;
  • every error stays within its uncertainty;
  • every uncertainty is at most 3 × that of a well-excited 80 s reference motion.

The 22 parameters are the camera–IMU rotation and lever arm, tdt_d (the camera–IMU time offset), tgat_{ga}, the gyroscope and accelerometer scales, and the camera intrinsics.

To run the same kind of check on your own calibration, see step 7: digital-twin check.

Run our motions through your own simulator and calibration tool with the replay pack (zip, 3.2 MB). It holds:

  • the four motions at 200 Hz: IMU pose, ideal gyroscope and accelerometer;
  • the two twin rigs: camera, IMU, truth, noise and detection rules;
  • our twin results, with the pass rule.

Its README gives the frames, units and replay steps. The files are plain CSV, YAML and JSON, so you do not need MVIS to use them. We ran the twin with the MVIS simulator (mvis.simulation).

Licence: see License; the README in the pack states it too.