Main Content

Scenario Generation

Generate scenario from recorded real-world sensor data

In automated driving applications, scenario generation is the process of building virtual scenarios from real-world vehicle data recorded from global positioning system (GPS), inertial measurement unit (IMU), camera, and lidar sensors. Automated Driving Toolbox™ provides functions and tools to automate scenario generation process. You can preprocess sensor data, extract roads, localize actors, and get actor trajectories to create an accurate digital twin of a real-world scenario. Simulate the generated scenario and test your automated driving algorithms against real-world data.

To generate scenarios from recorded sensor data, download the Scenario Builder for Automated Driving Toolbox support package from the Add-On Explorer. For more information on downloading add-ons, see Get and Manage Add-Ons.

Functions

expand all

GPSDataStore GPS data (Since R2024b)
TrajectoryCreate trajectory using timestamps and waypoints (Since R2024b)
CameraDataStore sequence of camera data (Since R2024b)
LidarDataStore sequence of lidar data (Since R2024b)
recordedSensorDataCreate sensor data object from recorded sensor data (Since R2024b)
getMapROIGeographic bounding box coordinates from GPS data (Since R2022b)
roadpropsExtract road properties from road network file or map data (Since R2022b)
selectActorRoadsExtract properties of roads in path of actor (Since R2022b)
updateLaneSpecUpdate lane specifications using sensor detections (Since R2022b)
laneDataStore recorded lane boundary data with timestamps (Since R2023a)
laneBoundaryDetectorDetector for lane boundaries in images (Since R2023a)
laneBoundaryTrackerTrack lane boundaries (Since R2023a)
egoToWorldLaneBoundarySegmentsConvert tracked lane boundaries to lane boundary segments in world coordinates (Since R2024a)
laneBoundarySegmentStore lane boundary information of road segment (Since R2024a)
laneBoundaryGroupGroup lane boundaries in lane boundary segment objects (Since R2024a)
smoothBoundariesSmooth lane boundaries (Since R2024a)
getLanesInRoadRunnerHDMapCreate RoadRunner HD Map from lane information (Since R2024a)
roadrunnerLaneInfoGenerate lane information in RoadRunner HD Map format from lane boundary points (Since R2023a)
roadrunnerStaticObjectInfoGenerate static object and sign information in RoadRunner HD Map format (Since R2023a)
addElevationAdd elevation to scene data using georeferenced point cloud (Since R2024a)
actorpropsGenerate actor properties from track list (Since R2022b)
actorTracklistStore recorded actor track list data with timestamps (Since R2023a)
importFromObjectTrackImport track list from objectTrack object (Since R2023a)
exportToDrivingScenarioExport trajectory to driving scenario (Since R2024b)
exportToRoadRunnerExport trajectory to RoadRunner (Since R2024b)
writeCSVWrite trajectory data into CSV file (Since R2024b)

Topics

Getting Started

Scene Generation

Scenario Generation

Featured Examples