What problem does it solve?
Running, stepping through, and controlling RoadRunner scenario simulations from MATLAB involves many non-obvious API rules (call ordering, asynchronous stepping, cell-array indexing, read-only observers), and mistakes like confusing RoadRunner APIs with drivingScenario cause silent failures or errors.
Core Features & Use Cases
- Simulation Control: Run scenarios to completion with simulateScenario or step frame-by-frame with createSimulation, SimulationCommand, and SimulationStatus polling.
- Actor Co-Simulation: Control actors externally via MATLAB System objects or Simulink RoadRunner Scenario Reader/Writer blocks, and monitor state with read-only observers.
- Sensors & Logs: Attach vision, radar, ultrasonic, and lidar sensors to actors, read target poses and lane boundaries, and retrieve simulation logs and scenario variables.
- Use Case: An engineer needs to step through a scenario, read each vehicle's pose and velocity per frame, and export the trajectory log for plotting — this Skill provides the exact call order and correct getAttribute patterns.
Quick Start
Ask your agent to step through the currently open RoadRunner scenario at 0.01 second steps and log the ego vehicle's pose at each frame.