基础环境:anaconda3+python3.6+

官网https://github.com/MichaelGrupp/evo提供了两种使用方式:

1.源码安装:

git clone https://github.com/MichaelGrupp/evo.git

cd evo

pip install --editable . --upgrade --no-binary evo

2.类似exe的直接使用封装借口式的安装:

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

我选了第二种安装方式,方式一可以见https://blog.csdn.net/z2309323/article/details/109098659

在命令行中输入evo可以看到evo的指令说明,说明evo装好了:

The following executables are available:

Metrics:
   evo_ape - absolute pose error
   evo_rpe - relative pose error

Tools:
   evo_traj - tool for analyzing, plotting or exporting multiple trajectories
   evo_res - tool for processing multiple result files from the metrics
   evo_ipython - IPython shell with pre-loaded evo modules
   evo_fig - (experimental) tool for re-opening serialized plots
   evo_config - tool for global settings and config file manipulation

我用了官网中提供的数据测试cd xxx/test/data,

evo_traj kitti KITTI_00_ORB.txt KITTI_00_SPTAM.txt --ref=KITTI_00_gt.txt -p --plot_mode=xz

但是报错:

raise ImportError("Failed to import any qt binding")
ImportError: Failed to import any qt binding

这个问题尝试了https://blog.csdn.net/z2309323/article/details/109098659https://blog.csdn.net/someonelikesyou/article/details/104974528 推荐的方法,都不管用。

遂查看另一台电脑上之前安装使用成功的evo环境中的matplotlib版本,为3.3.3,

pip install matplotlib==3.3.3

可以运行画图了。

更多推荐