MichaelGrupp / evo

Python package for the evaluation of odometry and SLAM
https://michaelgrupp.github.io/evo/
GNU General Public License v3.0
3.46k stars 753 forks source link

evo can't plot topics of Rosbag #441

Closed zhaohaowu closed 2 years ago

zhaohaowu commented 2 years ago

When I runevo_traj bag ROS_example.bag --all_topics -p there is an error, as follows:

[ERROR] Unhandled error in evo.main_traj
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/evo/entry_points.py", line 92, in launch
    main_module.run(args)
  File "/usr/local/lib/python3.6/dist-packages/evo/main_traj.py", line 317, in run
    trajectories, ref_traj = load_trajectories(args)
  File "/usr/local/lib/python3.6/dist-packages/evo/main_traj.py", line 213, in load_trajectories
    import rosbag
  File "/opt/ros/melodic/lib/python2.7/dist-packages/rosbag/__init__.py", line 33, in <module>
    from .bag import Bag, Compression, ROSBagException, ROSBagFormatException, ROSBagUnindexedException
  File "/opt/ros/melodic/lib/python2.7/dist-packages/rosbag/bag.py", line 53, in <module>
    from Cryptodome.Cipher import AES
ModuleNotFoundError: No module named 'Cryptodome'

[ERROR] evo module evo.main_traj crashed - no logfile written (disabled)

But runningevo_traj kitti KITTI_00_ORB.txt KITTI_00_SPTAM.txt --ref=KITTI_00_gt.txt -p is ok

MichaelGrupp commented 2 years ago

You have rosbag for ROS melodic (Python 2) but you installed evo for Python 3, this won't work.

SteveRogan commented 2 years ago

So how to solve this problem?

mrtnbm commented 1 year ago

So how to solve this problem?

Downgrade to Python 2 version of the package or upgrade your ROS distribution.