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

KITTI Groundtruth to TUM #557

Closed Yigit-Kuyu closed 1 year ago

Yigit-Kuyu commented 1 year ago

Description:

Hello,

I would like to convert KITTI pose groundtruth into TUM format. I have read the whole related issues but I could not solve the problem. Following the documentation, I have used the basic script below in which 01_GroundTruth_KITTI.txt represents sequence 01 directly downloaded via the above link.

Command:

 evo_traj kitti 01_GroundTruth_KITTI.txt --save_as_tum

Console output: The error received is below:

name:   01_GroundTruth_KITTI
infos:  1101 poses, 2453.203m path length
--------------------------------------------------------------------------------
[ERROR] trajectory must be a PoseTrajectory3D object

Additional files:


Could you please help me to solve this problem?
MichaelGrupp commented 1 year ago

The Wiki says that this export is not possible directly, but there is a workaround with a script: https://github.com/MichaelGrupp/evo/wiki/Formats#saving--exporting-to-other-formats

The KITTI dataset has timestamps and poses in separate files, and with the script you can combine them into a TUM format file.

Yigit-Kuyu commented 1 year ago

Thank you for the info.