# C202 Lesson 4: The Time Offset, Several IMUs and Wrist Sensors

> The fourth lesson of the C202 IMU course: what Kalibr's timeshift_cam_imu means and its sign, where camera-IMU time offsets come from and how large they get, how exposure and IMU filters move them, how trackers estimate them online, how rigs with two IMUs are calibrated, and why a wrist sensor has no fixed extrinsic.

Page: https://egocam.ai/university/c202/lesson-4-time-offset-and-multiple-imus/

Kalibr's camera–IMU calibration writes one number that is easy to skim past: `timeshift_cam_imu`. A few milliseconds of unmodelled offset are enough to degrade visual-inertial tracking, and the number changes when the IMU filter or the exposure changes. This lesson covers the offset, then the two cases one camera–IMU pair does not cover: rigs with more than one IMU, and sensors on the wrists. The full treatment is on [Camera-IMU Time Offset](https://egocam.ai/calibration/camera-imu-time-offset/) and [Multiple IMUs and Head-to-Wrist Extrinsics](https://egocam.ai/calibration/multi-imu-and-wrist-extrinsics/).

## Terms used in this lesson

See also the glossary's [calibration](https://egocam.ai/reference/glossary/#calibration) and [synchronisation](https://egocam.ai/reference/glossary/#synchronisation-and-timing) sections.

| Term | Meaning |
|---|---|
| Time offset `t_d` | The shift that makes camera and IMU timestamps agree: t_imu = t_cam + t_d |
| Latency | A fixed delay between a sample being taken and being timestamped; it looks exactly like an offset |
| Exposure midpoint | The middle of a frame's exposure, the instant that best represents it for motion |
| Online calibration | Estimating `t_d` inside the tracker, from every recording |
| Inter-IMU extrinsics | The fixed rotation and translation of a second IMU relative to the reference IMU on the same rigid structure |
| Head-to-wrist transform | The pose of a wrist sensor in the head frame; it changes whenever the arm moves |

## The sign

