evo装成功了,但是报错evo module evo.main_traj crashed - no logfile written (disabled)

在终端输入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可以正常运行了。

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值