pageldev / libOpenDRIVE

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

get_xyz() returns wrong coordinates #58

Closed Jmingyu0822 closed 1 year ago

Jmingyu0822 commented 1 year ago

I use 'get_xyz' function but the result coordinate is different from coordinate in 'https://sebastian-pagel.net/odrviewer/' .

How can i get world coordinate without error?

pageldev commented 1 year ago

By default when loading the map it gets centered. To get the right world coordinate point you probably have to add OpenDriveMap::x_offs and y_offs.

pageldev commented 1 year ago

closed due to inactivity