# C202: IMU and Camera-IMU Calibration

> An Ego Cap University course that takes a team from an uncalibrated IMU to a measured noise model, a camera-to-IMU transform and a camera-IMU time offset, and to judging the result. Four short lessons, a hands-on lab with allan_variance_ros and Kalibr, a printable checklist and copy-paste prompts for an AI assistant.

Page: https://egocam.ai/university/c202/

C202 is the IMU course of Ego Cap University. It starts where [C201](https://egocam.ai/university/c201/) stops: the cameras are calibrated, and the rig also carries an [IMU](https://egocam.ai/reference/glossary/#capture-hardware-and-sensors) (inertial measurement unit) that nobody has measured yet. By the end, the team has the IMU's noise values, the transform between the IMU and each camera, and the time offset between their clocks, and knows whether to trust all three.

The course is built for current rigs. Almost every published egocentric rig of 2025–2026 carries one or two IMUs on the same rigid head unit as its stereo cameras, read by the controller that triggers the cameras, at 200 to 800 Hz ([IMUs on Wearable Rigs](https://egocam.ai/hardware/imu-sensors/#imus-on-published-rigs)). Their makers calibrate the IMU per unit: RoboCap ([Ali et al., 2026](https://arxiv.org/abs/2610.07217)) states that "IMU noise models are identified by Allan-variance analysis" before cameras and IMUs are solved together ([IMU Noise Models and Allan Variance](https://egocam.ai/calibration/imu-noise-and-allan-variance/)), and identifies its camera–IMU time offset per device to a residual of at most 3 ms ([Camera-IMU Time Offset](https://egocam.ai/calibration/camera-imu-time-offset/)).

Every lesson is short and links to the field guide for depth. Nothing in the course is new: each claim comes from a reviewed field-guide page or from the tools' own documentation and source code, and each page ends with its sources.

## Who it is for

- Teams whose head rig carries an IMU and who need visual-inertial tracking (VIO or SLAM) to work on their footage.
- Engineers who have run `kalibr_calibrate_imu_camera` once and want to know whether the transform and the time offset were right.
- Anyone who has to choose the noise values in an `imu.yaml` and defend them.

## What you will be able to do

By the end of the course you will be able to:

1. Say what an IMU measures, which of its errors calibration removes and which it can only measure, and what the camera–IMU calibration adds: a spatial transform and a time offset.
2. Record a static IMU log, compute its Allan deviation, read the noise values off the plot, and write them into Kalibr's `imu.yaml` with the right units.
3. Record a camera–IMU dataset that excites every axis, and run Kalibr's camera–IMU calibration on it.
4. Read the result: residuals against their 3σ bounds, bias plots, the transform against a ruler, and the time offset with its sign.
5. Explain where the time offset comes from, when it changes, and what a rig with several IMUs or wrist sensors needs instead of one fixed transform.

## Prerequisites

- **[C201, Camera calibration, hands-on](https://egocam.ai/university/c201/).** The camera–IMU calibration takes the camera calibration (`camchain.yaml`) and the target file (`target.yaml`) as inputs, so C201's lab comes first.
- **[C101, Egocentric capture fundamentals](https://egocam.ai/university/c101/)** and **[C102, Choosing a capture setup](https://egocam.ai/university/c102/)**. In the field guide, the [Basics](https://egocam.ai/basics/anatomy-of-a-capture-pipeline/) section and [IMUs on Wearable Rigs](https://egocam.ai/hardware/imu-sensors/) cover the same ground.
- Comfort with a Linux command line and ROS 1. Kalibr needs ROS 1, as its [ROS 2 guide](https://github.com/ethz-asl/kalibr/wiki/ROS2-Calibration-Using-Kalibr) says: "Kalibr requires ROS1 to run". The allan_variance_ros [README](https://github.com/ori-drs/allan_variance_ros) says it "is designed for Ubuntu 20.04".
- An IMU whose samples are timestamped on the same clock as the camera frames. Hardware timing is covered on [Hardware Sync](https://egocam.ai/sync/hardware-sync/) and in course [C203](https://egocam.ai/university/c203/).

## The lessons, in order

| # | Page | What it teaches | Time |
|---|---|---|---|
| 1 | [What the IMU measures and how it errs](https://egocam.ai/university/c202/lesson-1-what-the-imu-measures/) | Gyroscope and accelerometer; systematic and random errors; the three calibrations; what a rig's IMU hardware needs | about 10 min |
| 2 | [Measuring IMU noise](https://egocam.ai/university/c202/lesson-2-measuring-imu-noise/) | The Allan deviation, its slopes and reading points, how long to record, Kalibr's `imu.yaml` and its units, inflating static values | about 10 min |
| 3 | [Camera–IMU calibration with Kalibr](https://egocam.ai/university/c202/lesson-3-kalibr-camera-imu/) | The recording, the inputs, the IMU models, the command, the outputs and how to read them | about 10 min |
| 4 | [The time offset, several IMUs and wrists](https://egocam.ai/university/c202/lesson-4-time-offset-and-multiple-imus/) | Where the offset comes from, its sign, exposure and filters, online estimation; multi-IMU calibration; why a wrist has no fixed extrinsic | about 10 min |
| Lab | [Measure your IMU and calibrate it to the cameras](https://egocam.ai/university/c202/lab/) | A static log and Allan analysis, then Kalibr camera–IMU calibration and the time offset, with checkpoints | two working sessions: the static log alone takes hours |
| | [Checklist](https://egocam.ai/university/c202/checklist/) | A printable list: noise values, camera–IMU recording, after solving, sign-off | 5 min to read |
| | [Prompts](https://egocam.ai/university/c202/prompts/) | Copy-paste prompts for an AI assistant, each with inputs, target tool and a way to check the output | as needed |

The times are planning estimates: reading time for each lesson, plus its self-check. The lab's first part waits on a recording of at least 3 hours, the minimum allan_variance_ros states; the Kalibr wiki recommends 15 to 24 hours.

## What you need

- **Your rig**, with the cameras calibrated in C201, and the IMU's output rate and filter settings fixed at the values you will record with.
- **The calibration target** and `target.yaml` from C201. The [camera–IMU guide](https://github.com/ethz-asl/kalibr/wiki/camera-imu-calibration) recommends an Aprilgrid, to avoid pose flips during the motion.
- **A still, damped surface** where the rig can sit untouched for hours, and a way to keep its temperature steady.
- **A computer** running Linux, with Docker for Kalibr or a ROS 1 install, and a ROS 1 workspace to build allan_variance_ros.
- **A ruler or caliper**, and the rig's mechanical drawing if there is one, to check where the IMU sits relative to each camera.
- **The IMU's datasheet**, for its noise figures, ranges and filter settings.

## What this course does not cover

- **Camera intrinsics and stereo extrinsics** are course [C201](https://egocam.ai/university/c201/).
- **Time sync between separate devices** (head, wrist and external cameras) is course C203; the field guide covers it in the [Synchronisation](https://egocam.ai/sync/why-sync-matters/) section.
- **Factory IMU calibration** on rate tables and in thermal chambers, and per-session refinement, are on [IMU Calibration for Camera Rigs](https://egocam.ai/calibration/imu-calibration/) and [Factory, On-Device and Online Calibration](https://egocam.ai/calibration/factory-and-online-calibration/).
- **Running a VIO or SLAM system** on the calibrated rig is course C401. The noise values and the time offset you produce here are its inputs.

## Sources

- Field guide: [IMU Calibration for Camera Rigs](https://egocam.ai/calibration/imu-calibration/), [IMU Noise Models and Allan Variance](https://egocam.ai/calibration/imu-noise-and-allan-variance/), [Camera-IMU Time Offset](https://egocam.ai/calibration/camera-imu-time-offset/), [Multiple IMUs and Head-to-Wrist Extrinsics](https://egocam.ai/calibration/multi-imu-and-wrist-extrinsics/), [IMUs on Wearable Rigs](https://egocam.ai/hardware/imu-sensors/), [Kalibr Workflow](https://egocam.ai/kalibr/kalibr-workflow/), [Kalibr File Reference](https://egocam.ai/kalibr/kalibr-file-reference/), [glossary](https://egocam.ai/reference/glossary/#calibration).
- Kalibr wiki, ETH Zurich ASL: [camera–IMU calibration](https://github.com/ethz-asl/kalibr/wiki/camera-imu-calibration) and [ROS 2 calibration using Kalibr](https://github.com/ethz-asl/kalibr/wiki/ROS2-Calibration-Using-Kalibr).
- Ali, Q. et al. (2026). [RoboCap: A New Platform for Egocentric Robot Learning](https://arxiv.org/abs/2610.07217). arXiv:2610.07217.
- Buchanan, R. [allan_variance_ros](https://github.com/ori-drs/allan_variance_ros), Oxford Robotics Institute (README, commit `1d54b60`).
