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

Distortion occurs when comparing with the true trajectory #643

Closed HowieHepburn closed 3 months ago

HowieHepburn commented 3 months ago

Description: My trajctory :(evo_traj tum lio_odom_UrbanTST.tum -p): image

GroundTruth:(evo_traj tum gt_slam_UrbanNav-HK-TST-20210517.csv -p): image

Comparative:(evo_traj tum --ref gt_slam_UrbanNav-HK-TST-20210517.csv lio_odom_UrbanTST.tum -p): image

When I try to use the "-a" command to put two trajectories together for comparison, My trajectory be like this image

I'm wondering if this is normal? In addition: evo_ape tum gt_slam_UrbanNav-HK-TST-20210517.csv lio_odom_UrbanTST.tum -ap: image

evo_ape tum gt_slam_UrbanNav-HK-TST-20210517.csv lio_odom_UrbanTST.tum -p: image

remove this line and paste your config HERE

MichaelGrupp commented 3 months ago

If you add --verbose (or -v), you can see that this probably just caused by not all timestamps being matched to the other trajectory. So not a distortion, just missing data in between.

HowieHepburn commented 3 months ago

Thank you very much for your reply, you are right, not all timestamps being matched to the other trajectory, and I have solved the problem by adding t_max_diff=0.1 in my command