RoadRunner .xodr Export creates corrupted file

Hello,
RoadRunner 2025b. Ubuntu 22.04
I am trying to export an .xodr if this simple map. But the .xodr is faulted.
When looking at it in the .xodr viewer or importing in CARLA I can see, that the roads do have only one direction even though I have added a backwards and forward lane (at least in my opinion the map looks good in Roadrunner). Also running the map in CARLA with a script results in an error.
Since I am completely new in RoadRunner I am wondering what I am missing?
Could please someone check if you have the same issue and what might be the cause of it?
I would be very thankful since I am trying to debug it since a couple of days.
Best regards!
Here is the scene file since matlab doesn´t support the upload of .rrscene:
How it looks in .xodr. As you can see only one direction is displayed:
Export settings:

 채택된 답변

Christian
Christian 2026년 2월 3일

0 개 추천

Hi Volker,
Have you checked the exported .xodr file with a text editor as well? I tested this on my side by exporting an OpenDRIVE file from a simple scene similar to yours, and the exported file follows the OpenDRIVE standard for driving direction.
As described in the OpenDRIVE specification, “the driving direction is specified by a combination of different elements and attributes” (11.2.1 Driving direction):
When exporting a scene with Driving Side = Right, the standard states that:
  • Lanes in the <right> element with negative @id follow the positive direction of the road reference line.
  • Lanes in the <left> element with positive @id run against the reference line.
In my test scene, the generated .xodr file matched this behavior and was consistent with how the lanes appear in RoadRunner. This suggests that the issue may be related to how the OpenDRIVE viewer interprets lane direction.
If you have any additional questions, feel free to contact MathWorks Technical Support:

댓글 수: 1

Volker
Volker 2026년 2월 4일
Thank you very much for the response!
Actually just 10 minutes ago we solved the issue. It was not a Roadrunner issue. It was CARLA that had been compiled wrong.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

제품

릴리스

R2025b

질문:

2026년 1월 30일

댓글:

2026년 2월 4일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by