# Kalibr File Reference: Every Field, One by One

> Every field in Kalibr's camchain.yaml, camchain-imucam.yaml, imu.yaml and target.yaml, plus the results file, the report, the camera and distortion models and the command-line tools, each with its meaning, units and what goes wrong when it is wrong.

Page: https://egocam.ai/kalibr/kalibr-file-reference/

[Kalibr](https://github.com/ethz-asl/kalibr) is the open-source calibration toolbox from ETH Zurich's Autonomous Systems Lab. Its [wiki](https://github.com/ethz-asl/kalibr/wiki) lists what it solves: multi-camera calibration, camera–IMU calibration, multi-IMU calibration and rolling-shutter camera calibration. Everything it reads and writes is a small YAML file, and most of what goes wrong with Kalibr is a wrong number in one of them.

This page goes through every field in those files, one at a time. For the ideas behind them (intrinsics, extrinsics, distortion, IMU noise), start with the [camera calibration guide](https://egocam.ai/calibration/camera-calibration/) and the [IMU calibration guide](https://egocam.ai/calibration/imu-calibration/). For the order to do things in, see the [Kalibr workflow](https://egocam.ai/kalibr/kalibr-workflow/).

The field names and checks below were read from the Kalibr wiki and from the Kalibr source code (the `master` branch, commit `1f60227`, March 2024). Where the wiki and the code differ, the code wins and the difference is noted.

## The files at a glance

| File | Written by | Read by | What it holds |
|---|---|---|---|
| `target.yaml` | you | every calibration tool | the calibration board's type and dimensions |
| `imu.yaml` (input) | you | `kalibr_calibrate_imu_camera` | the IMU's noise values, rate and ROS topic |
| `<bag>-camchain.yaml` | `kalibr_calibrate_cameras` | `kalibr_calibrate_imu_camera`, `kalibr_camera_validator` | each camera's model, intrinsics, distortion, resolution, topic, and the camera-to-camera transforms |
| `<bag>-camchain-imucam.yaml` | `kalibr_calibrate_imu_camera` | your own software | the camchain plus each camera's IMU transform and time shift |
| `<bag>-imu.yaml` (output) | `kalibr_calibrate_imu_camera` | your own software | the IMU's noise values plus its model, pose and time offset, and its intrinsics if you asked for them |
| `<bag>-results-cam.txt`, `<bag>-results-imucam.txt` | the two calibrators | you | the result summary in text |
| `<bag>-report-cam.pdf`, `<bag>-report-imucam.pdf` | the two calibrators | you | the plots |

The file names in the table are the ones the source writes: the bag's name comes first (for example `cam_april-camchain.yaml`). The wiki writes them the other way round, as `camchain-%BAGNAME%.yaml`.

## How Kalibr names transforms

Every transform in Kalibr is a 4×4 homogeneous matrix written as `T_a_b`. **`T_a_b` takes a point expressed in frame b and returns the same point expressed in frame a.** The [YAML formats page](https://github.com/ethz-asl/kalibr/wiki/Yaml-formats) says it in its own words: `T_cn_cnm1` for cam1 is `T_c1_c0`, which "takes cam0 to cam1 coordinates", and `T_cam_imu` is the "transformation from IMU to camera coordinates (T_c_i)". The source code uses the same convention, with comments such as "T_cN_b: from imu to camera N coords", and it computes the camera's view of the target as `T_c_w = T_cN_b * T_b_w`.

> **Diagram:** How Kalibr names its transforms. T_a_b takes a point given in frame b and returns it in frame a. Each camera block in camchain-imucam.yaml stores T_cam_imu (IMU to that camera), and every camera after cam0 stores T_cn_cnm1 (the previous camera to this one, so cam1 holds T_c1_c0).

What follows from that is plain matrix algebra:

- **The layout.** The top-left 3×3 block is the rotation R, the right-hand column is the translation t, and the bottom row is `[0, 0, 0, 1]`. A point moves as `p_a = R · p_b + t`.
- **Units.** Translations are in metres.
- **The translation is frame b's origin, seen from frame a.** In `T_cam_imu`, t is where the IMU sits in camera coordinates, not where the camera sits in IMU coordinates.
- **Inverting.** `T_b_a` is the inverse of `T_a_b`: rotation Rᵀ, translation −Rᵀt. The camera–IMU results file prints both directions, labelled `T_ci` and `T_ic`.
- **Chaining.** Inner indices cancel: `T_c1_imu = T_c1_c0 · T_c0_imu`. Kalibr builds each camera's IMU transform this way along the chain.

Reading a transform the wrong way round is an easy mistake, and nothing warns you. A quick check is to compare the translation with a ruler: the [RealSense tutorial on the Kalibr wiki](https://github.com/ethz-asl/kalibr/wiki/Calibrating-Intel-RealSense-Cameras) says to "Sanity check your final rotation and translation with hand-measured values."

## camchain.yaml: one block per camera

The camera chain file has one top-level key per camera, `cam0`, `cam1` and so on, in the order the topics were given to `kalibr_calibrate_cameras`. The [multiple-camera guide](https://github.com/ethz-asl/kalibr/wiki/multiple-camera-calibration) says the order of `--topics` and `--models` "determine[s] the internal camera numbering in the output". cam0 is the base of the chain.

This is the wiki's example, cut to its first two cameras:

```yaml
# Example values, from the Kalibr wiki's YAML formats page
cam0:
  camera_model: pinhole
  intrinsics: [461.629, 460.152, 362.680, 246.049]
  distortion_model: radtan
  distortion_coeffs: [-0.27695497, 0.06712482, 0.00087538, 0.00011556]
  T_cam_imu:
  - [0.01779318, 0.99967549,-0.01822936, 0.07008565]
  - [-0.9998017, 0.01795239, 0.00860714,-0.01771023]
  - [0.00893160, 0.01807260, 0.99979678, 0.00399246]
  - [0.0, 0.0, 0.0, 1.0]
  timeshift_cam_imu: -8.121e-05
  rostopic: /cam0/image_raw
  resolution: [752, 480]
cam1:
  camera_model: omni
  intrinsics: [0.80065662, 833.006, 830.345, 373.850, 253.749]
  distortion_model: radtan
  distortion_coeffs: [-0.33518750, 0.13211436, 0.00055967, 0.00057686]
  T_cn_cnm1:
  - [ 0.99998854, 0.00216014, 0.00427195,-0.11003785]
  - [-0.00221074, 0.99992702, 0.01187697, 0.00045792]
  - [-0.00424598,-0.01188627, 0.99992034,-0.00064487]
  - [0.0, 0.0, 0.0, 1.0]
  T_cam_imu:
  - [ 0.01567142, 0.99978002,-0.01393948,-0.03997419]
  - [-0.99966203, 0.01595569, 0.02052137,-0.01735854]
  - [ 0.02073927, 0.01361317, 0.99969223, 0.00326019]
  - [0.0, 0.0, 0.0, 1.0]
  timeshift_cam_imu: -8.681e-05
  rostopic: /cam1/image_raw
  resolution: [752, 480]
```

### Every key in a camera block

| Key | Type and units | Written by | Meaning |
|---|---|---|---|
| `camera_model` | string: `pinhole`, `omni`, `eucm` or `ds` | camera calibration | the projection model |
| `intrinsics` | list of floats; focal lengths and principal point in pixels | camera calibration | the projection model's parameters, in the order shown in the next table |
| `distortion_model` | string: `radtan`, `equidistant`, `fov` or `none` | camera calibration | the lens distortion model |
| `distortion_coeffs` | list of floats, no units | camera calibration | the distortion model's parameters: 4, 4, 1 or 0 of them |
| `resolution` | `[width, height]`, integers, pixels | camera calibration | the image size the intrinsics belong to |
| `rostopic` | string | camera calibration | the ROS topic of this camera's images in the bag |
| `cam_overlaps` | list of camera indices | camera calibration | which other cameras saw the target at the same time as this one |
| `T_cn_cnm1` | 4×4 matrix, metres | camera calibration (cam1 onwards) | previous camera to this camera |
| `T_cam_imu` | 4×4 matrix, metres | camera–IMU calibration | IMU to this camera |
| `timeshift_cam_imu` | float, seconds | camera–IMU calibration (unless time calibration is off) | add this to a camera timestamp to get IMU time |
| `line_delay` | float, seconds per image row | rolling-shutter calibration only | the time between one image row and the next |

The wiki's YAML page lists `camera_model` as "(pinhole / omni)" and `distortion_model` as "(radtan / equidistant)", but the source accepts all four of each, as listed above. `cam_overlaps` and `line_delay` are not on the YAML page at all; they come from the source code.

### camera_model and intrinsics

The intrinsics vector's length and order depend on the camera model. The source code checks both and refuses a file that gets them wrong.

| `camera_model` | `intrinsics` order | Count | Range the source enforces |
|---|---|---|---|
| `pinhole` | `[fu, fv, pu, pv]` | 4 | none beyond the shared check |
| `omni` | `[xi, fu, fv, pu, pv]` | 5 | xi ≥ 0 |
| `ds` | `[xi, alpha, fu, fv, pu, pv]` | 6 | 0 ≤ alpha < 1 |
| `eucm` | `[alpha, beta, fu, fv, pu, pv]` | 6 | 0 ≤ alpha < 1, beta ≥ 0 |

For every model, the source also checks that the focal lengths and the principal point are decimal numbers and not negative.

Each number:

- **fu, fv: focal length, in pixels**, one per image axis. In the pinhole model a ray at angle θ from the optical axis lands fu · tan θ pixels from the principal point. So for a pinhole camera, fu ≈ (width / 2) / tan(horizontal field of view / 2), which gives a quick check against the lens's datasheet. fu and fv should be very close on a sensor with square pixels. In the omni model they are the unified model's generalised focal lengths, written γ in the double sphere paper, and they are not directly comparable with a pinhole focal length.
- **pu, pv: principal point, in pixels.** Where the optical axis meets the sensor, measured from the top-left of the image. It should be near the centre of the image, but rarely exactly at it.
- **xi (omni): the mirror parameter.** The wiki calls it the "mirror parameter (only omni)". The point is first projected onto a unit sphere, and xi is how far the projection centre sits from the sphere's centre. xi = 0 is the pinhole model. The source shows the projection as `u = fu · x / (z + xi · d) + pu`, where d is the point's distance from the camera.
- **xi, alpha (ds): the double sphere parameters.** The point is projected onto two unit spheres, xi apart, then onto a pinhole image plane shifted by alpha / (1 − alpha) ([Usenko, Demmel and Cremers, 2018](https://arxiv.org/abs/1807.08957)).
- **alpha, beta (eucm): the extended unified parameters.** As in the unified model, but the sphere becomes an ellipsoid shaped by beta. The source computes `d = sqrt(beta · (x² + y²) + z²)` and `u = fu · x / (alpha · d + (1 − alpha) · z) + pu`. The double sphere paper notes that "the EUCM degrades to a regular UCM for β = 1", the unified model in its alpha form.

If a focal length is wrong, every bearing is wrong by a scale that grows toward the edge of the image. If the principal point is wrong, every bearing is tilted. Both feed straight into depth and pose.

### distortion_model and distortion_coeffs

| `distortion_model` | `distortion_coeffs` | Count | Allowed with |
|---|---|---|---|
| `radtan` | `[k1, k2, r1, r2]` (the source calls the last two p1, p2) | 4 | `pinhole`, `omni` |
| `equidistant` | `[k1, k2, k3, k4]` | 4 | `pinhole` (the source stops with "Omni with equidistant model not yet supported!") |
| `fov` | `[w]` | 1 | `pinhole` |
| `none` | `[]` | 0 | all four; the only choice for `eucm` and `ds` |

Distortion is applied to the normalised image coordinates (x, y) after the projection model and before the focal length and principal point. The formulas, from the Kalibr source:

- **radtan (radial–tangential).** With r² = x² + y²:
  `x' = x · (1 + k1·r² + k2·r⁴) + 2·p1·x·y + p2·(r² + 2x²)` and
  `y' = y · (1 + k1·r² + k2·r⁴) + p1·(r² + 2y²) + 2·p2·x·y`.
  k1 and k2 are radial terms: a negative k1 pulls points toward the centre (barrel distortion), a positive k1 pushes them out (pincushion). p1 and p2 are tangential terms, from a lens not quite parallel to the sensor. The wiki links this model to [OpenCV's](https://docs.opencv.org/3.4/da/d54/group__imgproc__transform.html#ga7dfb72c9cf9780a347fbe3d1c47e5d5a); it is OpenCV's model with k3 = 0, in the same order.
- **equidistant.** With θ = atan(r): `θd = θ · (1 + k1·θ² + k2·θ⁴ + k3·θ⁶ + k4·θ⁸)`, and the point is scaled by θd / r. This is the [Kannala–Brandt](https://doi.org/10.1109/TPAMI.2006.153) polynomial, and the wiki links it to [OpenCV's fisheye model](https://docs.opencv.org/3.4/db/d58/group__calib3d__fisheye.html#details). In the YAML it is spelled `equidistant`; on the command line it is `equi`.
- **fov (field of view).** One parameter, w, in radians: `rd = atan(2 · r · tan(w / 2)) / w`. In [Devernay and Faugeras (2001)](https://doi.org/10.1007/PL00013269), w "approximately corresponds to the field-of-view of an ideal fisheye lens", as the double sphere paper summarises it.
- **none.** No distortion; the projection model does all the work.

Wrong coefficients matter least in the middle of the image, where r is small, and most at the edges, where the distortion is largest. There they show up as straight lines that are not straight after undistortion, and as reprojection errors that grow with distance from the centre.

### resolution

`[width, height]` in pixels, as two integers. The intrinsics are only valid at this size. If the camera is later run at a different resolution, crop or binning mode, the calibration no longer applies to it.

The reason is the units. The focal lengths and the principal point, `[fu, fv, pu, pv]`, are measured in pixels of this image. A 2 × 2 binning mode makes each pixel cover twice the angle, so roughly halves all four; a crop keeps the focal lengths but moves the principal point by the crop's offset. Recalibrating in the mode the footage will use avoids guessing.

### rostopic

The ROS topic that holds this camera's images in the bag, such as `/cam0/image_raw`. It has to match the bag exactly, or the tool finds no images.

### cam_overlaps

A list of the indices of the other cameras that shared target observations with this camera during calibration, for example `cam_overlaps: [1]` under cam0 of a stereo pair. The source writes it from the camera graph: two cameras are linked when they saw the target in the same synchronised frame. The multiple-camera tool needs every camera linked to the others; if they are not, it stops with "Cameras are not connected through mutual observations, please check the dataset. Maybe adjust the approx. sync. tolerance."

### T_cn_cnm1

The transform from the previous camera in the chain (n − 1) to this one (n): in the wiki's words, "camera extrinsic transformation, always with respect to the last camera in the chain (e.g. cam1: T_cn_cnm1 = T_c1_c0, takes cam0 to cam1 coordinates)". cam0 has none. The norm of its translation is the baseline between the two cameras, in metres; the results file prints it as "baseline norm". In the example above, the translation is about −0.110 m in x, so cam1 sits 11 cm from cam0.

If this is wrong, stereo depth is wrong. A baseline that is off by 1% makes every stereo depth off by about 1%.

### T_cam_imu

The transform from the IMU to this camera, "transformation from IMU to camera coordinates (T_c_i)". Each camera has its own. It is added by `kalibr_calibrate_imu_camera`. Its translation is the IMU's position in this camera's frame, which you can check with a ruler against the rig's mechanical drawing. In the example, the rotation's entries are all close to 0 or ±1: the IMU is mounted square to the camera, with its axes swapped and flipped.

### timeshift_cam_imu

The time offset between this camera's timestamps and the IMU's, in seconds: "timeshift between camera and IMU timestamps in seconds (t_imu = t_cam + shift)". Add it to a camera timestamp to get the same instant on the IMU clock. The wiki's example is −8.121e-05 s, about 0.08 ms. [Furgale, Rehder and Siegwart (2013)](https://doi.org/10.1109/IROS.2013.6696514), the paper behind this estimate, expected it to cover "fixed communication and filter delays plus half the exposure time as the images are timestamped at the start of the exposure time."

> **Diagram:** timeshift_cam_imu is the number of seconds to add to a camera timestamp to get the same instant on the IMU clock: t_imu = t_cam + shift. A negative value means the image's true IMU-clock time is earlier than its camera timestamp.

It is only written when time calibration is on, which is the default; `--no-time-calibration` turns it off. Applied with the wrong sign, the error doubles instead of disappearing. The offset is only as good as the timestamps behind it. The multi-IMU page says "The most common failure mode of kalibr appears to be incorrect timestamps provided by the user", and the Furgale paper warns that "For sensor setups without a common clock, the time offset may be different from start up to start up and subject to drift over longer periods of time".

### line_delay

Written only by the rolling-shutter tool, `kalibr_calibrate_rs_cameras`: the delay between consecutive image rows, in seconds. The source shifts each pixel's time by line_delay × its row number. The wiki says the rolling-shutter tool "currently only supports a single camera, and cannot calibrate an IMU alongside it."

## imu.yaml: the input file

You write this file yourself before the camera–IMU calibration. The [YAML formats page](https://github.com/ethz-asl/kalibr/wiki/Yaml-formats) gives this example:

```yaml
# Example values, from the Kalibr wiki's YAML formats page
#Accelerometers
accelerometer_noise_density: 1.86e-03   #Noise density (continuous-time)
accelerometer_random_walk:   4.33e-04   #Bias random walk

#Gyroscopes
gyroscope_noise_density:     1.87e-04   #Noise density (continuous-time)
gyroscope_random_walk:       2.66e-05   #Bias random walk

rostopic:                    /imu0      #the IMU ROS topic
update_rate:                 200.0      #Hz (for discretization of the values above)
```

All six keys are required, and the source rejects a noise value or rate that is zero or negative.

| Key | Symbol | Units | Meaning |
|---|---|---|---|
| `accelerometer_noise_density` | σa | m/s² · 1/√Hz | accelerometer white noise, continuous time |
| `accelerometer_random_walk` | σba | m/s³ · 1/√Hz | how fast the accelerometer bias wanders |
| `gyroscope_noise_density` | σg | rad/s · 1/√Hz | gyroscope white noise, continuous time |
| `gyroscope_random_walk` | σbg | rad/s² · 1/√Hz | how fast the gyroscope bias wanders |
| `update_rate` | 1/Δt | Hz | the IMU's sample rate |
| `rostopic` | – | – | the ROS topic of the IMU messages in the bag |

The symbols and units are the ones in Table 1 of the wiki's [IMU noise model page](https://github.com/ethz-asl/kalibr/wiki/IMU-Noise-Model). The same model is applied to each axis independently, with the same values for all three axes.

### The noise model behind the numbers

Kalibr models each axis of each sensor as the true value plus a slowly varying bias b(t) plus white noise n(t): for the gyro, `ω̃(t) = ω(t) + b(t) + n(t)`. The wiki describes n as "an additive noise term that fluctuates very rapidly" and b as "a slowly varying sensor bias".

- **Noise density (σg, σa).** The strength of the white noise: the higher it is, "the more "noisy" your gyro measurements".
- **Random walk (σbg, σba).** The bias is modelled as a random walk: its rate of change is white noise of strength σb. "The higher the bias variations in your gyro or accel are, the higher these parameters need to be set."

### Continuous time and discrete time

The two noise densities in the file are **continuous-time** values. Each sample's noise is larger, and depends on the rate:

- white noise per sample: `σd = σ / √Δt = σ · √(update_rate)`
- bias random walk per step: `σbd = σb · √Δt`

The source does exactly this, dividing the noise density by √(1 / update_rate). So the example's gyroscope, 1.87e-04 rad/s/√Hz at 200 Hz, has a per-sample noise of about 2.6e-03 rad/s.

That is why `update_rate` matters. If it is wrong, the per-sample noise Kalibr assumes is wrong, and with it the weight given to the IMU. The wiki adds a caveat: the scaling assumes the sensor's own low-pass filter removed noise above half the sample rate ("an ideal decimation stage"). If you simply drop samples to reduce the rate, the wiki says you may not scale the noise density this way.

### Getting the values from a datasheet

The wiki explains how datasheet names map to these fields:

- **White noise** values "are often specified in the datasheet". For the gyro they are often called **angular random walk**, and for the accelerometer **velocity random walk**. The wiki calls these names "A bit misleading": the white noise only becomes a random walk once it is integrated. Other makers call it "rate noise density", "acceleration noise density" or "noise density".
- **Bias random walk** is "rarely directly specified in the datasheet". Datasheets usually give **in-run bias (in)stability** instead, the lowest point of the Allan deviation curve, which can be used to find "reasonable values" together with the white noise.

Converting the units is plain arithmetic. With illustrative datasheet values, not any particular part:

| Datasheet says | Convert | Kalibr value |
|---|---|---|
| gyro noise 0.007 °/s/√Hz | × π / 180 | 1.22e-04 rad/s/√Hz |
| gyro angular random walk 0.3 °/√h | × (π / 180) / 60 | 8.7e-05 rad/s/√Hz |
| accel noise 120 µg/√Hz | × 9.80665e-6 | 1.18e-03 m/s²/√Hz |
| accel velocity random walk 0.03 m/s/√h | ÷ 60 | 5.0e-04 m/s²/√Hz |

The factor of 60 is √3600, the seconds in an hour under the square root.

### Getting the values from an Allan deviation

The Allan deviation is the standard way to measure these values yourself: record the IMU completely still for a long time and plot how much its average wanders against the averaging time τ, on log-log axes. The wiki reads Kalibr's values off that plot:

- **Noise density**: the curve's value at τ = 1 s, on the part with slope −½.
- **Random walk**: the value of the fitted line with slope +½, at τ = 3 s.

For the recording, the wiki recommends [allan_variance_ros](https://github.com/ori-drs/allan_variance_ros) "directly on ~15-24 hour dataset recording of the IMU being stationary". The method is covered in more depth in the [IMU calibration guide](https://egocam.ai/calibration/imu-calibration/).

### Inflating the noise values

A still IMU on a bench is a best case. The wiki says plainly that the model "is derived from a sensor which does not undergo motion, and at constant temperature", so "clearly, the model is optimistic". Used as they are, the static values mean "Kalibr will tend to trust your IMU measurements too much, and its solution will not be optimal." Its advice: "From our experience, for lowest-cost sensors, increasing the noise model parameters by a factor of 10x or more may be necessary." The wiki gives no exact factor beyond that; the residual plots in the report (below) are how you judge it.

## imu.yaml: the output file

`kalibr_calibrate_imu_camera` also writes `<bag>-imu.yaml`. The source builds it from each input IMU file, keeps every input key, and adds the results. It has one top-level key per IMU, `imu0`, `imu1` and so on, in the order given to `--imu`. The first IMU is the reference, and its frame is the "body" frame.

| Key | Present for | Meaning |
|---|---|---|
| all six input keys | every IMU | copied from the input file |
| `model` | every IMU | the IMU model used: `calibrated`, `scale-misalignment` or `scale-misalignment-size-effect` |
| `T_i_b` | every IMU | 4×4, metres: from the body frame (imu0) to this IMU. The results file labels it "imu0 to imuN". The identity for imu0 |
| `time_offset` | every IMU | seconds: this IMU's offset from imu0, printed as "time offset with respect to IMU0". 0 unless `--imu-delay-by-correlation` was used |
| `accelerometers: M` | `scale-misalignment` and up | 3×3 matrix: accelerometer scale and misalignment |
| `gyroscopes: M` | `scale-misalignment` and up | 3×3 matrix: gyroscope scale and misalignment |
| `gyroscopes: A` | `scale-misalignment` and up | 3×3 matrix, (rad/s)/(m/s²): how much acceleration leaks into the gyroscope reading |
| `gyroscopes: C_gyro_i` | `scale-misalignment` and up | 3×3 rotation: the gyroscope triad's orientation relative to the IMU (accelerometer) frame |
| `accelerometers: rx_i, ry_i, rz_i` | `scale-misalignment-size-effect` | 3-vectors, metres: the position of each accelerometer axis |

The three IMU models come from [Rehder et al. (2016)](https://doi.org/10.1109/ICRA.2016.7487628), "Extending kalibr", and the [multi-IMU page](https://github.com/ethz-asl/kalibr/wiki/Multi-IMU-and-IMU-intrinsic-calibration) says the output's "Naming corresponds to quantities documented in" that paper. What each matrix does, from the source:

- **`calibrated`** (the default) assumes the IMU's intrinsics are already corrected. The [camera–IMU guide](https://github.com/ethz-asl/kalibr/wiki/camera-imu-calibration) says those intrinsics "need to be calibrated beforehand and its correction applied to the raw measurements. If not, one should use an IMU model which calibrates these values."
- **`scale-misalignment`** adds M for each sensor, combining scale factors and axis misalignment. The source estimates them as one lower-triangular M that starts at the identity: the diagonal holds the scale factors, close to 1, and the entries below it hold the small misalignment terms. The gyroscope also gets A, the effect of linear acceleration on its reading (often called g-sensitivity), estimated as a full 3×3 matrix, and C_gyro_i, the rotation between the gyroscope axes and the accelerometer axes. In the source, the modelled gyro reading is `M · ω + A · a`, both expressed in the gyro frame.
- **`scale-misalignment-size-effect`** also locates each accelerometer axis. To the best of our knowledge, the "size effect" arises because some IMUs place each accelerometer axis at a slightly different point, so the axes feel different accelerations when the device rotates. In the source, `rx_i` is held at zero and `ry_i` and `rz_i` are estimated, matching the wiki's description of "the displacement of the accelerometer y- and z-axis with respect to its x-axis".

## target.yaml: the calibration board

The [calibration targets page](https://github.com/ethz-asl/kalibr/wiki/calibration-targets) lists three target types. All lengths are in metres. The source's checks want every count to be an integer of at least 3 and every length to be a positive decimal number. Write lengths with a decimal point, such as `0.06` or `1.0`: a bare `1` is read as an integer and fails the check.

### Aprilgrid

The wiki recommends the Aprilgrid because "partially visible calibration boards can be used" and the "pose of the target is fully resolved (no flips)".

```yaml
# Example values, from the Kalibr wiki's calibration targets page
target_type: 'aprilgrid' #gridtype
tagCols: 6               #number of apriltags
tagRows: 6               #number of apriltags
tagSize: 0.088           #size of apriltag, edge to edge [m]
tagSpacing: 0.3          #ratio of space between tags to tagSize
                         #example: tagSize=2m, spacing=0.5m --> tagSpacing=0.25[-]
```

| Key | Type and units | Meaning |
|---|---|---|
| `target_type` | `'aprilgrid'` | the target type |
| `tagCols` | integer ≥ 3 | number of tags across |
| `tagRows` | integer ≥ 3 | number of tags down |
| `tagSize` | metres | one tag's width, "edge to edge" across its black border |
| `tagSpacing` | ratio, no unit | the gap between tags divided by `tagSize` |

**`tagSpacing` is a ratio, not a length.** The wiki's example: 2 m tags with 0.5 m gaps give `tagSpacing: 0.25`. The source confirms it: the target's corners are placed at multiples of `(1 + tagSpacing) · tagSize`, and the [code comment](https://github.com/ethz-asl/kalibr/blob/master/aslam_cv/aslam_cameras_april/src/GridCalibrationTargetAprilgrid.cpp) reads "tagSpacing [m] = tagSpacing*tagSize". Writing the gap in metres here, for example `0.026` instead of `0.3`, puts every corner in the wrong place.

> **Diagram:** On an Aprilgrid, tagSize is the width of one tag across its black border, in metres. tagSpacing is not a length: it is the gap between tags divided by tagSize. The small black squares fill the gaps at the tag corners.

What else the source shows about Aprilgrids:

- The tags are AprilTag 36h11 markers ([Olson, 2011](https://doi.org/10.1109/ICRA.2011.5979561)), detected with Michael Kaess's AprilTag implementation, as the wiki credits.
- Each tag gives four corners, so a 6 × 6 grid has 144.
- Kalibr's own PDF generator adds small black squares in the gaps at each tag corner, each `tagSpacing · tagSize` wide. Its comment says they "make corners symmetric (decreases the effect of motion blur in the subpix refinement...)".
- A frame only counts if enough tags are seen: both calibrators set the minimum to the larger of `tagRows` and `tagCols`, plus one. On a 6 × 6 grid, that is 7 tags. The [code comment](https://github.com/ethz-asl/kalibr/blob/master/aslam_offline_calibration/kalibr/python/kalibr_camera_calibration/CameraCalibrator.py) gives the reason: "enforce more than one row --> pnp solution can be bad if all points are almost on a line".
- The wiki warns: "Make sure to hide all external Apriltags while collecting the calibration dataset."

### Checkerboard

```yaml
# Example values, from the Kalibr wiki's calibration targets page
target_type: 'checkerboard' #gridtype
targetCols: 6               #number of internal chessboard corners
targetRows: 7               #number of internal chessboard corners
rowSpacingMeters: 0.06      #size of one chessboard square [m]
colSpacingMeters: 0.06      #size of one chessboard square [m]
```

| Key | Type and units | Meaning |
|---|---|---|
| `target_type` | `'checkerboard'` | the target type |
| `targetCols` | integer ≥ 3 | internal corners across, not squares |
| `targetRows` | integer ≥ 3 | internal corners down, not squares |
| `rowSpacingMeters` | metres | one square's size along the rows |
| `colSpacingMeters` | metres | one square's size along the columns |

A board with 7 × 8 squares has 6 × 7 internal corners. Counting squares instead of corners is a common way to get a checkerboard that is never detected.

### Circle grid

```yaml
# Example values, from the Kalibr wiki's calibration targets page
target_type: 'circlegrid'  #gridtype
targetCols: 6              #number of circles (cols)
targetRows: 7              #number of circles (rows)
spacingMeters: 0.02        #distance between circles [m]
asymmetricGrid: False      #use asymmetric grid (opencv) [bool]
```

| Key | Type and units | Meaning |
|---|---|---|
| `target_type` | `'circlegrid'` | the target type |
| `targetCols` | integer ≥ 3 | circles across |
| `targetRows` | integer ≥ 3 | circles down |
| `spacingMeters` | metres | the distance between circles |
| `asymmetricGrid` | `True` or `False` | `True` for OpenCV's asymmetric circle grid |

The wiki says these are "The standard OpenCV symmetric and asymmetric circle grids".

Checkerboards and circle grids are symmetric, so their pose can flip. The camera–IMU guide warns that "movements which could lead to flips in the target pose estimates have to be avoided" with them, and recommends an Aprilgrid "to avoid this problem entirely".

### Measuring a printed target

Never trust the size you asked the printer for. The wiki: "Most printers will scale the target during the printing process. Make sure to remeasure the important sizes and adjust the target configuration accordingly."

- **Aprilgrid:** measure `tagSize` across one tag's outer black edges, and measure the gap between two neighbouring tags. Then `tagSpacing = gap / tagSize`. Measuring across many tags and dividing reduces the error: n tags and the n − 1 gaps between them span `tagSize · (n + (n − 1) · tagSpacing)`.
- **Checkerboard:** measure across as many squares as you can, in each direction, and divide by the number of squares.
- **Circle grid:** measure the centre-to-centre distance across many circles and divide.

The wiki's other target rules: keep the target "as flat as possible. Best is to glue it to a rigid plate such as aluminum or acrylic glass", and keep "a white border around the calibration target of min. the size of one grid element (or the detection might be unsuccessful in certain lighting conditions)".

A target that is 1% too small in the YAML makes every translation Kalibr estimates 1% too small, baselines included, because the target is the only thing that sets metric scale in a camera calibration.

## The camera models

Kalibr's [supported models page](https://github.com/ethz-asl/kalibr/wiki/Supported-models) lists four projection models. On the command line, `--models` takes a projection model and a distortion model joined by a hyphen. The source accepts exactly these seven combinations: `pinhole-radtan`, `pinhole-equi`, `pinhole-fov`, `omni-none`, `omni-radtan`, `eucm-none` and `ds-none`.

| Model | Key | Intrinsics | What it is | Lenses it suits | Original paper |
|---|---|---|---|---|---|
| Pinhole | `pinhole` | fu fv pu pv | straight-line projection through a single point | normal and moderately wide lenses, with a distortion model | listed by the wiki as Kannala and Brandt (2006) |
| Omnidirectional (unified) | `omni` | xi fu fv pu pv | project onto a unit sphere, then onto a pinhole offset by xi | catadioptric (mirror) cameras, wide and fisheye lenses | Mei and Rives (2007) |
| Extended unified | `eucm` | alpha beta fu fv pu pv | as the unified model, but onto an ellipsoid shaped by beta | wide-angle and fisheye lenses, catadioptric systems | Khomutenko, Garcia and Martinet (2016) |
| Double sphere | `ds` | xi alpha fu fv pu pv | project onto two unit spheres, xi apart, then a shifted pinhole | large-field-of-view fisheye lenses | Usenko, Demmel and Cremers (2018) |

### Pinhole

The projection every other model starts from: `u = fu · x / z + pu`, `v = fv · y / z + pv`. It only works for points in front of the camera (z > 0), so it "theoretically limits the field-of-view to less than 180°", and the double sphere paper adds that "in practice, even when distortion model is added the pinhole camera demonstrates suboptimal performance for a field-of-view greater than 120°." Kalibr's wiki cites [Kannala and Brandt (2006)](https://doi.org/10.1109/TPAMI.2006.153) as its reference for the pinhole model.

### Omnidirectional (unified)

From [Mei and Rives (2007)](https://doi.org/10.1109/ROBOT.2007.364084), "Single view point omnidirectional camera calibration from planar grids". Their model "is based on an exact theoretical projection function to which we add well identified parameters to model real-world errors", and they validated it on "parabolic, hyperbolic, folded mirror, wide-angle and spherical sensors". The double sphere paper notes that the unified model can be applied to fisheye lenses, "However, it does not fit most fisheye lenses perfectly; thus, an additional distortion model is often added", which is what `omni-radtan` does.

### Extended unified (EUCM)

From [Khomutenko, Garcia and Martinet (2016)](https://doi.org/10.1109/LRA.2015.2502921), "An enhanced unified camera model". Its abstract: "The new model applies to catadioptric systems and wide-angle fish-eye cameras, it does not require additional mapping to model distortions, and it takes just two projection parameters more than a simple pinhole model to represent radial distortion". In Kalibr it only runs as `eucm-none`.

### Double sphere (DS)

From [Usenko, Demmel and Cremers (2018)](https://arxiv.org/abs/1807.08957), "The double sphere camera model". They propose it as a model "that well fits with large field-of-view lenses, is computationally inexpensive and has a closed-form inverse." On their test set of fisheye and wide-angle lenses from 122° to 195°, it had "less than 1% greater reprojection error" than an eight-parameter Kannala–Brandt model, which was "5-10 times slower". In Kalibr it only runs as `ds-none`.

## The distortion models

| Model | YAML key | Command line | Coefficients | What it fits | Reference |
|---|---|---|---|---|---|
| Radial–tangential | `radtan` | `radtan` | k1 k2 r1 r2 | ordinary lenses with moderate distortion | [OpenCV](https://docs.opencv.org/3.4/da/d54/group__imgproc__transform.html#ga7dfb72c9cf9780a347fbe3d1c47e5d5a) |
| Equidistant | `equidistant` | `equi` | k1 k2 k3 k4 | wide-angle and fisheye lenses | Kannala and Brandt (2006); [OpenCV fisheye](https://docs.opencv.org/3.4/db/d58/group__calib3d__fisheye.html#details) |
| Field of view | `fov` | `fov` | w | wide-angle and fisheye lenses | Devernay and Faugeras (2001) |
| None | `none` | `none` | – | models that need no extra distortion | – |

- **Radial–tangential** is the classic model described on the [camera calibration page](https://egocam.ai/calibration/camera-calibration/). It is a polynomial in r, the distance from the centre in the normalised image, so it struggles where r grows large, at wide angles.
- **Equidistant** is the [Kannala–Brandt](https://doi.org/10.1109/TPAMI.2006.153) model, which the authors call "suitable for fish-eye lens cameras as well as for conventional and wide-angle lens cameras". It is a polynomial in the angle θ instead of r. One caution from the double sphere paper: when it is applied as a distortion on top of a pinhole, as in Kalibr's `pinhole-equi`, "it has a singularity at z = 0, which makes it unsuitable for fisheye lenses with field-of-view close to 180°".
- **Field of view** is from [Devernay and Faugeras (2001)](https://doi.org/10.1007/PL00013269), "Straight lines have to be straight", written for "low-cost wide-angle or fish-eye lenses", in the words of its [abstract](https://inria.hal.science/inria-00267247v1). It has a single parameter. In the double sphere paper's tests (Table 1), the FOV model's mean reprojection error on the 183° and 195° lenses was about two to three times that of the best model.

Kalibr can fit a different model to each camera in one run: the multiple-camera guide says "Arbitrary combinations of projection and distortion models can be combined in one calibration run."

## The results text files

### results-cam.txt (camera calibration)

The source writes, for each camera:

| Line | Meaning |
|---|---|
| `cam0 (/cam0/image_raw):` | the camera index and its topic |
| `type:` | the internal camera geometry class, which names the model |
| `distortion: [...] +- [...]` | the distortion coefficients and their standard deviations |
| `projection: [...] +- [...]` | the projection parameters and their standard deviations |
| `reprojection error: [mx, my] +- [sx, sy]` | the mean and the standard deviation of the reprojection error, in pixels, separately for x and y |

Then, for each camera after the first, a `baseline T_1_0:` block with the rotation as a quaternion `q` and the translation `t`, each with standard deviations. Last comes the target configuration as read from `target.yaml`. Check that it matches what you measured; printers and typos both end up here.

**Reading the reprojection error.** The **mean** is the average signed error in x and in y, so it should be close to zero; a mean far from zero means the errors lean one way, a systematic bias. The **standard deviation** is the spread of the errors, in pixels. The "+-" values on the parameters are their estimated standard deviations: a large one means the data did not pin that parameter down.

### results-imucam.txt (camera–IMU calibration)

| Section | Contents |
|---|---|
| `Normalized Residuals` | the reprojection, gyroscope and accelerometer errors, each divided by its assumed noise: mean, median and standard deviation |
| `Residuals` | the same errors in real units: pixels, rad/s and m/s² |
| `Transformation (cam0):` | `T_ci` (imu0 to cam0) and `T_ic` (cam0 to imu0), both as 4×4 matrices |
| `timeshift cam0 to imu0: [s] (t_imu = t_cam + shift)` | the time shift for that camera |
| `Baselines:` | camera-to-camera transforms and their "baseline norm" in metres |
| `Gravity vector in target coords: [m/s^2]` | the direction of gravity estimated in the target's frame |
| `Calibration configuration` and `IMU configuration` | the inputs as read, including each IMU's noise density, its discrete-time version, and its random walk |

**Reading the residuals.** A normalised residual is the error divided by the standard deviation Kalibr was told to expect: the `--reprojection-sigma` value for cameras (1.0 px by default) and the discrete-time noise from `imu.yaml` for the IMU. To the best of our knowledge, normalised residuals that come out far larger than a few mean the assumed noise is too small or something in the data is wrong, and values far below one mean the assumed noise is much larger than what the data shows. The plain residuals are the physical error: the reprojection error in pixels is the one to compare with the camera calibration.

## The report PDF

### report-cam.pdf (camera calibration)

The source draws these pages:

| Page | What it shows |
|---|---|
| Obs. graph | which cameras saw the target together; the edge weight is the number of shared observations. Every camera has to be connected |
| camera system | the cameras' estimated poses in 3D, to compare with the real rig |
| cam0: estimated poses | the target's poses relative to cam0 |
| camN: polar error | reprojection error against the angle from the optical axis, plus a histogram of how many corners were seen at each angle |
| camN: azimuthal error | reprojection error against the angle around the optical axis, plus a histogram |
| camN: reprojection errors | left: every detected corner drawn on the image; right: the scatter of x and y errors, coloured by image |
| Outlier corners | where outlier corners were removed, on the image |

The corner plot shows coverage at a glance: the target should have reached every part of the image, the corners above all, as the [camera calibration guide](https://egocam.ai/calibration/camera-calibration/) explains. The polar error histogram shows the same thing by angle. In our experience, a polar error plot whose error climbs toward the largest angles is the clearest sign of a distortion model that does not fit the lens, or of too few views near the edge of the image.

### report-imucam.pdf (camera–IMU calibration)

For each IMU, the source draws:

| Page | What it shows | What to look for |
|---|---|---|
| imu0: estimated poses | the trajectory | motion in all directions |
| imu0: measurement rates | the sample rate over time, from the gaps between timestamps | a flat line at the expected rate |
| imu0: accelerations, angular velocities | predicted against measured | the curves overlap |
| imu0: acceleration error, angular velocity error | per-axis residuals, with dashed lines at ±3σ of the assumed discrete-time noise | residuals inside the lines |
| imu0: accelerometer bias, gyroscope bias | the estimated bias over time, with ±3σ bounds from the random walk | biases inside the bounds |
| camN: reprojection errors | the error scatter, with a dashed circle at 3 × `--reprojection-sigma` | points inside the circle |

The wiki's [RealSense tutorial](https://github.com/ethz-asl/kalibr/wiki/Calibrating-Intel-RealSense-Cameras) gives the checks in a few lines:

- "Inspect the IMU time dt plot carefully in the PDF report!"
- "Your accelerometer and gyroscope errors are within their 3-sigma bounds (if not then your IMU noise or the dataset are incorrect)"
- "Ensure that your estimated biases do not leave your 3-sigma bounds. If they do leave then your trajectory was too dynamic, or your noise values are not good."
- "Sanity check your final rotation and translation with hand-measured values."

The [multi-IMU page](https://github.com/ethz-asl/kalibr/wiki/Multi-IMU-and-IMU-intrinsic-calibration) explains why the 3σ lines are there: to "foster an intuition about the correctness of the noise parameters and models".

On timestamps, the [camera–IMU guide](https://github.com/ethz-asl/kalibr/wiki/camera-imu-calibration) shows an example of bad IMU timestamps, "where a burst of IMU are send at a rate of 1ms with gaps of 6ms between", and says that "likely your hardware is messed up and you will run into calibration problems."

### What a good number looks like

Kalibr's documentation gives no pass mark for the reprojection error. For a reference point, the [double sphere paper](https://arxiv.org/abs/1807.08957)'s calibrations of five fisheye and wide-angle lenses gave mean reprojection errors between 0.127 and 0.227 pixels with its best models (Table 1). In our experience, a sharp, well-lit, well-covered calibration gives reprojection errors well under one pixel, and errors of a pixel or more are a sign to check blur, focus, the target measurements and the model before using the result. A low number on its own still proves little; the [camera calibration guide](https://egocam.ai/calibration/camera-calibration/) explains why.

## The command-line tools

Each tool lists its options with `--h`, as the wiki shows. Kalibr runs on ROS 1; the [ROS 2 page](https://github.com/ethz-asl/kalibr/wiki/ROS2-Calibration-Using-Kalibr) says "Kalibr requires ROS1 to run" and shows how to convert ROS 2 bags.

### kalibr_calibrate_cameras

Intrinsic and extrinsic calibration of one or more cameras. The cameras stay still and the target moves; the [guide](https://github.com/ethz-asl/kalibr/wiki/multiple-camera-calibration) requires "that neighbouring cameras have overlapping fields of view".

| Flag | Meaning |
|---|---|
| `--bag` | the ROS bag |
| `--topics` | image topics, in camera order |
| `--models` | one model per topic, in the same order, such as `pinhole-radtan` |
| `--target` | `target.yaml` |
| `--bag-from-to` | use only this time range of the bag, in seconds |
| `--bag-freq` | extract features at this rate, in Hz |
| `--approx-sync` | time tolerance for matching images across cameras, in seconds (default 0.02) |
| `--mi-tol` | the mutual-information threshold for adding an image (default 0.2); "Higher means fewer images will be added. Use -1 to force all images." |
| `--qr-tol` | tolerance on the QR decomposition factors (default 0.02) |
| `--no-shuffle` | process the images in order instead of shuffled |
| `--no-outliers-removal`, `--no-final-filtering` | turn off corner outlier filtering |
| `--min-views-outlier` | views used to start the outlier statistics (default 20) |
| `--use-blakezisserman` | use the Blake–Zisserman robust estimator |
| `--plot-outliers`, `--plot`, `--verbose`, `--show-extraction` | show more while running |
| `--dont-show-report` | write the report without opening it |
| `--export-poses` | write the optimised poses to a CSV file |

The tool chooses which images to use "based on information theoretic measures", following Maye, Furgale and Siegwart (2013). If it diverges at the start, the wiki's advice is "just try to restart the calibration as the initial guesses are based on a random pick of images."

### kalibr_calibrate_imu_camera

Spatial and temporal calibration of one or more IMUs to a calibrated camera chain. The target stays still and the rig moves.

| Flag | Meaning |
|---|---|
| `--bag` | the ROS bag with images and IMU data |
| `--cam` | the camchain from `kalibr_calibrate_cameras` (the source spells it `--cams`; the wiki and the tool's usage text write `--cam`) |
| `--imu` | one or more `imu.yaml` files; "The first IMU will be the reference IMU" |
| `--imu-models` | one model per IMU: `calibrated` (default), `scale-misalignment` or `scale-misalignment-size-effect` |
| `--target` | `target.yaml` |
| `--bag-from-to`, `--bag-freq` | as above |
| `--no-time-calibration` | do not estimate `timeshift_cam_imu` |
| `--max-iter` | maximum iterations (default 30) |
| `--recover-covariance` | also compute the uncertainty of the results |
| `--timeoffset-padding` | how far the time offset may move during estimation, in seconds (default 0.03) |
| `--reprojection-sigma` | the assumed corner detection noise, in pixels (default 1.0) |
| `--imu-delay-by-correlation` | estimate other IMUs' time offsets to imu0 by correlation |
| `--recompute-camera-chain-extrinsics` | re-estimate the camera-to-camera transforms; the source says this is "exclusively recommended for debugging purposes" |
| `--perform-synchronization` | correct clock jitter and skew; the wiki warns "this option will alter your timing" and voids the estimated offsets |
| `--show-extraction`, `--extraction-stepping`, `--verbose` | show more while running |
| `--dont-show-report`, `--export-poses` | as above |

### kalibr_bagcreater

Builds a ROS bag from image files and IMU CSV files ([bag format page](https://github.com/ethz-asl/kalibr/wiki/bag-format)): `kalibr_bagcreater --folder dataset-dir/. --output-bag awsome.bag`.

- Each camera is a folder, `cam0`, `cam1`, and each image's file name is its timestamp in nanoseconds, such as `1385030208726607500.png`. The source accepts `.bmp`, `.png` and `.jpg`.
- IMU files are CSVs whose names start with `imu`, such as `imu0.csv`, with the header `timestamp,omega_x,omega_y,omega_z,alpha_x,alpha_y,alpha_z`, in "timestamps=[ns], omega=[rad/s], alpha=[m/s^2]".
- The topics come out as `/cam0/image_raw`, `/cam1/image_raw` and `/imu0`.

### kalibr_bagextractor

The reverse: exports images and IMU CSVs from a bag. Flags: `--bag`, `--image-topics`, `--imu-topics`, `--output-folder`.

### kalibr_create_target_pdf

Draws a target to print.

| Flag | Meaning |
|---|---|
| `--type` | `apriltag` or `checkerboard` |
| `--nx`, `--ny` | tags (Aprilgrid) or internal corners (checkerboard) across and down; defaults 6 and 7 |
| `--tsize` | tag size in metres (default 0.08) |
| `--tspace` | tag spacing "in fraction of the edge size [0..1]" (default 0.3), the same ratio as `tagSpacing` |
| `--tfam` | AprilTag family (default `t36h11`) |
| `--skip-ids` | tag IDs to leave blank |
| `--csx`, `--csy` | checkerboard square size in metres (default 0.05) |
| `--eps` | also write an EPS file |
| output name | the file name (default `target`) |

The wiki's example: `kalibr_create_target_pdf --type apriltag --nx [NUM_COLS] --ny [NUM_ROWS] --tsize [TAG_WIDTH_M] --tspace [TAG_SPACING_PERCENT]`. Despite "PERCENT" in that example, the value is a fraction such as 0.3, not 30. The generator cannot draw circle grids.

### Other tools

| Tool | What it does |
|---|---|
| `kalibr_camera_validator --cam camchain.yaml --target target.yaml` | live ROS check: shows reprojected corners and "the reprojection error statistics are calculated and displayed for mono and inter-camera reprojection errors" ([calibration validator](https://github.com/ethz-asl/kalibr/wiki/calibration-validator)) |
| `kalibr_camera_focus --topic [IMAGE_TOPIC]` | live ROS focus aid that shows "a measure of focus" ([camera focus](https://github.com/ethz-asl/kalibr/wiki/camera-focus)) |
| `kalibr_calibrate_rs_cameras` | rolling-shutter intrinsics for one camera, with `--model` (`pinhole-radtan-rs`, `pinhole-equi-rs` or `omni-radtan-rs`), `--topic`, `--frame-rate` and `--inverse-feature-variance` ([rolling shutter](https://github.com/ethz-asl/kalibr/wiki/Rolling-Shutter-Camera-calibration)) |

## Sources

- Kalibr wiki, ETH Zurich ASL: [Home](https://github.com/ethz-asl/kalibr/wiki), [YAML formats](https://github.com/ethz-asl/kalibr/wiki/Yaml-formats), [Supported models](https://github.com/ethz-asl/kalibr/wiki/Supported-models), [IMU noise model](https://github.com/ethz-asl/kalibr/wiki/IMU-Noise-Model), [Calibration targets](https://github.com/ethz-asl/kalibr/wiki/calibration-targets), [Multiple camera calibration](https://github.com/ethz-asl/kalibr/wiki/multiple-camera-calibration), [Camera–IMU calibration](https://github.com/ethz-asl/kalibr/wiki/camera-imu-calibration), [Multi-IMU and IMU intrinsic calibration](https://github.com/ethz-asl/kalibr/wiki/Multi-IMU-and-IMU-intrinsic-calibration), [Bag format](https://github.com/ethz-asl/kalibr/wiki/bag-format), [Calibration validator](https://github.com/ethz-asl/kalibr/wiki/calibration-validator), [Camera focus](https://github.com/ethz-asl/kalibr/wiki/camera-focus), [Rolling shutter camera calibration](https://github.com/ethz-asl/kalibr/wiki/Rolling-Shutter-Camera-calibration), [ROS 2 calibration](https://github.com/ethz-asl/kalibr/wiki/ROS2-Calibration-Using-Kalibr), [Calibrating Intel RealSense cameras](https://github.com/ethz-asl/kalibr/wiki/Calibrating-Intel-RealSense-Cameras).
- Kalibr source code, [github.com/ethz-asl/kalibr](https://github.com/ethz-asl/kalibr) (commit `1f60227`): [ConfigReader.py](https://github.com/ethz-asl/kalibr/blob/master/aslam_offline_calibration/kalibr/python/kalibr_common/ConfigReader.py) (all YAML fields and checks), [kalibr_calibrate_cameras](https://github.com/ethz-asl/kalibr/blob/master/aslam_offline_calibration/kalibr/python/kalibr_calibrate_cameras), [kalibr_calibrate_imu_camera](https://github.com/ethz-asl/kalibr/blob/master/aslam_offline_calibration/kalibr/python/kalibr_calibrate_imu_camera), [CameraUtils.py](https://github.com/ethz-asl/kalibr/blob/master/aslam_offline_calibration/kalibr/python/kalibr_camera_calibration/CameraUtils.py), [CameraCalibrator.py](https://github.com/ethz-asl/kalibr/blob/master/aslam_offline_calibration/kalibr/python/kalibr_camera_calibration/CameraCalibrator.py), [GridCalibrationTargetAprilgrid.cpp](https://github.com/ethz-asl/kalibr/blob/master/aslam_cv/aslam_cameras_april/src/GridCalibrationTargetAprilgrid.cpp), [IccSensors.py](https://github.com/ethz-asl/kalibr/blob/master/aslam_offline_calibration/kalibr/python/kalibr_imu_camera_calibration/IccSensors.py), [IccUtil.py](https://github.com/ethz-asl/kalibr/blob/master/aslam_offline_calibration/kalibr/python/kalibr_imu_camera_calibration/IccUtil.py), [IccPlots.py](https://github.com/ethz-asl/kalibr/blob/master/aslam_offline_calibration/kalibr/python/kalibr_imu_camera_calibration/IccPlots.py), [kalibr_create_target_pdf](https://github.com/ethz-asl/kalibr/blob/master/aslam_offline_calibration/kalibr/python/kalibr_create_target_pdf), [kalibr_bagcreater](https://github.com/ethz-asl/kalibr/blob/master/aslam_offline_calibration/kalibr/python/kalibr_bagcreater), and the camera and distortion models in [aslam_cv/aslam_cameras](https://github.com/ethz-asl/kalibr/tree/master/aslam_cv/aslam_cameras/include/aslam/cameras/implementation).
- Furgale, P., Rehder, J. and Siegwart, R. (2013). [Unified temporal and spatial calibration for multi-sensor systems](https://doi.org/10.1109/IROS.2013.6696514). *IEEE/RSJ IROS*, pp. 1280–1286.
- Rehder, J., Nikolic, J., Schneider, T., Hinzmann, T. and Siegwart, R. (2016). [Extending kalibr: Calibrating the extrinsics of multiple IMUs and of individual axes](https://doi.org/10.1109/ICRA.2016.7487628). *IEEE ICRA*, pp. 4304–4311.
- Usenko, V., Demmel, N. and Cremers, D. (2018). [The double sphere camera model](https://arxiv.org/abs/1807.08957). *International Conference on 3D Vision (3DV)*.
- Khomutenko, B., Garcia, G. and Martinet, P. (2016). [An enhanced unified camera model](https://doi.org/10.1109/LRA.2015.2502921). *IEEE Robotics and Automation Letters*, 1(1), pp. 137–144.
- Mei, C. and Rives, P. (2007). [Single view point omnidirectional camera calibration from planar grids](https://doi.org/10.1109/ROBOT.2007.364084). *IEEE ICRA*, pp. 3945–3950.
- Kannala, J. and Brandt, S. S. (2006). [A generic camera model and calibration method for conventional, wide-angle, and fish-eye lenses](https://doi.org/10.1109/TPAMI.2006.153). *IEEE Transactions on Pattern Analysis and Machine Intelligence*, 28(8), pp. 1335–1340.
- Devernay, F. and Faugeras, O. (2001). [Straight lines have to be straight](https://doi.org/10.1007/PL00013269). *Machine Vision and Applications*, 13(1), pp. 14–24 ([open copy and abstract](https://inria.hal.science/inria-00267247v1)).
- Olson, E. (2011). [AprilTag: A robust and flexible visual fiducial system](https://doi.org/10.1109/ICRA.2011.5979561). *IEEE ICRA*.
- Maye, J., Furgale, P. and Siegwart, R. (2013). Self-supervised calibration for robotic systems. *IEEE Intelligent Vehicles Symposium*, as cited on the Kalibr multiple-camera page.
- OpenCV documentation: [radial–tangential distortion](https://docs.opencv.org/3.4/da/d54/group__imgproc__transform.html#ga7dfb72c9cf9780a347fbe3d1c47e5d5a) and [fisheye model](https://docs.opencv.org/3.4/db/d58/group__calib3d__fisheye.html#details).
- [allan_variance_ros](https://github.com/ori-drs/allan_variance_ros), Oxford Robotics Institute.
