Main Content

roadrunner.hdmap.SignType

Create sign types in RoadRunner HD Map using MATLAB

Since R2022b

    Description

    A roadrunner.hdmap.SignType object enables you to define the sign features and the type information for a sign in a RoadRunner HD Map scene model.

    Creation

    Description

    aSignType = roadrunner.hdmap.SignType() creates an empty sign type.

    aSignType = roadrunner.hdmap.SignType(Name=Value) sets the properties of the sign type using name-value pairs.

    example

    Properties

    expand all

    ID of the sign type, specified as a character vector or string scalar. The Sign object refers to this field to describe the type of a sign.

    Data Types: char | string

    Relative path for an image of the sign or a sign asset file, specified as a roadrunner.hdmap.RelativeAssetPath (RoadRunner) object. The asset path points to the information about the sign type.

    Examples

    collapse all

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

    rrMap = roadrunnerHDMap()
    rrMap = 
      roadrunnerHDMap with properties:
    
                    Author: ""
              GeoReference: [0 0]
        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]
         StaticObjectTypes: [0×1 roadrunner.hdmap.StaticObjectType]
             StaticObjects: [0×1 roadrunner.hdmap.StaticObject]
    
    

    Create a relative path to an asset. In this example, create a relative path to a parking sign 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/Signs/UK/Sign_Parking.svg")
    path = 
      RelativeAssetPath with properties:
    
        AssetPath: "/Assets/Signs/UK/Sign_Parking.svg"
    
    

    Create the sign type using the roadrunner.hdmap.SignType object. Specify the sign type information for the sign type id and the asset path.

    rrMap.SignTypes = roadrunner.hdmap.SignType(ID="SignType1", AssetPath=path)
    rrMap = 
      roadrunnerHDMap with properties:
    
                    Author: ""
              GeoReference: [0 0]
        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: [1×1 roadrunner.hdmap.SignType]
                     Signs: [0×1 roadrunner.hdmap.Sign]
         StaticObjectTypes: [0×1 roadrunner.hdmap.StaticObjectType]
             StaticObjects: [0×1 roadrunner.hdmap.StaticObject]
    
    

    Version History

    Introduced in R2022b