cosbidev / PyTrack

a Map-Matching-based Python Toolbox for Vehicle Trajectory Reconstruction
https://pytrack-lib.readthedocs.io/en/latest/#
BSD 3-Clause Clear License
62 stars 9 forks source link

Problem in the draw path #4

Closed bernardotepedino closed 1 year ago

bernardotepedino commented 1 year ago

I am having this problem in the last part of the code, when it was supposed to draw the map, does anyone know what could be? image

Also, when I run the viterbi_search, I receive some messages such as:

image

Is this the reason for the error when drawing the map?

Thank you

mtortora-ai commented 1 year ago

Please report the version of your environment (Python and PyTrack) for reproducibility. Provide also a minimal example (with data), which can be copied, so that you can get better help and we can add a warning in future versions of the library. However, the problem seems to be due to the output of viterbi_search. You can try increasing the radius value in the candidate.get_candidates function.

bernardotepedino commented 1 year ago

Hi! My python version is 3.8.5 and my PyTrack is 2.0.4. the latest one.

Here I put an example of the points list that gives me this error. However, It works if you exclude the last item from the list.

points.txt

I don't know why this error is happening. I already tried to change the radius and the linterp_dist at get_candidates.

Thanks for your help!

mtortora-ai commented 1 year ago

A new version is out now, let me know if you have any problems with it.

mtortora-ai commented 1 year ago

With version v2.0.6 of PyTrack, the problem is completely solved, without any errors. I tested the points.txt dataset and the process appears fine. So I am going to close the issue as resolved.