opendrive to commonroad and commonroad to lanelet2 conversion challenge #6
-
I am facing challenges in map conversions. When I run the module for # load OpenDRIVE file, parse it, and convert it to a CommonRoad scenario, I get this error: Traceback (most recent call last): I also tried this: with open(“{}”.format(input_path), “r”) as file_in: But I am getting the same error. Also tried the GUI version but it gives me no results even on sample files. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
It looks like the paths are of wrong type (string instead of pathlib.Path). |
Beta Was this translation helpful? Give feedback.
-
Thanks for your response. Regarding input address, this command worked: crdesigner --input-file 'adress' --output-file 'address' odrcr However, for the conversion, I am facing another challenge regarding my opendrive config: XXX/anaconda3/envs/commonroad_env/lib/python3.9/site-packages/crdesigner/map_conversion/common/utils.py:65: UserWarning: geoidgrids removed from projection string File "XXX/anaconda3/envs/commonroad_env/bin/crdesigner", line 8, in File "XXX/anaconda3/envs/commonroad_env/lib/python3.9/site-packages/crdesigner/ui/command_line.py", line 97, in odrcr File "XXX/anaconda3/envs/commonroad_env/lib/python3.9/site-packages/crdesigner/map_conversion/map_conversion_interface.py", line 96, in opendrive_to_commonroad File "XXX/anaconda3/envs/commonroad_env/lib/python3.9/site-packages/crdesigner/map_conversion/opendrive/opendrive_conversion/network.py", line 123, in load_opendrive File "XXX/anaconda3/envs/commonroad_env/lib/python3.9/site-packages/crdesigner/map_conversion/opendrive/opendrive_conversion/plane_elements/crosswalks.py", line 35, in get_crosswalks IndexError: index 1 is out of bounds for axis 0 with size 0 |
Beta Was this translation helpful? Give feedback.
It looks like the paths are of wrong type (string instead of pathlib.Path).
The input_path and output_path must be a pathlib.Path object, e.g., as in our example here.