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

Run Multiple Openscenario Files #1046

Open Giorgior27 opened 8 months ago

Giorgior27 commented 8 months ago

Hello,

I'm using the Scenario Runner to execute OpenSCENARIO files in CARLA. I can successfully run a single simulation using the command python scenario_runner.py --openscenario <path/to/xosc-file>. However, I'm now looking to run multiple scenarios in sequence. I couldn't find any information in the documentation about executing a list of OpenSCENARIO files in this manner. Is there a feature or method that I might have missed?

As a workaround, I've been using a for loop to run scenarios one after the other. This approach works, but I'm interested in finding a more integrated solution that could run a complete list of scenarios and consolidate the results at the end. Has anyone in the community developed a solution for this, or are there any plans to include such a feature in future Scenario Runner updates?

Thank you for your assistance.

starrye commented 7 months ago

I also use a loop on the scenario_runner layer for a multi-scenario call,I wonder if there's a better strategy?