JHMeusener / osm2xodr

converter for OpenStreetMaps to OpenDrive roads - for use with Carla or other things
GNU General Public License v3.0
165 stars 51 forks source link
carla carla-simulator converter opendrive openstreetmap openstreetmaps osm xodr

osm2xodr

converter for OpenStreetMaps (.osm) to OpenDrive (.xodr) format (just the drivable roads right now - you can edit the code for other osm-ways - its in the function "parseAll()").

just adjust the filenames/paths in the main.py and run it.

The requirements are osmread, numpy, PIL and pyproj

If a topographymap is used it should be in 16bit integer format and the max/min latitudes/longitudes of the map should match the points in the osm-file.

This code was created as a part of