Main Content

roadrunner.hdmap.LaneGroup

Create lane groups in RoadRunner HD Map using MATLAB

Since R2022b

    Description

    A roadrunner.hdmap.LaneGroup object enables you to define a group of lanes with similar geometry in a RoadRunner HD Map scene model. The LaneGroup geometry is used as a general approximation for the geometry of the lanes contained within that group. The hierarchy of the lane elements is defined as:

    • A lane group contains references to lanes.

    • A lane has references to its boundaries and its connected lanes.

    • A lane boundary has references to the lane markings.

    Creation

    Description

    aLaneGroup = roadrunner.hdmap.LaneGroup() creates an empty lane group collection.

    aLaneGroup = roadrunner.hdmap.LaneGroup(Name=Value) sets the properties of the lane group collection using name-value pairs.

    example

    Properties

    expand all

    ID of the lane group, specified as a character vector or string scalar.

    Example: rrMap.LaneGroups= roadrunner.hdmap.LaneGroup(ID="LaneGroup1") creates a lane group with id LaneGroup1 in a RoadRunner HD Map.

    Data Types: char | string

    3D coordinates of the geometric shape of the lane group, specified as a three element vector, with double precision values.

    Example: rrMap.LaneGroups= roadrunner.hdmap.LaneGroup(ID="LaneGroup1", Geometry=[-0.782 -1.56;50.78 23.43]) creates a lane group with id "LaneGroup1" and defines the coordinates for the geometric shape of the lane group.

    Data Types: double

    Collection of lane references, specified as an array of roadrunner.hdmap.AlignedReference (RoadRunner) objects. This property defines the linkage information for lanes within the lane group.

    Examples

    collapse all

    Create an empty RoadRunner HD Map by calling the roadrunnerHDMap object.

    rrMap = roadrunnerHDMap()
    rrMap = 
      roadrunnerHDMap with properties:
    
                    Author: ""
                Projection: ""
        GeographicBoundary: [0×3 double]
                     Lanes: [0×1 roadrunner.hdmap.Lane]
            LaneBoundaries: [0×1 roadrunner.hdmap.LaneBoundary]
                LaneGroups: [0×1 roadrunner.hdmap.LaneGroup]
              LaneMarkings: [0×1 roadrunner.hdmap.LaneMarking]
                 Junctions: [0×1 roadrunner.hdmap.Junction]
              BarrierTypes: [0×1 roadrunner.hdmap.BarrierType]
                  Barriers: [0×1 roadrunner.hdmap.Barrier]
                 SignTypes: [0×1 roadrunner.hdmap.SignType]
                     Signs: [0×1 roadrunner.hdmap.Sign]
    
    

    Create the road lane group using the roadrunner.hdmap.LaneGroup object. Specify the lane information for the lane id.

    rrMap.LaneGroups = roadrunner.hdmap.LaneGroup(ID="LaneGroup1")
    rrMap = 
      roadrunnerHDMap with properties:
    
                    Author: ""
                Projection: ""
        GeographicBoundary: [0×3 double]
                     Lanes: [0×1 roadrunner.hdmap.Lane]
            LaneBoundaries: [0×1 roadrunner.hdmap.LaneBoundary]
                LaneGroups: [1×1 roadrunner.hdmap.LaneGroup]
              LaneMarkings: [0×1 roadrunner.hdmap.LaneMarking]
                 Junctions: [0×1 roadrunner.hdmap.Junction]
              BarrierTypes: [0×1 roadrunner.hdmap.BarrierType]
                  Barriers: [0×1 roadrunner.hdmap.Barrier]
                 SignTypes: [0×1 roadrunner.hdmap.SignType]
                     Signs: [0×1 roadrunner.hdmap.Sign]
    
    

    Version History

    Introduced in R2022b