MichaelGrupp / evo

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

Loading TUM format when euroc specified #679

Closed TanPinDa closed 3 weeks ago

TanPinDa commented 3 weeks ago

Description: Running evo_rpe with euroc, but TUM format expected

Command:

evo_rpe euroc /home/rosdev/workspace/data/MH_01_easy.csv /home/rosdev/workspace/data/MH_02_easy.csv

Console output:


[ERROR] TUM trajectory files must have 8 entries per row and no trailing delimiter at the end of the rows (space)

Additional files: Please attach all the files needed to reproduce the error.

Please give also the following information:

remove this line and paste your config HERE


https://github.com/MichaelGrupp/evo/blob/master/evo/common_ape_rpe.py#L54

elif args.subcommand == "euroc": traj_ref = file_interface.read_euroc_csv_trajectory(args.state_gt_csv) traj_est = file_interface.read_tum_trajectory_file(args.est_file)



Just changed the `read_tum_trajectory_file` to `read_euroc_csv_trajectory`

Tested and working. 
MichaelGrupp commented 3 weeks ago

See: https://github.com/MichaelGrupp/evo/pull/680#issuecomment-2165918842