Simulate RoadRunner Scenarios with MATLAB and Simulink
Automated Driving Toolbox™ provides a framework for simulating scenarios in RoadRunner with actors modeled in MATLAB and Simulink. To get started using RoadRunner with MATLAB, see Connect MATLAB and RoadRunner to Control and Analyze Simulations.
These are the steps of the workflow:
Author MATLAB System objects or Simulink models to define actor behavior.
Associate actor behavior in RoadRunner.
Optionally, publish an actor behavior.
Tune parameters defined in MATLAB or Simulink for RoadRunner simulations.
Simulate a scenario using the RoadRunner user interface, or control simulations programmatically from MATLAB.
Inspect simulation results using the simulation log.
Replay a scenario simulation from a saved simulation log.
Store a scenario simulation data in ASAM Open Simulation Interface (OSI)® file format.
For more information, see Overview of Simulating RoadRunner Scenarios with MATLAB and Simulink.
Objects
Classes
Functions
Blocks
RoadRunner Scenario | Define interface for Simulink actor model (Since R2022a) |
RoadRunner Scenario Reader | Reads selected topic from RoadRunner scenario (Since R2022a) |
RoadRunner Scenario Writer | Write selected topic to RoadRunner scenario (Since R2022a) |
Apps
Bird's-Eye Scope | Visualize sensor coverages, detections, and tracks |
Topics
- Connect MATLAB and RoadRunner to Control and Analyze Simulations
Use MATLAB with RoadRunner to control simulations programmatically and model actors in MATLAB or Simulink.
- Overview of Simulating RoadRunner Scenarios with MATLAB and Simulink
This topic describes the workflow to simulate RoadRunner scenarios with MATLAB and Simulink.
- Simulate RoadRunner Scenarios with Actors Modeled in Simulink
Author RoadRunner actor behaviors in Simulink and associate actor behavior in RoadRunner.
- Simulate RoadRunner Scenarios with Actors Modeled in MATLAB
Author RoadRunner actors as MATLAB System object™ files and associate behaviors in RoadRunner.
- Simulate RoadRunner Scenarios with Traffic Signals in MATLAB
Simulate RoadRunner Scenarios containing traffic signal actors in MATLAB.
- Add Sensors to RoadRunner Scenario Using MATLAB
Simulate a RoadRunner Scenario with sensor models defined in MATLAB and visualize object and lane detections.
- Add Sensors to RoadRunner Scenario Using Simulink
Simulate a RoadRunner Scenario with sensor models defined in Simulink and visualize object and lane detections.
- Publish Actor Behavior as Proto File, Package, Action Asset or Event Asset
Publish your Simulink or MATLAB System object actor behaviors as proto files, packages, action asset files or event asset files.
- Publish Ready-to-Run Actor Behaviors for Reuse and Simulation Performance
Publish your Simulink or MATLAB System object actor behaviors with Matlab System blocks as ready-to-run packages to improve simulation performance.
- Simulate RoadRunner Scenarios with Actors Modeled in MATLAB and View in Unreal Engine 3D Viewer
Define custom actor behavior and visualize RoadRunner simulations in 3D using
sim3d.scenario.ActorBehavior
object. - What Is a RoadRunner Pose Matrix?
Understand the position and orientation of a RoadRunner actor using its four-by-four pose matrix.