MichaelGrupp / evo

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

IndexError when loading ROS2 bag #561

Closed majdros closed 12 months ago

majdros commented 1 year ago

Hello Michael, thank you for your excellent project. i gave the following command: evo_traj bag2 ~/Documents/ROS-Projekte/rosbags/rosbag2_2023_06_26-15_31_23 --all_topics

and then i got the following error message:

[ERROR] Unhandled error in evo.main_traj Traceback (most recent call last): File "/home/robo1/.local/lib/python3.10/site-packages/evo/entry_points.py", line 99, in launch main_module.run(args) File "/home/robo1/.local/lib/python3.10/site-packages/evo/main_traj.py", line 339, in run trajectories, ref_traj = load_trajectories(args) File "/home/robo1/.local/lib/python3.10/site-packages/evo/main_traj.py", line 252, in load_trajectories trajectories[topic] = file_interface.read_bag_trajectory( File "/home/robo1/.local/lib/python3.10/site-packages/evo/tools/file_interface.py", line 319, in read_bagtrajectory (connection, , rawdata) = list(reader.messages(connections=connections))[0] # type: ignore IndexError: list index out of range

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

MichaelGrupp commented 1 year ago

Can you provide your input file rosbag2_2023_06_26-15_31_23 somehow? So I can try to reproduce it and check what causes that.