setPlatform
Description
assigns the specified platform behaviorPlatform = setPlatform(behaviorAsset,platformType)platformType to the specified behavior
asset behaviorAsset.
By default, behavior assets use the RoadRunner platform, which recognizes only .rrbehavior files. To use
behavior files defined outside of RoadRunner, such as in Simulink® or CARLA, you can use the setPlatform function to specify a
different platform for a behavior asset, then associate the resulting platform object with
your behavior file. This enables you to cosimulate scenarios across different applications.
For more information about cosimulating scenarios, see Overview of Simulating RoadRunner Scenarios with MATLAB and Simulink and Overview of RoadRunner Scenario and CARLA Cosimulation (RoadRunner Scenario).
Input Arguments
Output Arguments
Version History
Introduced in R2025b
See Also
createAsset | BehaviorAsset | RoadRunnerPlatform | SimulinkPlatform | ExternalPlatform
Topics
- Scenario Parameters (RoadRunner Scenario)
- Overview of Simulating RoadRunner Scenarios with MATLAB and Simulink
- Overview of RoadRunner Scenario and CARLA Cosimulation (RoadRunner Scenario)