Main Content

roadrunner.hdmap.LaneBoundary

Create lane boundary in RoadRunner HD Map using MATLAB

Since R2022b

    Description

    A roadrunner.hdmap.LaneBoundary object enables you to define the border of a lane in a RoadRunner HD Map scene model. One or more lanes can optionally contain a reference to lane boundaries on either sides of the lane. Lane boundaries optionally contain definitions for parametric attributes. These attributes define the lane markings over a span. Multiple lane markings can be spanned over a lane boundary as a parametric range between [0,1] of the boundary's length.

    Creation

    Description

    aLaneBoundary = roadrunner.hdmap.LaneBoundary() creates an empty lane boundary.

    aLaneBoundary = roadrunner.hdmap.LaneBoundary(Name=Value) sets the properties of the lane boundary using name-value pairs.

    example

    Properties

    expand all

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

    Example: rrMap.LaneBoundaries= roadrunner.hdmap.LaneBoundary(ID="LaneBoundary1") creates a lane boundary with id Lane1Boundary in a RoadRunner HD Map.

    Data Types: char | string

    3D coordinates of the lane boundary points, specified as a three element vector, with double precision values.

    Example: rrMap.LanesBoundaries= roadrunner.hdmap.LaneBoundary(ID="LaneBoundary1", Geometry=[-0.782 -1.56;50.78 23.43]) creates a lane boundary with id "LaneBoundary1" and defines the coordinates for the lane boundary geometry.

    Data Types: double

    Span-based parametric attributes to create lane markings, specified as an array of roadrunner.hdmap.ParametricAttribution (RoadRunner) objects.

    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 boundary using the roadrunner.hdmap.LaneBoundary object. Specify the lane information for the lane id and coordinates defining the lane geometry.

    rrMap.LaneBoundaries = roadrunner.hdmap.LaneBoundary(ID="LaneBoundary1", Geometry=[50 25; 100 50])
    rrMap = 
      roadrunnerHDMap with properties:
    
                    Author: ""
                Projection: ""
        GeographicBoundary: [0×3 double]
                     Lanes: [0×1 roadrunner.hdmap.Lane]
            LaneBoundaries: [1×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]
    
    

    Version History

    Introduced in R2022b