The [YAML formats](https://github.com/ethz-asl/kalibr/wiki/Yaml-formats) page defines the field as "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 results file prints it as `timeshift cam0 to imu0: [s] (t_imu = t_cam + shift)`.

> **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.

From the definition ([The sign convention](https://egocam.ai/calibration/camera-imu-time-offset/#the-sign-convention)): camera timestamps that are late relative to the IMU's give a negative value; IMU timestamps that are late, from heavy IMU filtering or a camera stamped at the start of exposure, give a positive one. Other tools may use the opposite sign, and a correction applied with the wrong sign doubles the error instead of cancelling it.

## Where the offset comes from

Every stage between a physical event and its timestamp adds delay, and the camera's path differs from the IMU's. Published measurements, from the field guide's [table of causes](https://egocam.ai/calibration/camera-imu-time-offset/#where-the-offset-comes-from):

| Cause | Measured effect |
|---|---|
| IMU readout delay, one microcontroller triggering cameras and reading the IMU | a constant 5.3 ms (TUM VI) |
| IMU digital filter setting | 1.55, 5.26 and 19.95 ms on the same IMU for three filter widths (VersaVIS) |
| Images stamped at the start of exposure | offset grew with exposure, fitted slope 0.498 (Furgale et al.) |
| Commercial sensor, default SDK timestamps | 12.74 ms in a handheld recording, slope around 0.5 with exposure (RealSense ZR300) |

Two lessons follow. **The IMU filter is part of the calibration**: the VersaVIS authors wrote that "time offset is highly dependent on the imu filter configuration", so a firmware change to the IMU's rate or filter invalidates the offset. **Exposure moves the offset** unless frames are stamped at mid-exposure. With start-of-exposure stamps, a drop in exposure from 20 ms to 1 ms changes the offset by 0.5 × 19 = 9.5 ms. The fixes are to stamp at mid-exposure, to shift each trigger by half the exposure, or to log every frame's exposure and correct the stamps afterwards.

To find out which you have, calibrate at several fixed exposure times and fit the offset against exposure: a slope near +0.5 means start-of-exposure stamps, near −0.5 end-of-exposure stamps, near 0 mid-exposure stamps ([Offline estimation with Kalibr](https://egocam.ai/calibration/camera-imu-time-offset/#offline-estimation-with-kalibr)).

## How much offset matters

Qin and Shen shifted the IMU timestamps of the EuRoC benchmark and ran VINS-Mono without temporal calibration: "The performance deteriorates dramatically when the time offset increases. The tolerance interval is only within 6 milliseconds." With online calibration, accuracy no longer depended on the offset ([Qin and Shen, 2018](https://arxiv.org/abs/1808.00692v1); [How much offset a tracker tolerates](https://egocam.ai/calibration/camera-imu-time-offset/#how-much-offset-a-tracker-tolerates)).

## Kalibr's search window

Kalibr first estimates the offset by correlating the angular speed the cameras see with the angular speed the gyroscope measures, then refines it in the batch estimate. The `--timeoffset-padding` option (0.03 s by default) bounds that refinement. The [multi-IMU page](https://github.com/ethz-asl/kalibr/wiki/Multi-IMU-and-IMU-intrinsic-calibration) explains that "an initial guess for the temporal offset is obtained from correlating absolute angular velocities as perceived independently by camera and IMU", that the padding is "merely a guess for the bounds within which this offsets will vary during calibration", and that "trouble finding an appropriate value likely hints to issues in the dataset". The source does the same: the reported shift is the correlation prior plus the refined part (`getResultTimeShift` in [IccSensors.py](https://github.com/ethz-asl/kalibr/blob/master/aslam_offline_calibration/kalibr/python/kalibr_imu_camera_calibration/IccSensors.py)).

## Online estimation, and when one number is not enough

An offline offset goes stale if the rig restarts into a different buffering delay, the exposure changes, or the clocks drift. Modern trackers keep `t_d` in their state: [Li and Mourikis (2014)](https://doi.org/10.1177/0278364913515286) proved it "is locally identifiable, except in a small number of degenerate motion cases", and OpenVINS and VINS-Mono estimate it while running. Rotation is what makes it observable, and egocentric recordings have plenty of head rotation ([Online estimation in visual-inertial trackers](https://egocam.ai/calibration/camera-imu-time-offset/#online-estimation-in-visual-inertial-trackers)).

If camera and IMU run on different oscillators, the offset grows steadily and no constant can keep up. The hardware answer is one clock for every sensor; RoboCap's shared TCXO means drift "affects the absolute timeline only and not inter-sensor synchronization" ([When the offset changes during a recording](https://egocam.ai/calibration/camera-imu-time-offset/#when-the-offset-changes-during-a-recording)). A steadily changing online estimate over a long recording is the sign to look for.

## Rigs with two IMUs

Current rigs often carry two IMUs on one rigid head unit; RoboCap, the 6C cap and Aria Gen 2 all do ([Multiple IMUs on one rigid body](https://egocam.ai/calibration/multi-imu-and-wrist-extrinsics/#multiple-imus-on-one-rigid-body)). Their relative pose is fixed, so it is calibrated once per build. Kalibr does it in the same camera–IMU run ([Multi-IMU and IMU intrinsic calibration](https://github.com/ethz-asl/kalibr/wiki/Multi-IMU-and-IMU-intrinsic-calibration)):

- one `imu.yaml` per IMU after `--imu`: "The first IMU will be the reference IMU (IMU0)";
- one model per IMU after `--imu-models`;
- the IMUs synchronised beforehand: only the cameras' offset to IMU0 is estimated by maximum likelihood. `--imu-delay-by-correlation` estimates the other IMUs' offsets by correlation, which "will not be as accurate as the maximum-likelihood estimate".

The wiki's form of the command:

```bash
kalibr_calibrate_imu_camera --bag [filename.bag] --cam [camchain.yaml] --imu [imu0.yaml ... imuN.yaml] --imu-models [MODEL0 ... MODELN] --target [target.yaml]
```

The lever-arm term that separates the IMUs is small at slow rotation, so the motion must be brisk and must vary: "motions such as constant acceleration or rotation along a single axis at a constant rate result in a failure mode" ([Lee, Hanley and Bretl, 2022](https://arxiv.org/pdf/2205.14724)). Their IMU-only method needs no target; in their hardware tests Kalibr succeeded on 1 of 21 runs with a poorly lit target, and their method on all 21.

## Wrist sensors: no fixed extrinsic

A wrist camera or IMU has no rigid link to the head, so there is no constant head-to-wrist transform to calibrate. It has to be measured every frame, by SLAM on each wrist device, a shared map, an XR headset's controller tracking, or markers, or designed out by recording relative motion ([Head and wrist sensors: no fixed extrinsic](https://egocam.ai/calibration/multi-imu-and-wrist-extrinsics/#head-and-wrist-sensors-no-fixed-extrinsic)). Calibration moves to the fixed parts of that chain.

> **Diagram:** Extrinsics are the rotation R and translation t between sensors. On a rigid head unit they are fixed and calibrated once; a wrist camera moves relative to the head, so its pose is tracked frame by frame instead.

Integrating a wrist IMU alone drifts: in DexCap's test, IMU-only tracking was 8.0 ± 3.1 cm off on returning to the start, against 0.4 ± 0.2 cm with SLAM.

## Self-check

1. Kalibr reports `timeshift_cam_imu = -0.004`. Which stream's timestamps are late, and what do you add to a camera timestamp to get IMU time?
2. You calibrated at a 2 ms exposure. In the field, auto-exposure runs from 1 to 20 ms, and your frames are stamped at the start of exposure. Is the calibrated offset still right?
3. Firmware raises the IMU's filter width. Do you keep the old offset?
4. Your rig has two IMUs read by different microcontrollers with no shared clock. What does Kalibr assume, and what does that mean for accuracy?
5. Why can't you calibrate the transform between the head camera and a wrist camera once, as you did with `T_cam_imu`?

### Answers

1. The camera's: a negative shift means the image's true IMU-clock time is earlier than its camera timestamp. Add −0.004 s to the camera timestamp.
2. No. With start-of-exposure stamps the offset moves by half the change in exposure, up to 0.5 × 19 = 9.5 ms here. Stamp at mid-exposure, shift the trigger, or correct per frame from the logged exposure.
3. No. The filter setting changes the offset, by up to about 18 ms between filter widths in the VersaVIS measurements. Recalibrate.
4. That the IMUs are synchronised to each other. Without that, `--imu-delay-by-correlation` gives each extra IMU an offset from correlation, which is less accurate than the maximum-likelihood estimate; one time base for every IMU avoids the problem.
5. The arm moves, so the transform changes every frame. It has to be tracked per frame (or designed out), not calibrated once.

## Sources

- Field guide: [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/), [Kalibr File Reference](https://egocam.ai/kalibr/kalibr-file-reference/#timeshift_cam_imu), glossary sections on [calibration](https://egocam.ai/reference/glossary/#calibration) and [synchronisation](https://egocam.ai/reference/glossary/#synchronisation-and-timing).
- Kalibr wiki, ETH Zurich ASL: [YAML formats](https://github.com/ethz-asl/kalibr/wiki/Yaml-formats) and [Multi-IMU and IMU intrinsic calibration](https://github.com/ethz-asl/kalibr/wiki/Multi-IMU-and-IMU-intrinsic-calibration).
- Kalibr source code (commit `1f60227`): [IccSensors.py](https://github.com/ethz-asl/kalibr/blob/master/aslam_offline_calibration/kalibr/python/kalibr_imu_camera_calibration/IccSensors.py) and [IccUtil.py](https://github.com/ethz-asl/kalibr/blob/master/aslam_offline_calibration/kalibr/python/kalibr_imu_camera_calibration/IccUtil.py).
- Qin, T. and Shen, S. (2018). [Online temporal calibration for monocular visual-inertial systems](https://arxiv.org/abs/1808.00692v1). *IEEE/RSJ IROS*.
- Li, M. and Mourikis, A. I. (2014). [Online temporal calibration for camera–IMU systems: Theory and algorithms](https://doi.org/10.1177/0278364913515286). *The International Journal of Robotics Research*.
- Tschopp, F. et al. (2020). [VersaVIS: An open versatile multi-camera visual-inertial sensor suite](https://arxiv.org/abs/1912.02469v1). *Sensors*.
- Lee, J., Hanley, D. and Bretl, T. (2022). [Extrinsic calibration of multiple inertial sensors from arbitrary trajectories](https://arxiv.org/pdf/2205.14724).
- Ali, Q. et al. (2026). [RoboCap: A new platform for egocentric robot learning](https://arxiv.org/abs/2610.07217). arXiv:2610.07217.
- Wang, C. et al. (2024). [DexCap: Scalable and portable mocap data collection system for dexterous manipulation](https://arxiv.org/pdf/2403.07788). *RSS*.
