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. For more information, see Overview of Simulating RoadRunner Scenarios with MATLAB and Simulink.
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 the 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.
|Access and modify runtime specifications of actor|
|View static specifications of actor|
|Add observer to scenario simulation|
|Get value of scenario simulation parameter|
|Load saved simulation log|
|Remove observer from scenario simulation|
|Report information, warning or error message during scenario simulation|
|Save simulation log to file for later replay|
|Set value of scenario simulation parameter|
|Return scenario simulations or actors in current MATLAB session|
|Send event to scenario|
|Receive event from scenario|
|Convert actor to MATLAB structure|
|Get scenario or static attribute of actor|
|Get actions associated with actor|
|Get runtime attribute of actor|
|Set runtime attribute of actor|
|Return static attribute of actor|
|Add sensors to vehicle actors in RoadRunner scenario|
|Get positions and orientations of targets in sensor range relative to host vehicle|
|Get lane boundaries relative to host vehicle|
|Generate package for actor simulation|
|Generate proto file for actor simulation|
|Generate asset file for user-defined action|
|Generate asset file for user-defined event|
|RoadRunner Scenario||Define interface for Simulink actor model|
|RoadRunner Scenario Reader||Reads selected topic from |
|RoadRunner Scenario Writer||Write selected topic to |
- 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.
- Add Sensors to RoadRunner Scenario Using MATLAB
Simulate a RoadRunner Scenario with senor models defined in MATLAB and visualize object and lane detections.
- Add Sensors to RoadRunner Scenario Using Simulink
Simulate a RoadRunner Scenario with senor 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.