Main Content

getLanesInRoadRunnerHDMap

Create RoadRunner HD Map from lane information

Since R2024a

Description

example

rrMap = getLanesInRoadRunnerHDMap(laneBoundaries) creates a roadrunnerHDMap object, rrMap, containing lane and lane boundary information from the input lane boundaries laneBoundaries.

rrMap = getLanesInRoadRunnerHDMap(laneBoundaries,MinJunctionLength=minJunctionLength) specifies the minimum distance between two consecutive road segments minJunctionLength at which to create a junction between them.

Note

This function requires the Scenario Builder for Automated Driving Toolbox™ support package. You can install the Scenario Builder for Automated Driving Toolbox support package from the Add-On Explorer. For more information about installing add-ons, see Get and Manage Add-Ons.

Examples

collapse all

Load lane boundary group data into the workspace.

data = load("laneBoundaryGroupData.mat","lbGroup");

Create a RoadRunner HD Map from the lane boundary segment lane information.

rrMap = getLanesInRoadRunnerHDMap(data.lbGroup);

Plot the RoadRunner HD Map.

plot(rrMap)

Load lane boundary segment data into the workspace.

data = load("laneBoundarySegmentData.mat","lbsegment");

Create a RoadRunner HD Map from the lane boundary group lane information.

rrMap = getLanesInRoadRunnerHDMap(data.lbsegment);

Plot the RoadRunner HD Map.

plot(rrMap)

Input Arguments

collapse all

Lane boundary information, specified as a laneBoundarySegment object or laneBoundaryGroup object.

Minimum distance at which to create a junction between two consecutive road segments in the scene, specified as a positive scalar. Units are in meters.

If the distance between two consecutive road segments exceeds this value, then the function adds a perpendicular road between the two road segments to create a junction. Otherwise, the function does not create a junction.

Output Arguments

collapse all

RoadRunner HD Map with lane information, returned as a roadrunnerHDMap object.

The function sets these properties of the returned roadrunnerHDMap object:

  • Lanes

  • LaneBoundaries

  • GeoReference

  • GeographicBoundary

Version History

Introduced in R2024a