Main Content

roadrunner.hdmap.Barrier

Create barrier in RoadRunner HD Map using MATLAB

Since R2022b

    Description

    A roadrunner.hdmap.Barrier object enables you to define the structure for representing barriers in a RoadRunner HD Map scene model.

    Creation

    Description

    aBarrier = roadrunner.hdmap.Barrier() creates an empty barrier.

    aBarrier = roadrunner.hdmap.Barrier(Name=Value) sets the properties of the barrier using name-value pairs.

    example

    Properties

    expand all

    ID of the barrier element, specified as a character vector or string scalar.

    Example: rrMap.Barriers= roadrunner.hdmap.Barrier(ID="Barrier1") creates a barrier with id Lane1 in a RoadRunner HD Map.

    Data Types: char | string

    Base of barrier that extrusion is repeated over, specified as a three element vector, with double precision values.

    Data Types: double

    Type of barrier, specified as a roadrunner.hdmap.Reference (RoadRunner) object.

    Set flip barrier orientation, specified as logical 0 (false) or logical 1 (true). Set this field to logical 1 (true) to flip the orientation of barrier along the lateral direction. Use this field to flip the primary face of the extrusion geometry, such as the guard rails shown in these images.

    User-defined ancillary data, specified as a roadrunner.hdmap.Metadata object or a vector of roadrunner.hdmap.Metadata objects. Use a vector of roadrunner.hdmap.Metadata objects to assign multiple user-defined parameters to a barrier.

    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 barrier using the roadrunner.hdmap.Barrier object. Specify the barrier information for the barrier id.

    rrMap.Barriers = roadrunner.hdmap.Barrier(ID="Barrier1")
    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: [1×1 roadrunner.hdmap.Barrier]
                 SignTypes: [0×1 roadrunner.hdmap.SignType]
                     Signs: [0×1 roadrunner.hdmap.Sign]
    
    

    Version History

    Introduced in R2022b

    expand all