pageldev / libOpenDRIVE

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

traffic rule and routing #15

Closed Rogers0701 closed 2 years ago

Rogers0701 commented 2 years ago

Hello,I am very interested in your project and I benefit a lot.Do you have any plans about adding association between opendrive map elements and related traffic rules or utilizing map data to generate a routing map?

Rogers0701 commented 2 years ago

and I don't understand the function of 'center_map' and cnt.would you tell me some explanations?Thanks a lot.

pageldev commented 2 years ago

'center_map' puts the center of the map at (0,0). This is because some xodr maps use ECEF coordinates which are in the range of 10e+6. Due to floating point precisions this results in "wobbly" maps if the coordinates are not adjusted. But it's optional anyway.

Rogers0701 commented 2 years ago

Appreciate it!