MATLAB: Do I not see any road data appear if I drop the ‘.xodr’ openDRIVE file into a RoadRunner scene

roadrunner

I have an openDRIVE file which I would like to import into a RoadRunner scene. However, when I add this file to the scene, the roadways do not appear.
Why is this happening? How can I fix this?

Best Answer

Bad 'road' data may cause this issue. Please check the 'output' pane in RoadRunner. If you notice an error message like:
>ERROR: Failed to load OpenDRIVE data:
Attempted to add lane with duplicate ID (file: '<FilePath/FileName.xodr>')
You should check the offending file. If you open the 'FileName.xodr' file in a text editor, you should see that the information inside is in XML format. You can find the road sections:
<road name = "Road XX" length = ... > ... </road>
Inside these 'road' data sections, you should see several subsections. Please ensure that all "lane ids":
<lane id="3" ...
are unique for each road. If a road has two identical IDs, this will cause RoadRunner to fail when importing the data into the scene.