I am facing challenges in map conversions. I need Lanelet2 format and I have open drive map. To start, when I run the module for # load OpenDRIVE file, parse it, and convert it to a CommonRoad scenario, I get this error:
scenario = opendrive_to_commonroad(input_path)
Traceback (most recent call last):
File “”, line 1, in
File “/home/nsaberi/commonroad-scenario-designer/crdesigner/map_conversion/map_conversion_interface.py”, line 94, in opendrive_to_commonroad
opendrive = parse_opendrive(input_file)
File “/home/nsaberi/commonroad-scenario-designer/crdesigner/map_conversion/opendrive/opendrive_parser/parser.py”, line 39, in parse_opendrive
with file_path.open(“r”) as file_in:
AttributeError: ‘str’ object has no attribute ‘open’
I also tried this:
with open(“{}”.format(input_path), “r”) as file_in:
… opendrive = parse_opendrive(etree.parse(file_in).getroot())
But I am getting the same error.
Also tried the GUI version but it gives me no results even on sample files.