Using Programmatic Interfaces - MATLAB & Simulink

Automated Driving

4. Using Programmatic Interfaces

RoadRunner Scenario provides programmatic interfaces for performing common workflow tasks. This module demonstrates using MATLAB APIs to programmatically modify and simulate scenarios.

Video Player is loading.
Current Time 0:00
Duration 0:00
Loaded: 0%
Stream Type LIVE
Remaining Time 0:00
 
1x
  • Chapters
  • descriptions off, selected
  • captions off, selected
      Video length is 3:28

      Summary

      • Connect RoadRunner and MATLAB with the roadrunner function to vary, import, export, and simulate scenarios programmatically.
      • Specify values for attributes of actors and logic components using variables.
      • Interface with other programming languages through the available gRPC API.

      Try

      • Download the live script shown in the video.
      • Follow the instructions to generate scenario variations.
      • Use the ScenarioSimulation object to obtain simulation logs in MATLAB.
      • Create a plot of actor velocities over time.

      Training

      Learn about these topics and more through the hands-on training course, Designing 3D Scenes and Scenarios with RoadRunner.