updateLaneSpec
Syntax
Description
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 function requires the Scenario Builder for Automated Driving Toolbox™ support package and Sensor Fusion and Tracking Toolbox™. You can install Scenario Builder for Automated Driving Toolbox from the Add-On Explorer. For more information about installing add-ons, see Get and Manage Add-Ons.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2022bSee Also
roadprops
| selectActorRoads
| actorprops
| getMapROI
| waypointTrajectory
(Sensor Fusion and Tracking Toolbox)