CARLA Scenario Editor
Abstract
The CARLA open-source driving simulator is widely used to assess autonomous vehicle behaviour. Specifying a scenario within the CARLA ecosystem involves splitting it across configuration files and behaviour code for each actor. Both must be written by hand and kept consistent, which becomes tedious and error-prone as scenarios grow in complexity. Further, constructing safety-critical non-standard scenarios remains a particular challenge. In this paper, we introduce the CARLA Scenario Editor, a model-driven interactive trajectory generation tool for creating and manipulating safety-critical scenarios for CARLA. Unlike existing CARLA tools, the CARLA Scenario Editor allows users to directly draw and edit multi-vehicle trajectories on a map loaded in CARLA. Scenarios are captured in a single declarative model, from which the tool generates the behaviour tree and configuration that CARLA’s ScenarioRunner module, a scenario execution engine within CARLA’s ecosystem, executes. The combination of direct trajectory editing, freedom from road network constraints, and single-workflow execution streamlines the task of creating diverse scenarios that are difficult to reproduce using CARLA’s default navigation logic and existing tools.