carla-simulator / scenario_runner

Traffic scenario definition and execution engine
https://carla-scenariorunner.readthedocs.io/en/latest/
MIT License
519 stars 358 forks source link

How to use an external map with xodr file without having to build CARLA from source #1078

Closed Anhar2 closed 4 months ago

Anhar2 commented 4 months ago

Describe our question or idea A clear and concise description.

I have created and run a Python-defined scenario on a regular CARLA map, but I need to get this scenario run on an external map which I have its xodr file, I noticed that the documentations mentioned that this can be done if I had built CARLA from source, is there any other way? Please note that the scenario is defined by Python not OSC

Thanks in advance

glopezdiest commented 4 months ago

Hey @Anhar2, you can always use the OpenDRIVE standalone mode to run a simulation using the xodr map. So modify ScenarioRunner to load the generated xodr map, instead of the normal map.

Closing the issue as its resolved, but feel free to reopen it other questions arise