MichaelGrupp / evo

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

Unable to convert recorded trajectory bag file to kitti format #614

Closed boybestak99 closed 8 months ago

boybestak99 commented 9 months ago

Description: Hi, I am trying to convert the trajectory bag file which I have recorded using A-Loam slam algorithm. However, when I run the command below. I experience error in converting the bag file into kitti format. I have attached my bag file in .txt format. Is there any way I can change the message type of the bag file?

Command:

evo_traj bag aloam_trajectory.bag /aft_mapped_path --save_as_kitti

Console output:

[ERROR] unsupported message type: nav_msgs/Path

Additional info (if needed) evo version v1.12.0 python version 2.7.17 ubuntu 18.04

MichaelGrupp commented 9 months ago

As the error says, nav_msgs/Path topics are not supported. The supported topic types are listed here: https://github.com/MichaelGrupp/evo/wiki/Formats#bag--bag2---ros1ros2-bagfile

boybestak99 commented 9 months ago

Thank you for your reply. Is there a way to convert into the supported formats?

MichaelGrupp commented 9 months ago

There is a way but you need to code your own script that loads the Path messages and converts them to a PoseStamped topic. Should be relatively easy in Python with the rosbag API.