欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

SLAM结果评测工具——TUM Banchmark & EVO

程序员文章站 2024-03-25 08:00:27
...

1.TUM评估工具:

absolute trajectory error (ATE) and the relative pose error (RPE)

python associate.py rgb.txt depth.txt > associate.txt
python generate_pointcloud.py rgb.png depth.png  res.ply

ATE:

python evaluate_ate.py groundtruth.txt estimated.txt --plot PLOT
python evaluate_ate.py groundtruth.txt estimated.txt --max_pairs 10000 --plot figure.png --offset 0 --scale 1 --verbose

RPE:

python evaluate_rpe.py groundtruth.txt estimated.txt --fixed_delta --plot figure.png --offset 0 --scale 1 --verbose

参考:
https://vision.in.tum.de/data/datasets/rgbd-dataset/tools#evaluation
https://www.cnblogs.com/ilym/p/9525484.html
https://blog.csdn.net/bingoplus/article/details/73521955

2.EVO评估工具:

evo_ape - absolute pose error (APE) and evo_rpe - relative pose error (RPE)
安装:
pip install evo --upgrade --no-binary evo

pip install evo --upgrade --no-binary evo --user

使用:

cd /home/hong/Desktop/drawtrajectory/EVO

评测轨迹:

evo_traj tum groundtruth.txt estimated.txt --ref groundtruth.txt -va -p 
--plot_mode=xz

evo_ape - absolute pose error:

evo_ape tum groundtruth.txt estimated.txt  -va -p 

evo_rpe - relative pose error:

(保存结果为ZIP文件)

mkdir results 
evo_rpe tum groundtruth.txt estimated.txt  -va -p --save_results results/result1.ZIP

将ZIP结果存为table.txt

evo_res result/result1.ZIP -p --save_table results/table.txt
evo_traj kitti KITTI_00_ORB.txt KITTI_00_SPTAM.txt --ref=KITTI_00_gt.txt -p --plot_mode=xz

不同格式的轨迹文件及相互转换:
Examples:

evo_traj euroc data.csv --save_as_tum

https://github.com/MichaelGrupp/evo/wiki/Formats

注:
生成的文件中偶尔存在空格等不是完全规范的TUM结果,执行下列命令进行清除多余的空格:

cat results.txt | tr -s [:space:] > results_new.txt

参考:
https://github.com/MichaelGrupp/evo
https://blog.csdn.net/weixin_44386661/article/details/103080551
https://blog.csdn.net/A_L_A_N/article/details/88708979
https://www.e-learn.cn/content/qita/2521778
http://www.liuxiao.org/2017/11/%E4%BD%BF%E7%94%A8-evo-%E5%B7%A5%E5%85%B7%E8%AF%84%E6%B5%8B-vi-orb-slam2-%E5%9C%A8-euroc-%E4%B8%8A%E7%9A%84%E7%BB%93%E6%9E%9C/
https://zhuanlan.zhihu.com/p/48231990
https://zhuanlan.zhihu.com/p/88223106
https://blog.csdn.net/CSDNhuaong/article/details/101909888

3.Linux安装MeshLab

PPA 安装,打开终端,输入以下命令:
sudo add-apt-repository ppa:zarquon42/meshlab
sudo apt-get update
sudo apt-get install meshlab

卸载命令:
sudo apt-get remove meshlab

移除PPA,输入以下命令:
sudo apt-get install ppa-purge
sudu ppa-purge ppa:zarquon42/meshlab

参考: https://www.wandouip.com/t5i213024/