# C401 Lesson 1: Camera Poses from Wearable Footage

> The first lesson of the C401 processing course: why every egocentric pipeline needs a camera pose per frame, what visual odometry, visual-inertial odometry and SLAM estimate, why head-worn video breaks them, the published fixes, how to choose a system by licence, lens and calibration, and how to score a trajectory with ATE and RPE.

Page: https://egocam.ai/university/c401/lesson-1-camera-poses/

A hand detector run on one frame measures the hand relative to a lens that moves with the wearer's head. Before that becomes a trajectory a robot can learn from, the pipeline has to subtract the head's motion, and for that it needs the camera's pose at every timestamp. This lesson covers how pipelines get that pose from head-worn footage and how to tell whether it is right. The full treatment is on [SLAM and VIO Basics](https://egocam.ai/processing/slam-and-vio-basics/) and [Running SLAM on Wearable Footage](https://egocam.ai/processing/slam-on-wearable-footage/).

## Terms used in this lesson

All of these are also in the [glossary's SLAM section](https://egocam.ai/reference/glossary/#slam-vio-and-3d-reconstruction).

| Term | Meaning |
|---|---|
| 6-DoF pose | 3D position plus 3D orientation of the camera (or IMU body) in a fixed world frame |
| Visual odometry (VO) | Estimating motion frame to frame from images alone, without a reusable map; error accumulates |
| Visual-inertial odometry (VIO) | Odometry that fuses images with an IMU (gyroscope and accelerometer) |
| SLAM | Simultaneous localisation and mapping: odometry plus a map the estimator can recognise and reuse, so drift is corrected when a place is seen again |
| Bundle adjustment (BA) | Optimisation that jointly refines camera poses and 3D points so reprojected points match their detections |
| Loop closure | Recognising a revisited place and pulling accumulated drift back out of the trajectory |
| Causal vs offline | A causal estimate uses only past and present measurements; an offline one can use the whole recording |
| ATE / RPE | Absolute trajectory error (RMS position error after one alignment of the whole trajectory) and relative pose error (error of the motion over a fixed interval) |

## Why a pipeline needs poses

The RoboCap authors put the stakes plainly: "The quality of egocentric data is bounded by the accuracy of its 3D labels, namely the human hand and head poses" ([RoboCap, 2026](https://arxiv.org/abs/2610.07217)). Poses also give a trajectory a consistent "up" from the IMU's gravity estimate, put several devices in one frame when they localise against the same map, and are the input to 3D reconstruction ([SLAM and VIO Basics](https://egocam.ai/processing/slam-and-vio-basics/#why-an-egocentric-pipeline-needs-camera-poses)).

## VO, VIO and SLAM

The ORB-SLAM3 authors state the difference: "In contrast, VO systems put their focus on computing the agent’s ego-motion, not on building a map" ([Campos et al., 2020](https://arxiv.org/abs/2007.11898)). Adding an IMU changes what can drift. Gravity is an absolute vertical reference, so roll and pitch stop drifting; position and yaw (rotation about gravity) still drift, and loop closure is what bounds them ([SLAM and VIO Basics](https://egocam.ai/processing/slam-and-vio-basics/#vo-vio-and-slam-what-each-one-remembers)).

> **Diagram:** The parts of a visual-inertial SLAM system. The front-end tracks features (or compares pixels, in direct methods), the IMU is preintegrated between frames, and the back-end, a filter or a sliding-window bundle adjustment, turns both into a pose for every frame. Odometry stops there and drifts; SLAM adds loop closure to correct that drift when a place is seen again. Calibration is an input to every stage.

Inside every estimator are a **front-end**, which turns images into measurements (tracked features, or pixel intensities in direct methods), and a **back-end**, either a filter such as [OpenVINS](https://udel.edu/~pgeneva/downloads/papers/c10.pdf) or a sliding-window bundle adjustment such as [Basalt](https://arxiv.org/abs/1904.06504v3) or ORB-SLAM3's local mapping. Both kinds take calibration as given. A second camera does not help if its extrinsics are wrong: "Stereo cameras with an IMU didn’t always perform best, because it requires more accurate calibration than the case of a monocular camera with an IMU" ([VINS-Fusion](https://arxiv.org/abs/1901.03638), quoted on [SLAM and VIO Basics](https://egocam.ai/processing/slam-and-vio-basics/#calibration-sets-a-floor-on-accuracy)).

## Metric scale: stereo versus one camera

**Metric scale** means distances come out in real metres. A calibrated stereo pair gives metric depth by triangulation on the first frame. With one camera, vision recovers motion only up to an unknown scale and the IMU must supply it, which it can only do when the device accelerates ([SLAM and VIO Basics](https://egocam.ai/processing/slam-and-vio-basics/#metric-scale-and-initialisation)).

Why one camera cannot see scale: a pinhole camera records only directions, the ratios X/Z and Y/Z. Scale the whole scene and every camera step by the same factor and the images do not change, so a room twice as large walked with steps twice as long looks identical. A stereo baseline is a known length in metres, and an accelerometer reports metres per second squared; either one fixes the factor. At constant velocity the accelerometer has no motion to compare, which is why the IMU needs acceleration.

A working head mostly turns. The MEgoVista authors: "Head-worn capture is rotation-dominated, so translation over a keyframe interval is often negligible" ([MEgoVista](https://arxiv.org/abs/2609.16684)). Pure rotation gives a single camera no parallax, so neither depth nor scale can be recovered from the images.

> **Diagram:** Why rotation-dominated head motion starves a single camera of depth. Translation gives two viewpoints whose rays cross at the point (parallax); pure rotation about the camera centre gives the same ray twice, so neither depth nor scale can be recovered from the images. A stereo pair has a baseline in every frame. Standard multi-view geometry; schematic.

## What breaks on head-worn footage, and the published fixes

| Failure | What goes wrong | Published fix | Source |
|---|---|---|---|
| Fast rotation, blur | Tracks die; the tracker drifts or diverges | More cameras in one estimator; downsampling for a patch tracker; offline refinement | [RoboCap](https://arxiv.org/abs/2610.07217) |
| Rotation-dominated motion | Monocular-inertial scale slow or wrong | Stereo metric seed; gravity from the IMU afterwards | [MEgoVista](https://arxiv.org/abs/2609.16684) |
| Fragile monocular start | Lost frames at the start of each clip | A saved map of the workspace as initialisation | [UMI](https://arxiv.org/abs/2402.10329v2) |
| Hands and objects in view | Moving pixels pull the camera estimate | Hand masks in the image and in the confidence weights | [HaWoR](http://arxiv.org/abs/2501.02973) |
| Calibration drift | Wrong stereo depth, biased poses | Online calibration | [RoboCap](https://arxiv.org/abs/2610.07217) |

The table condenses the field guide's [failure-mode table](https://egocam.ai/processing/slam-on-wearable-footage/#failure-modes-and-published-fixes), which lists more. The hand row has a simple cause: SLAM assumes that what it tracks is static, and in egocentric manipulation the hands and held objects move independently of the head and can fill much of the view. Features on them pull the estimate toward their motion, so pipelines mask them out and estimate the camera from background pixels only ([hands and held objects in the view](https://egocam.ai/processing/slam-on-wearable-footage/#hands-and-held-objects-in-the-view)). Two of the rows are worth knowing by number. RoboCap reports that across 150 deployed hats, "factory calibration leaves a median front-pair epipolar residual of 3.8 px, which online calibration reduces to 0.56 px". And keeping the fisheye lens model, rather than rectifying, keeps the periphery that stays visible when the hands cover the centre of the image ([Running SLAM on Wearable Footage](https://egocam.ai/processing/slam-on-wearable-footage/#get-scale-from-stereo-not-from-motion)).

## Offline beats causal for labels

A live tracker can only use the past. An offline system can run bundle adjustment over the whole session once every revisit is known. On RoboCap, "the causal estimate available during capture is about twice as inaccurate as the offline trajectory" ([RoboCap](https://arxiv.org/abs/2610.07217)). Training labels are therefore usually made offline ([SLAM and VIO Basics](https://egocam.ai/processing/slam-and-vio-basics/#loop-closure-and-global-optimisation)).

## Choosing a system

Current public head rigs mostly describe their own pipelines built from published components, not an unmodified package ([SLAM and VIO Systems Compared](https://egocam.ai/processing/slam-vio-systems-compared/#what-current-rigs-run)). For a team starting out, the open systems differ on four constraints:

| Constraint | What the field guide's tables show |
|---|---|
| Licence | ORB-SLAM3, VINS-Mono, VINS-Fusion, OpenVINS, DSO and DM-VIO are GPL-3.0; Basalt, Kimera, DROID-SLAM and DPVO are permissive; MASt3R-SLAM is non-commercial |
| Lens | Fisheye without rectification: ORB-SLAM3, VINS-Mono/Fusion, OpenVINS, Basalt; DSO, DM-VIO and the learned trackers expect pinhole or undistorted images |
| Calibration that drifts | OpenVINS estimates intrinsics, extrinsics and time offset online; VINS-Mono/Fusion can estimate extrinsics and time offset; the others take calibration as input |
| No IMU, one camera | Only the visual-only systems apply (DSO, DROID-SLAM, DPVO/DPV-SLAM, MASt3R-SLAM), and all are up to scale |

Source: [SLAM and VIO Systems Compared, choosing by constraint](https://egocam.ai/processing/slam-vio-systems-compared/#choosing-by-constraint). How many cameras to use and where to point them depends on what a team's own models need; the field guide does not recommend a layout.

## Scoring a trajectory

> **Diagram:** Two ways to score the same drifting trajectory. ATE aligns the whole estimate to the reference once and takes the RMS of the remaining distances, so it grows with accumulated drift. RPE compares the motion over each fixed interval (TUM VI uses 1-second segments), so it stays small while the path drifts and measures local accuracy instead. Schematic.

ATE measures global drift over an episode; RPE measures local accuracy, which is what a short-horizon policy sees. Published numbers are only comparable inside one paper's table, with one alignment and one set of sequences ([SLAM and VIO Systems Compared](https://egocam.ai/processing/slam-vio-systems-compared/#published-accuracy-grouped-by-table)). The reference has to be better than the tracker: Shu et al. ask that "the GT error should be smaller than that of SLAM by at least half an order of magnitude" ([Shu et al., 2025](https://arxiv.org/pdf/2512.07221); see [how accurate the reference must be](https://egocam.ai/processing/vio-benchmarks-and-ground-truth/#how-accurate-the-reference-must-be)). The reason is that a measured error contains the reference's error as well as the tracker's; if the two errors are independent and the reference is about three times better, the measured number is within about 5% of the tracker's own error. Without motion capture, a marker revisit measures drift at a few points: MobileEgo Anywhere placed an ArUco marker at the start of each session and measured the drift when the wearer returned to it ([field spot checks](https://egocam.ai/processing/vio-benchmarks-and-ground-truth/#without-a-lab-spot-checks-in-the-field)).

## Self-check

1. A colleague argues that VIO makes loop closure unnecessary. Which parts of the pose still drift without it?
2. Your rig has one fisheye camera and an IMU, and the first seconds of most clips have no pose. What is the likely cause, and what did UMI do about it?
3. Your product will ship closed-source. Which of ORB-SLAM3, OpenVINS and Basalt has a permissive licence?
4. Why make training labels from an offline trajectory rather than the live one?
5. You have no motion capture in the homes you record in. How can you still measure drift?

### Answers

1. Position and yaw. Gravity makes roll and pitch observable; loop closure is what bounds the rest.
2. Monocular-inertial initialisation needs translation and acceleration, and head or hand motion that is mostly rotation gives little. UMI records a short mapping pass first and starts each demonstration from that saved map.
3. Basalt (BSD-3-Clause). ORB-SLAM3 and OpenVINS are GPL-3.0.
4. Offline bundle adjustment can use every revisit in the session; RoboCap's causal estimate was about twice as inaccurate as its offline trajectory.
5. Place a marker at the start and measure the drift each time the wearer returns to it, as MobileEgo Anywhere did. It measures drift at a few points, not along the whole trajectory.

## Sources

- Field guide: [SLAM and VIO Basics](https://egocam.ai/processing/slam-and-vio-basics/), [Running SLAM on Wearable Footage](https://egocam.ai/processing/slam-on-wearable-footage/), [SLAM and VIO Systems Compared](https://egocam.ai/processing/slam-vio-systems-compared/), [VIO Benchmarks and Ground Truth](https://egocam.ai/processing/vio-benchmarks-and-ground-truth/), [glossary](https://egocam.ai/reference/glossary/#slam-vio-and-3d-reconstruction).
- Campos et al. (2021). [ORB-SLAM3](https://arxiv.org/abs/2007.11898). *IEEE T-RO*.
- Qin, Pan, Cao and Shen (2019). [VINS-Fusion: a general optimization-based framework for local odometry estimation with multiple sensors](https://arxiv.org/abs/1901.03638). arXiv.
- Geneva et al. (2020). [OpenVINS: a research platform for visual-inertial estimation](https://udel.edu/~pgeneva/downloads/papers/c10.pdf). *ICRA*.
- Usenko, V. et al. (2020). [Visual-inertial mapping with non-linear factor recovery (Basalt)](https://arxiv.org/abs/1904.06504v3). *IEEE RA-L*.
- Ali, Q. et al. (2026). [RoboCap: A new platform for egocentric robot learning](https://arxiv.org/abs/2610.07217). arXiv.
- Maniformer (2026). [MEgoVista](https://arxiv.org/abs/2609.16684). arXiv.
- Chi et al. (2024). [Universal Manipulation Interface: In-the-wild robot teaching without in-the-wild robots](https://arxiv.org/abs/2402.10329v2). arXiv.
- Shu et al. (2025). [Spatiotemporal calibration and ground truth estimation for high-precision SLAM benchmarking in XR](https://arxiv.org/pdf/2512.07221). arXiv.
- Zhang et al. (2025). [HaWoR: World-space hand motion reconstruction from egocentric videos](http://arxiv.org/abs/2501.02973). *CVPR*.
