Tutorial for opendrive2lanelet¶
Want to quickly convert an XODR file detailing a OpenDRIVE scenario to a XML file with a CommonRoad scenario?
Use the command
opendrive2lanelet-convert input-file.xodr -o output-file.xml.
opendrive2lanelet test.xodr -o new_converted_file_name.xml
produces a file called new_converted_file_name.xml
If no output file name is specified, the converted file will be called input-file.xml,
opendrive2lanelet test.xodr produces a file called test.xml.
Or use the gui with command
Visualizing the results of the conversion using the GUI is only helpful with small files, because you can not zoom into the map.
Otherwise better use the
If you want to inspect the result, you can use the command
which in turn calls the
draw_object() function from
commonroad.visualization.draw_dispatch_cr to open a matplotlib window.