pageldev / libOpenDRIVE

Small, lightweight C++ library for handling OpenDRIVE files
Apache License 2.0
368 stars 134 forks source link

Handle spiral edge cases #60

Closed eknabevcc closed 1 year ago

eknabevcc commented 1 year ago

Here's a dummy OpenDRIVE including some spirals that should be visible with this fix: spirals.xodr.txt

and a slightly more realistic example, where connecting roads in the intersection happens to include spirals with constant radius: road_straight_curve_junction.xodr.txt

BTW: Thanks for providing an excellent tool!

pageldev commented 1 year ago

Looks very good! Thanks for discovering and fixing these edge cases. I tested it with the provided files.

I merged the changes and they should also be available in odrviewer.io. I'll leave this the default but add an option to parse the xodr "as-is", as this might be useful to some people.