在终端输入evo,显示如下,提示evo安装成功。
usage: evo [-h] {pkg,cat_log} ...
(c) evo authors - license: run 'evo pkg --license'
More docs are available at: github.com/MichaelGrupp/evo/wiki
Python package for the evaluation of odometry and SLAM
Supported trajectory formats:
* TUM trajectory files
* KITTI pose files
* ROS and ROS2 bagfile with geometry_msgs/PoseStamped,
geometry_msgs/TransformStamped, geometry_msgs/PoseWithCovarianceStamped,
nav_msgs/Odometry topics or TF messages
* EuRoC MAV dataset groundtruth files
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 /home/ys/Documents/orbslam_data/MH_05_difficult/mav0/state_groundtruth_estimate0
evo_traj euroc data.csv --plot
输出报错:
[ERROR] Unhandled error in evo.main_traj
Traceback (most recent call last):
File "/home/ys/.local/lib/python3.9/site-packages/evo/entry_points.py", line 92, in launch
main_module.run(args)
File "/home/ys/.local/lib/python3.9/site-packages/evo/main_traj.py", line 420, in run
from evo.tools import plot
File "/home/ys/.local/lib/python3.9/site-packages/evo/tools/plot.py", line 29, in <module>
import matplotlib as mpl
ModuleNotFoundError: No module named 'matplotlib'
[ERROR] evo module evo.main_traj crashed - no logfile written (disabled)
很多贴提示用下面两行解决:
pip install matplotlib --upgrade
pip install numpy --upgrade --user
但是我的问题依旧没有得到解决。
后面我在https://github.com/MichaelGrupp/evo下载了evo源码,然后
cd /home/ys/Documents/software/evo-master
pip install --editable . --upgrade --no-binary evo
用源码安装,并且查看了此时的python版本是Python 3.10.4
后面问题得到了解决,evo可以正常运行了。