# Odometry ROSBag Dataset

Odometry ROSBag Dataset overview

面向里程计研究、ToF 感知、惯性分析和可复现 Foxglove 可视化的多传感器 ROS1 数据集。

English · GitHub 仓库 · Foxglove 示例 · 下载指南 · 引用

原始 ROSBag 文件是主要数据源。轻量级 Parquet 和 YAML 索引提供 session 级与 topic 级摘要,便于用户在下载大文件前了解数据内容。代码、导入脚本、校验脚本、测试和扩展文档维护在 GitHub 仓库:https://github.com/Ly041021/odom_dataset

Dataset workflow overview

## 项目亮点 | 能力 | 内容 | | --- | --- | | 多模态机器人感知 | ToF、飞控 IMU、雷达 IMU、MID360 LiDAR、RealSense RGB/depth/infrared 相机、里程计和 TF 数据流 | | 原始数据保留 | 原始 ROS1 `bag.bag` 文件作为数据源保留 | | 轻量检索 | Parquet/YAML 索引在下载原始数据前提供 session、topic、时长、覆盖率和质量摘要 | | 可复现可视化 | 提供 Foxglove 示例 bag 和用于紧凑检查流程的转换脚本 | | 传感器文档 | 硬件型号、ToF 工作模式、标定状态和质量报告均以结构化文件提供 | ## 数据概览 | 项目 | 数值 | | --- | --- | | Session 数量 | 52 | | 总时长 | 12,125.257 sec (202.09 min) | | 原始 ROSBag 大小 | 301.20 GiB | | Session 索引行数 | 52 | | Topic 索引行数 | 663 | | 包含全部索引传感器组的 session | 26/52 | | 原始格式 | ROS1 `bag.bag` 文件 | | 时间戳单位 | 纳秒 (`ns`) | | 可直接打开的 Foxglove 示例 | `examples/foxglove/visual_demo.bag` | ## 使用数据集 建议先下载轻量级索引。除非确实需要全部原始 ROSBag 文件,否则不建议直接克隆完整数据集。 ```python from huggingface_hub import snapshot_download snapshot_download( repo_id="ly041021/odom_dataset", repo_type="dataset", allow_patterns=["metadata/**", "quality/**", "calibration/**", "dataset.yaml"], local_dir="odom_dataset_index", ) ``` 使用 pandas 读取索引: ```python import pandas as pd sessions = pd.read_parquet("metadata/sessions.parquet") topics = pd.read_parquet("metadata/topics.parquet") ``` 确定需要的 session 后,再下载对应原始数据: ```python from huggingface_hub import snapshot_download snapshot_download( repo_id="ly041021/odom_dataset", repo_type="dataset", allow_patterns=["raw/sessions/2026-05-20_030414_odom_run029/**"], local_dir="odom_dataset_raw", ) ``` 下载可直接打开的 Foxglove 示例: ```python from huggingface_hub import hf_hub_download hf_hub_download( repo_id="ly041021/odom_dataset", repo_type="dataset", filename="examples/foxglove/visual_demo.bag", local_dir="odom_dataset_visualization", ) ``` ## Foxglove 可视化示例 数据集提供可直接打开的 Foxglove 可视化示例 `examples/foxglove/visual_demo.bag`。该示例包含同步 RGB、LiDAR、ToF、IMU 和里程计视图,用户无需先处理原始 bag 即可快速检查数据内容。

Foxglove multi-modal visualization

