Contenu principal

MATLAB Functions for Scenario Management

R2026b
Generate scenario variations, import and export scenarios, and simulate scenarios using MATLAB® (requires Automated Driving Toolbox™)

RoadRunner Scenario provides MATLAB functions for performing common workflow tasks such as opening, closing, and saving scenarios, and projects and importing and exporting scenarios. MATLAB functions also enable you to change the attributes of the scenario to create many variations for automated tests. You can use these functions to automate workflows such as loading scenarios, placing scenarios in different scenes, exporting scenarios, and simulating scenarios in the editor. These functions operate through a MATLAB object that opens and sets up the main RoadRunner user interface so that you can control it programmatically.

These functions require an Automated Driving Toolbox license.

Functions

expand all

roadrunnerStart RoadRunner application (Since R2022a)
roadrunnerSetupStart RoadRunner interactively using MATLAB (Since R2023b)
roadrunner.connectConnect to open instance of RoadRunner (Since R2022a)
statusGet current status of RoadRunner (Since R2022b)
getCoSimPortRetrieve RoadRunner Scenario API server port number (Since R2022b)
closeClose RoadRunner (Since R2022a)
newProjectCreate new RoadRunner project (Since R2022a)
openProjectOpen RoadRunner project (Since R2022a)
saveProjectSave RoadRunner project (Since R2022a)
newScenarioCreate new scenario in RoadRunner Scenario (Since R2022a)
openScenarioOpen scenario in RoadRunner Scenario (Since R2022a)
saveScenarioSave scenario in RoadRunner Scenario (Since R2022a)
getScenarioVariableGet the value of RoadRunner scenario variable (Since R2022a)
getAllScenarioVariablesGet the values of all RoadRunner scenario variables (Since R2023b)
setScenarioVariableSet RoadRunner scenario variable (Since R2022a)
getAnchorsRetrieve anchor attributes from RoadRunner scenario (Since R2024a)
remapAnchorRemap anchors in RoadRunner Scenario (Since R2022b)
setCameraModeSet camera mode to visualize RoadRunner scenario simulation (Since R2026a)
prepareSimulationSubmit simulation data to RoadRunner Scenario simulation engine (Since R2024a)
createSimulationCreate RoadRunner Scenario simulation (Since R2022a)
simulateScenarioSimulate RoadRunner scenario (Since R2024a)
exportVideoExport RoadRunner scenario simulation data to video file (Since R2026a)
exportScenarioExport scenario from RoadRunner Scenario (Since R2022a)
exportCustomFormatExport RoadRunner scene or scenario using custom export configuration (Since R2022a)
importScenarioImport file into RoadRunner Scenario (Since R2022a)
exportActorTrajectoryToCSVExport trajectories of actors in RoadRunner scenario to comma-separated values (CSV) files (Since R2025a)

Featured Examples