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

why on the plots related error mapped onto trajectories, the references are not the same.? #526

Closed Masoumehrahimi closed 1 year ago

Masoumehrahimi commented 1 year ago

Hi I have considered GPS as my ground truth, but I do not know why on the plots related error mapped onto trajectories, the references are not the same. image

I want to know why the dashed line (reference) are different in these two plots, while both of them have GPS as their reference.

thanks

MichaelGrupp commented 1 year ago

Add --verbose to your command and check the output how many poses can be matched in each case.

Probably that number is lower in the right plot.

Masoumehrahimi commented 1 year ago

Would you please explain more? I did not get your point! I have compared two trajectories with the same ground truth, why the ground truth is different?

MichaelGrupp commented 1 year ago

The ground truth is not different, probably just different poses are used for the comparison because of matching. Poses in ground truth are matched to the poses in your trajectory by matching the timestamps. If less timestamps can be matched or there are less poses in general, the number of poses will vary. You can see this in the output when you add --verbose.

Masoumehrahimi commented 1 year ago

The ground truth is not different, probably just different poses are used for the comparison because of matching. Poses in ground truth are matched to the poses in your trajectory by matching the timestamps. If less timestamps can be matched or there are less poses in general, the number of poses will vary. You can see this in the output when you add --verbose.

Interesting, Thanks a lot

MichaelGrupp commented 1 year ago

You can also force it to plot always the full reference with --plot_full_ref. This of course only changes the plot and doesn't change the matching before the metric calculation. Options like --t_max_diff would affect that, see --help or the wiki.