Abstract
Scenario-based testing plays a pivotal role in the development and validation of automated vehicles. Its main challenge is to efficiently generate realistic and relevant test scenarios to identify and analyze shortcomings of automated driving systems. The Scenario Factory 2.0 unifies several scenario generation techniques from the open-source CommonRoad framework and introduces simulation modes for coupling with the traffic simulators OpenTrafficSim and SUMO. The simulation modes enable generating scenarios with a tunable similarity to existing ones. As existing approaches, the Scenario Factory 2.0 integrates scenario generation from formal specifications and falsification techniques. Scenario Factory 2.0 has a modular structure and the modules can be easily rearranged for creating required scenarios. We evaluate the effectiveness of the novel simulation modes for various traffic scenarios and demonstrate the scenario generation with Scenario Factory 2.0 in a use case. The open-source code is provided at https://commonroad.in.tum.de/tools/scenario-factory.