# C401 实验：从一段录制到 LeRobot 数据集

> C401 处理课程的动手实验：在一个公开的 TUM VI 鱼眼双目序列上运行开源的 Basalt 视觉惯性系统（或 ORB-SLAM3、OpenVINS）并给它打分，在你自己的、按 EuRoC 目录结构存放的头戴录制上运行它，然后把帧和位姿导出为 LeRobotDataset v3.0 并读回。每条命令都与工具的文档或源码给出的一致，并写明许可协议。

Page: https://egocam.ai/zh-cn/university/c401/lab/

本实验带一段录制从磁盘上的图像和 IMU 采样走到一条轨迹，再从轨迹走到一个训练数据集。A 部分在一个带真值的公开鱼眼双目序列上运行一个开源的视觉惯性系统，让你看到一次好的运行是什么样子。B 部分在你自己的头戴录制上运行同一个系统。C 部分把帧和位姿导出为 LeRobotDataset v3.0 并把它们读回。

主线使用 [Basalt](https://gitlab.com/VladyslavUsenko/basalt)，因为它采用宽松许可，提供二进制文件，用 Double Sphere（双球）模型处理鱼眼双目，并且读取简单的目录结构。ORB-SLAM3 和 OpenVINS 作为备选方案给出。下面的每条命令都抄自工具自己的文档，或按文档给出的形式换成你自己的文件名；每一步都链接了来源。方括号标出需要你填写的值。

先学完[第 1 课到第 4 课](https://egocam.ai/zh-cn/university/c401/)，并把[检查清单](https://egocam.ai/zh-cn/university/c401/checklist/)放在手边。

## 开始之前先看许可协议

| 组件 | 许可协议 | 来源 |
|---|---|---|
| Basalt | BSD 3-clause（"Note also the different licenses of thirdparty code"，意为：还要注意第三方代码的不同许可协议） | [Basalt README](https://gitlab.com/VladyslavUsenko/basalt) |
| ORB-SLAM3 | GPL-3.0 | [UZ-SLAMLab/ORB_SLAM3](https://github.com/UZ-SLAMLab/ORB_SLAM3) |
| OpenVINS | GPL-3.0 | [rpng/open_vins](https://github.com/rpng/open_vins) |
| lerobot | Apache-2.0 | [huggingface/lerobot](https://github.com/huggingface/lerobot) |
| TUM VI 数据 | CC BY 4.0；其源代码为 BSD-2-Clause | [TUM VI 数据集页面](https://vision.in.tum.de/data/datasets/visual-inertial-dataset) |

GPL-3.0 是 copyleft 许可协议：如果处理流程将随闭源产品发布，在基于 ORB-SLAM3 或 OpenVINS 搭建之前先核对它的义务（[SLAM 与 VIO 系统对比](https://egocam.ai/zh-cn/processing/slam-vio-systems-compared/)）。本实验中没有任何组件是非商业性的，但你以后可能加入的手部和身体模型往往是（[第 2 课](https://egocam.ai/zh-cn/university/c401/lesson-2-hands-and-body/)）。

## A 部分：带真值的公开序列

TUM VI 是一个视觉惯性基准，用手持设备而不是头戴设备录制，带有 195° 鱼眼双目相机和一个 IMU。它的页面写明 "the cameras and IMU sensors are time-synchronized in hardware"（意为：相机和 IMU 传感器在硬件上做了时间同步）。`room` 序列全程处在动作捕捉的覆盖之下（[VIO 基准与真值](https://egocam.ai/zh-cn/processing/vio-benchmarks-and-ground-truth/)），所以整条轨迹都可以打分。这一部分使用 `room1`。

### 步骤 A1：安装 Basalt

[Basalt README](https://gitlab.com/VladyslavUsenko/basalt) 给出了适用于 Ubuntu 22.04 及更高版本（amd64）的二进制安装方式：

```bash
curl -LsSf https://gitlab.com/VladyslavUsenko/basalt/-/raw/master/scripts/install.sh | sh
```

"The installer places binaries in `~/.local/bin`, libraries in `~/.local/lib`, and data files in `~/.local/etc/basalt`."（意为：安装程序把二进制文件放在 `~/.local/bin`，库放在 `~/.local/lib`，数据文件放在 `~/.local/etc/basalt`。）（[README，原始文本](https://gitlab.com/VladyslavUsenko/basalt/-/raw/master/README.md)）数据文件中包含 TUM VI 的标定和配置。README 还给出了使用 CMake 预设的源码构建方式。

**你应该看到** `basalt_vio` 在你的路径中，`tumvi_512_ds_calib.json` 和 `tumvi_512_config.json` 在 `~/.local/etc/basalt/` 下。

### 步骤 A2：下载序列

Basalt 的 [VIO 与建图指南](https://gitlab.com/VladyslavUsenko/basalt/-/blob/master/doc/VioMapping.md)从 TUM VI 的 EuRoC 格式导出版本中下载 `magistrale1`。用同一个导出版本下载 `room1`：

```bash
mkdir tumvi_data
cd tumvi_data
wget http://vision.in.tum.de/tumvi/exported/euroc/512_16/dataset-room1_512_16.tar
tar -xvf dataset-room1_512_16.tar
```

**你应该看到**一个文件夹 `dataset-room1_512_16/mav0/`，其中有 `cam0/`、`cam1/`、`imu0/` 和一个真值文件夹。如果下载地址已经变了，[TUM VI 数据集页面](https://vision.in.tum.de/data/datasets/visual-inertial-dataset)列出了当前的链接。

### 步骤 A3：运行视觉惯性里程计

这是指南中的命令，换成 `room1` 文件夹，关闭图形界面，并加上保存结果的两个选项。`--save-trajectory` 接受 `tum`、`euroc` 或 `kitti`，`--result-path` 写出相对数据集真值的 RMS ATE（[`src/vio.cpp`](https://gitlab.com/VladyslavUsenko/basalt/-/blob/master/src/vio.cpp)）：

```bash
basalt_vio --dataset-path dataset-room1_512_16/ \
  --cam-calib ~/.local/etc/basalt/tumvi_512_ds_calib.json \
  --dataset-type euroc \
  --config-path ~/.local/etc/basalt/tumvi_512_config.json \
  --marg-data tumvi_marg_data \
  --show-gui 0 \
  --save-trajectory euroc \
  --result-path room1_result.json
```

**你应该看到**工作文件夹中的 `trajectory.csv`，每个位姿一行，形式为 `#timestamp [ns],p_RS_R_x [m],p_RS_R_y [m],p_RS_R_z [m],q_RS_w [],q_RS_x [],q_RS_y [],q_RS_z []`，以及带有 `rms_ate`、`num_frames` 和 `exec_time_ns` 的 `room1_result.json`。在 Basalt 的代码中，保存的位姿是 `T_w_i`：世界坐标系中的 IMU 机体，而不是相机。

**检查点**。用 `--show-gui 1` 再运行一次，并按下 `align_se3`：指南说它 "aligns the GT trajectory with the current estimate using an SE(3) transformation and prints the transformation and the root-mean-squared absolute trajectory error (RMS ATE)"（意为：用一个 SE(3) 变换把真值轨迹与当前估计对齐，并打印这个变换和均方根绝对轨迹误差（RMS ATE））（[VioMapping.md，原始文本](https://gitlab.com/VladyslavUsenko/basalt/-/raw/master/doc/VioMapping.md)）。把这个数值连同序列和系统的版本一起写下来。只把它与用同样方式测得的数值比较（[第 1 课](https://egocam.ai/zh-cn/university/c401/lesson-1-camera-poses/)）。

**如果失败**：找不到文件的错误通常意味着标定或配置的路径与你的安装不符；指南指出它的路径适用于已安装的软件包，而源码构建把这些文件放在代码仓库的 `data` 文件夹中。指南还警告说："It appears that only the datasets in ASL Dataset Format (`euroc` dataset type in our notation) contain ground truth that is time-aligned to the IMU and camera images."（意为：看来只有 ASL Dataset Format 的数据集（按我们的记法是 `euroc` 数据集类型）包含与 IMU 和相机图像时间对齐的真值。）（[VioMapping.md，原始文本](https://gitlab.com/VladyslavUsenko/basalt/-/raw/master/doc/VioMapping.md)）请对照 EuRoC 格式的导出版本打分，而不是对照 bag。

### 备选方案 A：ORB-SLAM3（GPL-3.0）

先安装它的依赖项（Pangolin、OpenCV、Eigen），再按 [ORB-SLAM3 README](https://github.com/UZ-SLAMLab/ORB_SLAM3) 给出的方式构建：

```bash
git clone https://github.com/UZ-SLAMLab/ORB_SLAM3.git ORB_SLAM3
cd ORB_SLAM3
chmod +x build.sh
./build.sh
```

`build.sh` 还会解压词典 `Vocabulary/ORBvoc.txt`。README 的 TUM VI 一节提到一个 `tum_vi_examples` 脚本，而在提交 `4452a3c` 处代码仓库中没有它；双目惯性示例程序自己的用法说明行是（[`stereo_inertial_tum_vi.cc`](https://github.com/UZ-SLAMLab/ORB_SLAM3/blob/master/Examples/Stereo-Inertial/stereo_inertial_tum_vi.cc)）：

```text
Usage: ./stereo_inertial_tum_vi path_to_vocabulary path_to_settings path_to_image_folder_1 path_to_image_folder_2 path_to_times_file path_to_imu_data (trajectory_file_name)
```

代码仓库自带每个 TUM VI 序列的设置文件、时间戳文件和 IMU 文件，所以对 `room1`：

```bash
./Examples/Stereo-Inertial/stereo_inertial_tum_vi Vocabulary/ORBvoc.txt \
  Examples/Stereo-Inertial/TUM-VI.yaml \
  [DATA]/dataset-room1_512_16/mav0/cam0/data \
  [DATA]/dataset-room1_512_16/mav0/cam1/data \
  Examples/Stereo-Inertial/TUM_TimeStamps/dataset-room1_512.txt \
  Examples/Stereo-Inertial/TUM_IMU/dataset-room1_512.txt \
  room1
```

**你应该看到** `f_room1.txt`（所有帧）和 `kf_room1.txt`（关键帧）。在源码中，每一行是一个以纳秒为单位的时间戳，然后是 `tx ty tz qx qy qz qw`；有 IMU 时，位姿是世界坐标系中的 IMU 机体，并且只保存 Atlas 中最大的那张地图（[`System.cc`](https://github.com/UZ-SLAMLab/ORB_SLAM3/blob/master/src/System.cc)）。`TUM-VI.yaml` 使用 `KannalaBrandt8` 相机模型，并且不做校正，正如 README 对鱼眼双目的描述。

### 备选方案 A：OpenVINS（GPL-3.0）

OpenVINS 文档给出的路径使用 ROS。它的[安装指南](https://docs.openvins.com/gs-installing.html)涵盖 ROS 1 和 ROS 2，它的[教程](https://docs.openvins.com/gs-tutorial.html)在 ROS 1 中用下面的命令运行一个 bag：

```bash
roscore # term 0
source devel/setup.bash # term 1
roslaunch ov_msckf subscribe.launch config:=euroc_mav
```

并在另一个终端中播放 bag。代码仓库自带一份 `tum_vi` 配置，它的 `serial.launch` 直接读取 bag，并在设置了 `dosave` 时保存估计结果；它的参数是 `config`、`dataset`、`bag`、`dosave` 和 `path_est`（[serial.launch](https://github.com/rpng/open_vins/blob/master/ov_msckf/launch/serial.launch)）。OpenVINS 以 `kalibr_imucam_chain.yaml` 和 `kalibr_imu_chain.yaml` 的形式接受标定，它们 "should be the same as Kalibr's"（意为：应当与 Kalibr 的相同），所以课程 C201 得到的 Kalibr 标定可以直接沿用。用它的评估工具给一次运行打分，如[误差评估页面](https://docs.openvins.com/eval-error.html)所示：

```bash
rosrun ov_eval error_singlerun <align_mode> <file_gt.txt> <file_est.txt>
```

## B 部分：你自己的头戴录制

### 步骤 B1：把录制整理成 EuRoC 目录结构

Basalt 的 `euroc` 读取器要求在你的数据集文件夹下有（[`dataset_io_euroc.h`](https://gitlab.com/VladyslavUsenko/basalt/-/blob/master/include/basalt/io/dataset_io_euroc.h)）：

- `mav0/cam0/data.csv`：每帧一行，一个以纳秒为单位的时间戳，一个逗号，然后是图像文件名；
- `mav0/cam0/data/` 和 `mav0/cam1/data/`：图像。读取器**按第一台相机的文件名**查找第二台相机的图像，所以两台相机必须共用时间戳，硬件同步的双目对给出的正是这样的结果；
- `mav0/imu0/data.csv`：每个 IMU 采样一行，一个以纳秒为单位的时间戳，然后是陀螺仪的 x、y、z 和加速度计的 x、y、z，以逗号分隔；
- 可选：真值，放在 `mav0/state_groundtruth_estimate0/`、`mav0/gt/` 或 `mav0/mocap0/` 中。

以 `#` 开头的行会被跳过。编写你的转换程序，把你的录制容器（MCAP、VRS、相机自己的文件）转成这种目录结构，并让相机和 IMU 的时间戳保持在同一时钟上（[为什么同步很重要](https://egocam.ai/zh-cn/sync/why-sync-matters/)）。

**检查点**：`cam0/data.csv` 的第一个和最后一个时间戳落在 IMU 的时间范围之内，并且 `cam0/data.csv` 中的每个文件名在 `cam0/data/` 和 `cam1/data/` 中都存在。

为什么做这两项检查：视觉惯性追踪在帧与帧之间对 IMU 做积分（[为什么同步很重要](https://egocam.ai/zh-cn/sync/why-sync-matters/)），所以落在 IMU 时间范围之外的帧没有惯性测量值把它与相邻的帧联系起来。而且只有当两幅图像在同一时刻拍摄时，一个双目对才是一次双目测量：在实用指南的例子中，头以 100°/s 转动，由一台 1280 像素、视场角 90° 的相机观察，两次曝光之间 10 ms 的间隔会使图像移动约 11 px，这直接进入双目深度（[转动的头](https://egocam.ai/zh-cn/sync/why-sync-matters/)）。

### 步骤 B2：标定和配置

`basalt_vio` 需要一份 Basalt JSON 格式的相机–IMU 标定和一个配置文件。Basalt 的[标定指南](https://gitlab.com/VladyslavUsenko/basalt/-/blob/master/doc/Calibration.md)在公开的标定录制上演示了 `basalt_calibrate`（相机，用 `--cam-types ds ds` 表示 Double Sphere 模型）和 `basalt_calibrate_imu`（相机加 IMU）。它的命令中的 IMU 噪声值属于那些数据集的传感器：请使用你自己的数值，按课程 C202 教的方法测量（[C202 第 2 课：测量 IMU 噪声](https://egocam.ai/zh-cn/university/c202/lesson-2-measuring-imu-noise/)；[采集设备的 IMU 标定](https://egocam.ai/zh-cn/calibration/imu-calibration/)）。估计器用这些数值来决定相对于相机该在多大程度上信任 IMU；数值太小会使它 "trust your IMU measurements too much"（意为：过于信任你的 IMU 测量值），正如 Kalibr 的 [IMU 噪声模型](https://github.com/ethz-asl/kalibr/wiki/IMU-Noise-Model)所警告的。从自带的 TUM VI 配置文件开始，一次只改一项设置。

### 步骤 B3：运行并查看

用你的文件夹和文件运行与步骤 A3 相同的命令。没有真值时，`--result-path` 没有可以对照打分的东西；请使用实用指南为现场给出的检查办法（[第 1 课](https://egocam.ai/zh-cn/university/c401/lesson-1-camera-poses/)）：

- **重访标记点**。在同一个做了标记的位置开始和结束录制；第一个位姿与最后一个位姿之间的距离就是录制结束时的漂移。
- **困难时刻**。记下运行在哪些地方吃力：快速转头、双手占满视野、头几秒。这些就是[在可穿戴素材上运行 SLAM](https://egocam.ai/zh-cn/processing/slam-on-wearable-footage/) 中的失效模式。

## C 部分：导出为 LeRobotDataset v3.0 并读回

这一部分写一个 episode：左相机的帧，以及来自 Basalt 的 `trajectory.csv` 的 IMU 机体位姿。它不存储动作，因为人类采集没有机器人动作；由手和位姿构造动作是课程 C402 的内容（[第 4 课](https://egocam.ai/zh-cn/university/c401/lesson-4-training-formats/)）。

### 步骤 C1：安装 lerobot

按照[安装指南](https://huggingface.co/docs/lerobot/installation)，在 Python 3.12 环境中：

```bash
conda create -y -n lerobot python=3.12
conda activate lerobot
conda install ffmpeg -c conda-forge
pip install 'lerobot[dataset]'
```

指南指出，默认的视频解码器 TorchCodec 需要 `ffmpeg`。`dataset` 这个 extra 很重要：单纯的 `pip install lerobot` "installs only the core ML dependencies"（意为：只安装核心的机器学习依赖项），而指南的 extras 表中把 `dataset` 列为用于 "Loading & creating datasets"（意为：加载和创建数据集）。没有它，`from lerobot.datasets import LeRobotDataset` 会以一个指明该 extra 名称的 ImportError 终止。本实验是针对 lerobot 0.7.0 编写的，步骤 C2 和 C3 中的脚本用它在一个按 EuRoC 目录结构存放的小型合成序列上测试过。

### 步骤 C2：写入 episode

脚本只使用文档中记载的写入 API：`LeRobotDataset.create(repo_id, fps, features, root=...)`、带 `task` 键的 `add_frame()`、`save_episode()` 和 `finalize()`（[LeRobotDataset v3.0 文档](https://huggingface.co/docs/lerobot/lerobot-dataset-v3)、[lerobot_dataset.py](https://github.com/huggingface/lerobot/blob/v0.7.0/src/lerobot/datasets/lerobot_dataset.py)）。feature 的格式沿用 lerobot 自己的 DROID 移植脚本（[port_droid.py](https://github.com/huggingface/lerobot/blob/v0.7.0/examples/port_datasets/port_droid.py)）。属于本实验而不属于 lerobot 的选择，在注释中做了标记。

```python

from pathlib import Path

from PIL import Image
from lerobot.datasets import LeRobotDataset

seq = Path(sys.argv[1])            # e.g. dataset-room1_512_16
traj = Path(sys.argv[2])           # Basalt trajectory.csv (--save-trajectory euroc)
out = Path(sys.argv[3])            # a new, empty folder for the dataset

# Camera frames: timestamp [ns], file name
frames = []
for line in (seq / "mav0/cam0/data.csv").read_text().splitlines():
    if line.startswith("#") or not line.strip():
        continue
    t, name = [x.strip() for x in line.split(",")[:2]]
    frames.append((int(t), name))

# Basalt poses: timestamp [ns], position, quaternion w, x, y, z (T_w_i)
poses = {}
for line in traj.read_text().splitlines():
    if line.startswith("#") or not line.strip():
        continue
    t, *v = line.split(",")
    poses[int(t)] = [float(x) for x in v]   # int, not float: keep every nanosecond

# This lab's choice: keep only frames that have a pose, and report gaps.
kept = [(t, n) for t, n in frames if t in poses]
print(f'{len(frames)} frames, {len(kept)} with a pose')
dt = np.diff([t for t, _ in kept]) / 1e9
fps = round(1.0 / np.median(dt))
print(f'fps {fps}, largest gap {dt.max():.3f} s')

first = np.array(Image.open(seq / "mav0/cam0/data" / kept[0][1]))
h, w = first.shape[:2]

features = {
    "observation.images.cam0": {
        "dtype": "video", "shape": (h, w, 3),
        "names": ["height", "width", "channels"],
    },
    # This lab's choice: IMU body pose in Basalt's world frame,
    # position in metres, quaternion in x, y, z, w order.
    "observation.state": {
        "dtype": "float32", "shape": (7,),
        "names": {"axes": ["x", "y", "z", "qx", "qy", "qz", "qw"]},
    },
}

ds = LeRobotDataset.create(repo_id="local/c401_lab", fps=fps,
                           features=features, root=out)
try:
    for t, name in kept:
        img = np.array(Image.open(seq / "mav0/cam0/data" / name))
        if img.dtype == np.uint16:      # this lab's choice: 16-bit to 8-bit
            img = (img >> 8).astype(np.uint8)
        if img.ndim == 2:               # greyscale to three channels
            img = np.stack([img] * 3, axis=-1)
        px, py, pz, qw, qx, qy, qz = poses[t]
        ds.add_frame({
            "observation.images.cam0": img,
            "observation.state": np.array([px, py, pz, qx, qy, qz, qw],
                                          dtype=np.float32),
            "task": 'TUM VI room1, handheld, IMU pose from Basalt',
        })
    ds.save_episode()
finally:
    ds.finalize()
```

用你的三个路径运行它。lerobot 把每一帧的时间戳设为它的索引除以 `fps`（[第 4 课](https://egocam.ai/zh-cn/university/c401/lesson-4-training-formats/)），所以脚本会打印保留下来的帧之间的最大间隔：如果它比 `1/fps` 大得多，说明有帧缺失，存储的时间戳会偏离真实的时间戳。这时应在缺口处结束 episode。

**你应该看到**在你的输出文件夹下有 `meta/info.json`、`meta/stats.json`、`meta/tasks.parquet`、`meta/episodes/`、`data/chunk-000/file-000.parquet` 和 `videos/observation.images.cam0/chunk-000/file-000.mp4`，即[第 4 课](https://egocam.ai/zh-cn/university/c401/lesson-4-training-formats/)中的 v3.0 目录结构。

> **Diagram:** Why LeRobotDataset v3.0 changed the layout. In v2.1 every episode has its own Parquet file and one MP4 per camera, so the file count grows with episodes times cameras. In v3.0 many episodes are concatenated into each Parquet shard and each camera's MP4 shard, and a row in meta/episodes records each episode's length, task and offsets, which locate it as a row range in the data and a time range in the video. Shard sizes are lerobot's defaults. Sources: the LeRobotDataset v3.0 docs and lerobot's datasets/utils.py (v0.3.3 for v2.1, main for v3.0).

### 步骤 C3：读回

按 [v3.0 文档](https://huggingface.co/docs/lerobot/lerobot-dataset-v3)所示加载数据集，把你的本地文件夹作为 `root`：

```python
from lerobot.datasets import LeRobotDataset

ds = LeRobotDataset("local/c401_lab", root="[OUTPUT_FOLDER]")
print(ds.num_episodes, ds.num_frames, ds.fps)
sample = ds[100]
print(sample["observation.state"], sample["observation.images.cam0"].shape)
```

**你应该看到**一个 episode、保留下来的帧数、你的 fps、一个七个值的状态，以及一个形状为 `[C, H, W]` 的图像张量。

**检查点**：把 `sample["observation.state"]` 与第 101 个保留下来的位姿（索引 100）比较：数值相同，只是四元数从 Basalt 的 `w, x, y, z` 重新排成了你声明的 `x, y, z, w`。

### 步骤 C4：写下这些数值的含义

LeRobot 的 `meta/info.json` 没有存放标定或坐标系的字段（[第 4 课](https://egocam.ai/zh-cn/university/c401/lesson-4-training-formats/)）。把 Basalt 的标定文件放在 `meta/` 下，并在数据集卡片上写明：位姿处在哪个坐标系（这里是 IMU 机体，`T_w_i`）、单位、四元数顺序、产生它的系统和版本、序列的许可协议，以及没有位姿的帧是怎样处理的。课程 C402 正是在这些事实之上构造动作。

一旦加入手，坐标系就变得重要。手部关节是在相机坐标系中测量的，所以它们要靠相机的位姿转到世界坐标系，`T_world_cam = T_world_imu · T_imu_cam`，其中用到你的标定给出的相机–IMU 变换。如果把 Basalt 的 IMU 位姿当成相机的位姿，每个手部点都会按 IMU 与相机之间的偏移发生平移和旋转。

## 参考来源

- Basalt，Usenko et al.：[README](https://gitlab.com/VladyslavUsenko/basalt)、[VIO 与建图指南](https://gitlab.com/VladyslavUsenko/basalt/-/blob/master/doc/VioMapping.md)、[标定指南](https://gitlab.com/VladyslavUsenko/basalt/-/blob/master/doc/Calibration.md)，以及 [`src/vio.cpp`](https://gitlab.com/VladyslavUsenko/basalt/-/blob/master/src/vio.cpp) 和 [`dataset_io_euroc.h`](https://gitlab.com/VladyslavUsenko/basalt/-/blob/master/include/basalt/io/dataset_io_euroc.h) 源码（master，提交 `0f3b2b52`）。
- ORB-SLAM3，UZ-SLAMLab：[README](https://github.com/UZ-SLAMLab/ORB_SLAM3)、[`stereo_inertial_tum_vi.cc`](https://github.com/UZ-SLAMLab/ORB_SLAM3/blob/master/Examples/Stereo-Inertial/stereo_inertial_tum_vi.cc) 和 [`System.cc`](https://github.com/UZ-SLAMLab/ORB_SLAM3/blob/master/src/System.cc)（提交 `4452a3c`）。
- OpenVINS，RPNG：[安装](https://docs.openvins.com/gs-installing.html)、[教程](https://docs.openvins.com/gs-tutorial.html)、[误差评估](https://docs.openvins.com/eval-error.html)和 [serial.launch](https://github.com/rpng/open_vins/blob/master/ov_msckf/launch/serial.launch)（提交 `6948812`）。
- Hugging Face lerobot（v0.7.0）：[安装](https://huggingface.co/docs/lerobot/installation)、[LeRobotDataset v3.0](https://huggingface.co/docs/lerobot/lerobot-dataset-v3)、[lerobot_dataset.py](https://github.com/huggingface/lerobot/blob/v0.7.0/src/lerobot/datasets/lerobot_dataset.py)、[port_droid.py](https://github.com/huggingface/lerobot/blob/v0.7.0/examples/port_datasets/port_droid.py)。
- Kalibr wiki，ETH Zurich ASL：[IMU 噪声模型](https://github.com/ethz-asl/kalibr/wiki/IMU-Noise-Model)。
- TUM VI：[数据集页面](https://vision.in.tum.de/data/datasets/visual-inertial-dataset)；Schubert, D. et al. (2018). [The TUM VI benchmark for evaluating visual-inertial odometry](https://arxiv.org/abs/1804.06120). *IEEE/RSJ IROS*.
- 实用指南：[SLAM 与 VIO 系统对比](https://egocam.ai/zh-cn/processing/slam-vio-systems-compared/)、[VIO 基准与真值](https://egocam.ai/zh-cn/processing/vio-benchmarks-and-ground-truth/)、[在可穿戴素材上运行 SLAM](https://egocam.ai/zh-cn/processing/slam-on-wearable-footage/)、[训练数据格式：LeRobot、RLDS 及同类格式](https://egocam.ai/zh-cn/processing/training-formats-lerobot-rlds/)、[为什么同步很重要](https://egocam.ai/zh-cn/sync/why-sync-matters/)、[采集设备的 IMU 标定](https://egocam.ai/zh-cn/calibration/imu-calibration/)。
