主要内容

MATLAB Functions for Scene and Scenario Management

R2026b
Programmatically open, import, and manage RoadRunner scenes and scenarios by using a roadrunner object

RoadRunner provides MATLAB® functions for performing common workflow tasks such as opening, closing, and saving scenes, scenarios, and projects and importing and exporting scenes and scenarios. These functions operate through a MATLAB object, roadrunner, that opens and sets up the main RoadRunner user interface so that you can control it programmatically. You can also set scenario variables and create simulations for RoadRunner Scenario. To get started using RoadRunner with MATLAB, see Connect MATLAB and RoadRunner to Control and Analyze Simulations.

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)
getAPIPortRetrieve RoadRunner API server port number (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)
newSceneCreate new RoadRunner scene (Since R2022a)
openSceneOpen RoadRunner scene (Since R2022a)
saveSceneSave RoadRunner scene (Since R2022a)
changeWorldSettingsModify world settings of active scene (Since R2023b)
newScenarioCreate new scenario in RoadRunner Scenario (Since R2022a)
openScenarioOpen scenario in RoadRunner Scenario (Since R2022a)
saveScenarioSave scenario in RoadRunner Scenario (Since R2022a)
importSceneImport scene into RoadRunner (Since R2022a)
exportSceneExport RoadRunner scene (Since R2022a)
exportCustomFormatExport RoadRunner scene or scenario using custom export configuration (Since R2022a)
importScenarioImport file into RoadRunner Scenario (Since R2022a)
exportScenarioExport scenario from RoadRunner Scenario (Since R2022a)
exportActorTrajectoryToCSVExport trajectories of actors in RoadRunner scenario to comma-separated values (CSV) files (Since R2025a)
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)

Topics

Featured Examples