Programmatic Scenario Authoring
drivingScenario object enables you to author driving scenarios
from the MATLAB® command line. Use this object to design complex road networks
or parking lots and specify actors and their trajectories. You can then
generate synthetic data from these scenarios by using sensor models and
visualize this data on a bird's-eye plot.
The flexible interface of the
drivingScenario object enables you to create variations of a scenario for rapidly testing driving algorithms under various conditions. For more details, see Create Driving Scenario Variations Programmatically.
|Create driving scenario
|Advance driving scenario simulation by one time step
|Plot driving scenario
|Run driving scenario and record actor states
|Restart driving scenario simulation from beginning
|Update driving scenario plots
|Export driving scenario to ASAM OpenDRIVE, ASAM OpenSCENARIO or RoadRunner HD Map file (Since R2020b)
|Get RoadRunner HD Map from Driving Scenario in MATLAB (Since R2023a)
|Add sensors to specific host vehicle (Since R2023a)
|Add actor to driving scenario
|Add vehicle to driving scenario
|Create actor or vehicle trajectory in driving scenario
|Create smooth, jerk-limited actor trajectory in driving scenario (Since R2021a)
|Inertial ground-truth state of actor (Since R2021a)
|Positions, velocities, and orientations of actors in driving scenario
|Physical and radar characteristics of actors in driving scenario
|Add a barrier to a driving scenario (Since R2021a)
|Ego-centric projective perspective plot
|Mesh vertices and faces relative to specific actor (Since R2020b)
|Outlines of targets viewed by actor
|Target positions and orientations relative to host vehicle
|Convert target poses from scenario to ego coordinates
|Convert target poses from ego to scenario coordinates (Since R2020a)
|Add road to driving scenario or road group
|Add road network to driving scenario
|Get road boundaries
|Convert road boundaries to ego vehicle coordinates
|Mesh representation of roads near actor (Since R2020a)
|Store specifications for road junction or intersection (Since R2021a)
|Add road junction or intersection to driving scenario (Since R2021a)
|Create road lane specifications
|Create road lane type object (Since R2019b)
|Create road lane marking object
|Lane marking vertices and faces in driving scenario
|Get current lane of actor
|Get lane boundaries of actor lane
|Clothoid-shaped lane boundary model
|Compute lane boundary points from clothoid lane boundary model
|Create multiple lane specifications for road (Since R2021a)
|Define road segment connector specifications (Since R2021a)
|Generate radar sensor detections and tracks from driving scenario or RoadRunner Scenario (Since R2021a)
|Generate vision detections for driving scenario or RoadRunner Scenario
|Generate lidar point cloud data for driving scenario or RoadRunner Scenario (Since R2020a)
|Inertial navigation system and GNSS/GPS simulation model (Since R2021a)
|Generate ultrasonic range detections in driving scenario or RoadRunner Scenario (Since R2022a)
|Add sensors to specific host vehicle (Since R2023a)
Meshes for Lidar Simulation
|Mesh representation of extended object (Since R2020a)
|Translate mesh along coordinate axes (Since R2020a)
|Rotate mesh about coordinate axes (Since R2020a)
|Scale mesh in each dimension (Since R2020a)
|Apply forward transformation to mesh vertices (Since R2020a)
|Join two object meshes (Since R2020a)
|Auto-scale object mesh to match specified cuboid dimensions (Since R2020a)
|Display the mesh as a patch on the current axes (Since R2020a)
|Mesh representation of bicycle in driving scenario (Since R2020a)
|Mesh representation of car in driving scenario (Since R2020a)
|Mesh representation of pedestrian in driving scenario (Since R2020a)
|Mesh representation of truck in driving scenario (Since R2020a)
|Mesh representation of Jersey barrier in driving scenario (Since R2021a)
|Mesh representation of guardrail in driving scenario (Since R2021a)
|Plot detections, tracks, and sensor coverages around vehicle
|Coverage area plotter for bird's-eye plot
|Detection plotter for bird's-eye plot
|Track plotter for bird's-eye plot
|Lane boundary plotter for bird's-eye plot
|Lane marking plotter for bird's-eye plot
|Mesh plotter for bird's-eye plot (Since R2020b)
|Path plotter for bird's-eye plot
|Point cloud plotter for bird's-eye plot (Since R2020a)
|Outline plotter for bird's-eye plot
|Range detection plotter for bird's-eye plot (Since R2022a)
|Display sensor coverage area on bird's-eye plot
|Display object detections on bird's-eye plot
|Display lane boundaries on bird’s-eye plot
|Display lane markings on bird’s-eye plot
|Display parking lane markings on bird’s-eye plot (Since R2021b)
|Display object meshes on bird's-eye plot (Since R2020b)
|Display object outlines on bird's-eye plot
|Display barrier outlines on bird's-eye plot (Since R2021a)
|Display actor paths on bird’s-eye plot
|Display generated point cloud on bird's-eye plot (Since R2020a)
|Display range detections on bird's-eye plot (Since R2022a)
|Display object tracks on bird's-eye plot
- Create Driving Scenario Programmatically
Programmatically create ground truth driving scenarios for synthetic sensor data and tracking algorithms.
- Define Road Layouts Programmatically
Programmatically create road junctions and combine these junctions to create more complicated road networks.
- Simulate Vehicle Parking Maneuver in Driving Scenario
Simulate a parking maneuver and generate sensor detections in a large parking lot using a cuboid driving scenario.
- Create Actor and Vehicle Trajectories Programmatically
Programmatically create actor and vehicle trajectories for a driving scenario.
- Create Driving Scenario Variations Programmatically
Programmatically create variations of a driving scenario that was built using the Driving Scenario Designer app.
- Visualize Sensor Coverage, Detections, and Tracks
Configure and use a bird's-eye plot to display sensor coverage, detections, and tracking results around the ego vehicle.
- Automate Control of Intelligent Vehicles by Using Stateflow Charts
Model a highway scenario with intelligent vehicles that are controlled by decision logic defined by a Stateflow® chart.
- Model Radar Sensor Detections
Model and simulate the output of an automotive radar sensor for various driving scenarios.
- Radar Signal Simulation and Processing for Automated Driving
Model the hardware, signal processing, and propagation environment of a radar for a driving scenario.
- Simulate Radar Ghosts Due to Multipath Return
Generate ghost targets that occur when signal energy is reflected off another target before returning to the radar.
- Model Vision Sensor Detections
Model and simulate the output of an automotive vision sensor for various driving scenarios.
- Simulate Inertial Sensor Readings from a Driving Scenario (Navigation Toolbox)
Generate synthetic sensor data from IMU, GPS, and wheel encoders using driving scenario generation tools from Automated Driving Toolbox™.