Main Content

roadrunner.hdmap.StencilMarkingType

Create stencil marking types in RoadRunner HD Map using MATLAB

Since R2024b

    Description

    A roadrunner.hdmap.StencilMarkingType object enables you to define the type and type information for a stencil marking in a RoadRunner HD Map scene model.

    Creation

    Description

    stencilMarkingType = roadrunner.hdmap.StencilMarkingType creates an empty stencil marking type.

    stencilMarkingType = roadrunner.hdmap.StencilMarkingType(Name=Value) sets the properties of the stencil marking type using one or more name-value arguments. For example, ID="StencilMarkingType1" sets the ID of the curve marking type element to "StencilMarkingType1".

    example

    Properties

    expand all

    ID of the stencil marking type, specified as a character vector or string scalar. The roadrunner.hdmap.StencilMarking object references this field to describe the type of a stencil marking.

    Data Types: char | string

    Relative path for a stencil marking asset file, specified as a roadrunner.hdmap.RelativeAssetPath object. The asset path points to the information about the stencil marking type.

    Examples

    collapse all

    Create an empty RoadRunner HD Map as a default roadrunnerHDMap object.

    rrMap = roadrunnerHDMap
    rrMap = 
      roadrunnerHDMap with properties:
    
                     Author: ""
               GeoReference: [0 0]
         GeographicBoundary: []
                      Lanes: [0x1 roadrunner.hdmap.Lane]
                SpeedLimits: [0x1 roadrunner.hdmap.SpeedLimit]
             LaneBoundaries: [0x1 roadrunner.hdmap.LaneBoundary]
                 LaneGroups: [0x1 roadrunner.hdmap.LaneGroup]
               LaneMarkings: [0x1 roadrunner.hdmap.LaneMarking]
                  Junctions: [0x1 roadrunner.hdmap.Junction]
               BarrierTypes: [0x1 roadrunner.hdmap.BarrierType]
                   Barriers: [0x1 roadrunner.hdmap.Barrier]
                  SignTypes: [0x1 roadrunner.hdmap.SignType]
                      Signs: [0x1 roadrunner.hdmap.Sign]
          StaticObjectTypes: [0x1 roadrunner.hdmap.StaticObjectType]
              StaticObjects: [0x1 roadrunner.hdmap.StaticObject]
        StencilMarkingTypes: [0x1 roadrunner.hdmap.StencilMarkingType]
            StencilMarkings: [0x1 roadrunner.hdmap.StencilMarking]
          CurveMarkingTypes: [0x1 roadrunner.hdmap.CurveMarkingType]
              CurveMarkings: [0x1 roadrunner.hdmap.CurveMarking]
    
    

    Create a relative path to an asset. This code creates a relative path to a stencil marking asset file from the RoadRunner asset library. This path is relative to the Assets folder of your RoadRunner project.

    path = roadrunner.hdmap.RelativeAssetPath(AssetPath="Assets/Stencils/Stencil_15_Stretched.svg_rrx")
    path = 
      RelativeAssetPath with properties:
    
        AssetPath: "Assets/Stencils/Stencil_15_Stretched.svg_rrx"
    
    

    Create a stencil marking type as a StencilMarkingType object. Specify the stencil marking type ID and the asset path for the type information..

    rrMap.StencilMarkingTypes = roadrunner.hdmap.StencilMarkingType(ID="StencilMarkingType1",AssetPath=path)
    rrMap = 
      roadrunnerHDMap with properties:
    
                     Author: ""
               GeoReference: [0 0]
         GeographicBoundary: []
                      Lanes: [0x1 roadrunner.hdmap.Lane]
                SpeedLimits: [0x1 roadrunner.hdmap.SpeedLimit]
             LaneBoundaries: [0x1 roadrunner.hdmap.LaneBoundary]
                 LaneGroups: [0x1 roadrunner.hdmap.LaneGroup]
               LaneMarkings: [0x1 roadrunner.hdmap.LaneMarking]
                  Junctions: [0x1 roadrunner.hdmap.Junction]
               BarrierTypes: [0x1 roadrunner.hdmap.BarrierType]
                   Barriers: [0x1 roadrunner.hdmap.Barrier]
                  SignTypes: [0x1 roadrunner.hdmap.SignType]
                      Signs: [0x1 roadrunner.hdmap.Sign]
          StaticObjectTypes: [0x1 roadrunner.hdmap.StaticObjectType]
              StaticObjects: [0x1 roadrunner.hdmap.StaticObject]
        StencilMarkingTypes: [1x1 roadrunner.hdmap.StencilMarkingType]
            StencilMarkings: [0x1 roadrunner.hdmap.StencilMarking]
          CurveMarkingTypes: [0x1 roadrunner.hdmap.CurveMarkingType]
              CurveMarkings: [0x1 roadrunner.hdmap.CurveMarking]
    
    

    Version History

    Introduced in R2024b