I’m importing a map from OSM using carla.Osm2Odr. I need to spawn an actor in a certain geo position (lat, lon). The thing is that the exported xord map boundary is actually larger than the bounds I specified in OSM when I was exporting the data (this is probably the specific of a converter that does not “cut” the road where it intersects the area boundary).
- Green - boundary used when exported data from OSM
- Orange - boundary of xodr map after conversion
- Blue line - road from OSM map
- Blue circle - geo position from OSM where I would like to spawn an object
Initially my plan was to use lat and lon of (1) to evaluate the offset to lat and lon of (3) which would give me the x,y within the map. However the actual origin of xodr map (2) is not the same as (1) and it seems to be not predictable.
Is there a workaround for my issue?