轨迹误差评估完整流程总结(使用 evo 工具)

roslaunch .launch

rosbag play your_dataset.bag -r 2.0

✅ 第二步:录制估计轨迹

复制代码

bash

复制编辑

bash 复制代码
rosbag record -O traj_only.bag /aft_mapped_to_init 

运行一段时间后 Ctrl+C 停止,生成 traj_only.bag

第三步:提取估计轨迹和真值轨迹为 CSV

复制代码

bash

复制编辑

rostopic echo -b traj_only.bag -p /aft_mapped_to_init > traj.txt rostopic echo -b your_dataset.bag -p /leica/pose/relative > gt_raw.txt

✅ 第四步:转换为 TUM 格式(8列,空格分隔)

python3 convert_traj_raw_to_tum.py traj.txt traj_tum.txt

python3 convert_gt_raw_to_tum.py gt_raw.txt gt_tum.txt

✅ 第五步:对齐估计轨迹的时间戳(手动)

head -n 1 gt_tum.txt

head -n 1 traj_tum.txt

offset = 1746711524.090586901 - 1609059060.110306978 ≈ 137652463.98028

python3 align_traj_time.py traj_tum.txt traj_tum_aligned.txt 137652463.98028

第六步:使用 evo 评估误差(最终步骤)

复制代码

bash

复制编辑

python3 -m evo.main_ape tum gt_tum.txt traj_tum_aligned.txt --align --plot

相关推荐
空中海11 小时前
第二篇:注册中心篇 — Nacos 与 Eureka 服务注册发现
spring boot·云原生·eureka
剩下了什么3 天前
docker-compose up -d --build 和 docker-compose up -d 和 docker-compose build 区别
docker·容器·eureka
Suhan427 天前
新版本Docker Desktop 自定义安装路径和下载镜像地址路径修改(附must be owned by an elevated account问题解决)
运维·docker·容器·eureka
东北甜妹7 天前
Docker 瘦身
阿里云·docker·eureka
旷世奇才李先生7 天前
Docker实战:容器化部署与Docker Compose集群管理(附企业级案例)
spring cloud·docker·eureka
亚空间仓鼠8 天前
Docker 容器技术入门与实践 (六):Docker镜像瘦身
docker·容器·eureka
Ciao1128 天前
Docker连接失败时替换第三方镜像源,不需要重启docker
docker·容器·eureka
亚空间仓鼠9 天前
Docker 容器技术入门与实践 (五):Docker Compose
docker·容器·eureka
Wy_编程9 天前
docker仓库
docker·容器·eureka
亚空间仓鼠9 天前
Docker 容器技术入门与实践 (三):Docker私有仓库
docker·容器·eureka