| RGB / Depth | LiDAR | | --- | --- | | Foxglove RGB and depth visualization | Foxglove LiDAR point cloud visualization | | IMU 曲线 | 里程计轨迹 | | --- | --- | | Foxglove MAVROS IMU plot visualization | Foxglove odometry path visualization | | ToF Overview | | --- | | Foxglove TOFSense-M overview visualization | 推荐 3D 面板设置:`Fixed frame = odom`,`Display frame = odom`。 ## 数据结构 ```text raw/sessions//bag.bag # 原始 ROS1 bag raw/sessions//bag.bag.sha256 # 校验和 raw/sessions//metadata.yaml # session 元数据 raw/sessions//topic_summary.yaml # topic 统计信息 metadata/sessions.parquet # session 索引 metadata/topics.parquet # topic 索引 metadata/tof_sensor.yaml # TOFSense-M 级联元数据 quality/reports/ # 质量报告 calibration/robot_v1_template/ # 标定文件 docs/foxglove_visualization.md # Foxglove 可视化教程 scripts/foxglove_visual.py # Foxglove 可视化 bag 构建脚本 examples/foxglove/visual_demo.bag # 可直接打开的 Foxglove 示例 ``` ## 传感器覆盖率 | 传感器组 | Session 覆盖率 | 说明 | | --- | ---: | --- | | LiDAR | 44/52 | `/livox/lidar` | | RGB 相机 | 28/52 | `/camera/color/camera_info`, `/camera/color/image_raw` | | Depth 相机 | 35/52 | `/camera/depth/camera_info`, `/camera/depth/image_rect_raw` | | Infrared 相机 | 35/52 | `/camera/infra1/camera_info`, `/camera/infra1/image_rect_raw`, `/camera/infra2/camera_info`, `/camera/infra2/image_rect_raw` | | ToF | 50/52 | `/nlink_tofsensem_cascade` | | IMU | 52/52 | `/livox/imu`, `/mavros/imu/data`, `/mavros/imu/data_raw` | | 里程计 | 52/52 | `/ekf_quat/ekf_odom`, `/fusion_odometry/lazy_point_odom` | | TF | 52/52 | `/tf_static` | ## 记录的 Topics | 类别 | Topic | ROS 消息类型 | Sessions | Messages | Median Hz | | --- | --- | --- | ---: | ---: | ---: | | imu | `/livox/imu` | `sensor_msgs/Imu` | 44 | 1,977,290 | 200.00 | | imu | `/mavros/imu/data` | `sensor_msgs/Imu` | 52 | 2,417,806 | 199.52 | | imu | `/mavros/imu/data_raw` | `sensor_msgs/Imu` | 52 | 2,420,793 | 199.79 | | lidar | `/livox/lidar` | `livox_ros_driver2/CustomMsg` | 44 | 99,312 | 10.00 | | tof | `/nlink_tofsensem_cascade` | `nlink_parser/TofsenseMCascade` | 50 | 179,314 | 14.95 | | camera | `/camera/color/camera_info` | `sensor_msgs/CameraInfo` | 28 | 164,928 | 29.98 | | camera | `/camera/color/image_raw` | `sensor_msgs/Image` | 28 | 164,925 | 29.98 | | camera | `/camera/depth/camera_info` | `sensor_msgs/CameraInfo` | 35 | 103,077 | 15.00 | | camera | `/camera/depth/image_rect_raw` | `sensor_msgs/Image` | 35 | 103,078 | 15.00 | | camera | `/camera/infra1/camera_info` | `sensor_msgs/CameraInfo` | 35 | 103,073 | 15.00 | | camera | `/camera/infra1/image_rect_raw` | `sensor_msgs/Image` | 35 | 103,073 | 15.00 | | camera | `/camera/infra2/camera_info` | `sensor_msgs/CameraInfo` | 35 | 103,072 | 15.00 | | camera | `/camera/infra2/image_rect_raw` | `sensor_msgs/Image` | 35 | 103,072 | 15.00 | | odometry | `/ekf_quat/ekf_odom` | `nav_msgs/Odometry` | 52 | 2,395,361 | 199.31 | | odometry | `/fusion_odometry/lazy_point_odom` | `nav_msgs/Odometry` | 51 | 2,294,922 | 199.29 | | tf | `/tf_static` | `tf2_msgs/TFMessage` | 52 | 87 | 1075.35 | ## 质量说明 - 缺少 RGB color topic 的 session:24/52。 - 缺少 ToF topic 的 session:2/52。 - ToF 传感器元数据:六节点 Nooploop TOFSense-M 级联,UART 查询模式,每节点 8x8 像素。见 `metadata/tof_sensor.yaml` 和 `metadata/tof_sensor.md`。 - ToF 有效性报告:52,208,469/67,587,392 个有效像素 (77.25%)。 - `quality/reports/topic_completeness_and_tof_validity.md` 包含详细的逐 session 报告。 - `calibration/robot_v1_template/` 包含 MAVROS IMU、MID360 LiDAR、D430 infrared stereo camera 标定和明确的 ToF 外参状态。RealSense color/depth 内参应从记录的 `/camera/*/camera_info` topic 中读取。本版本不提供固定 ToF 外参。 ## 构建自定义可视化 Bag `scripts/foxglove_visual.py` 可以生成 Foxglove 可视化 bag,包括压缩 TOFSense-M overview 图、可选 RGB topic、标准 `sensor_msgs/PointCloud2` 输出 `/foxglove/livox/points`、累积 `nav_msgs/Path` 输出 `/foxglove/odom/path`、MAVROS IMU topic 和里程计 TF。Foxglove 3D 面板建议使用 `Fixed frame = odom`、`Display frame = odom`。命令示例和面板设置见 `docs/foxglove_visualization.md`。 ## 局限性 - 当前版本不定义固定 train/validation/test 划分或 benchmark 协议。 - 图像、深度帧、红外帧、雷达点云和里程计流没有预先导出为单独训练文件。 - Topic 扫描和原始 bag 解码需要可导入 `rosbag` Python 包的 ROS1 环境。 - 原始 bag 体积较大。建议先查看 Parquet 索引,再只下载所需 session。 ## 引用 ```bibtex @dataset{odometry_rosbag_dataset, title = {Odometry ROSBag Dataset}, year = {2026}, note = {Raw ROSBag storage dataset with metadata indexes} } ``` ## 许可 数据集文件使用 CC BY-NC 4.0 许可。该数据许可不允许商业使用。仓库内的数据许可说明见 `DATA_LICENSE.md`。GitHub 仓库中的源代码和文档工具另行使用 MIT License。 --- 本数据卡由 `metadata/sessions.parquet`、`metadata/topics.parquet` 和 `quality/reports/` 自动生成。