updateLaneSpec
Syntax
Description
Add-On Required: This feature requires the Scenario Builder for Automated Driving Toolbox add-on.
updates the reference lane specifications rd = updateLaneSpec(laneDetections,roadProperties,refLaneSpec,egoTrajectory,initialEgoLaneIdx)refLaneSpec using the
recorded lane detection data laneDetections. For information on how to
generate lane detections from camera data, see Extract Lane Information from Recorded Camera Data for Scene Generation example.
The function localizes the ego vehicle using the specified ego trajectory, road
properties, and initial ego lane index, and then maps the lane boundary detections to update
the lane markings and lane widths of the reference lane specifications. The function returns
updated road properties, rd, that have the same data type as the input
road properties roadProperties.
specifies options using one or more name-value arguments. For example,
rd = updateLaneSpec(___,Name=Value)UpdateRefLaneMarking=false specifies not to update reference lane
marking information.
Note: This feature also requires the Sensor Fusion and Tracking Toolbox™.
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Version History
Introduced in R2022bSee Also
roadprops | selectActorRoads | actorprops | getMapROI | waypointTrajectory (Sensor Fusion and Tracking Toolbox)