Main Content

roadrunner.hdmap.CurveMarking

Create curve marking in RoadRunner HD Map using MATLAB

Since R2024b

    Description

    A roadrunner.hdmap.CurveMarking object enables you to define a curve marking feature in a RoadRunner HD Map scene model.

    Creation

    Description

    curveMarking = roadrunner.hdmap.CurveMarking creates an empty curve marking.

    curveMarking = roadrunner.hdmap.CurveMarking(Name=Value) sets the properties of the curve marking using one or more name-value arguments. For example, ID="CurveMarking1" sets the ID of the curve marking element to "CurveMarking1".

    example

    Properties

    expand all

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

    Example: rrMap.CurveMarkings = roadrunner.hdmap.CurveMarking(ID="CurveMarking1") creates a curve marking with ID "CurveMarking1" in a RoadRunner HD Map.

    Data Types: char | string

    3D coordinates of the curve marking points, specified as a three element vector. You must specify coordinates for at least two points.

    Data Types: double

    Type of curve marking, specified as a roadrunner.hdmap.Reference object.

    Option to flip the curve marking orientation, specified as a logical 0 (false) or 1 (true). Set this property to true to laterally flip the order of the curve marking stripes. This option is applicable only for curve marking types with more than one stripe.

    Data Types: logical

    Option to reverse the curve marking orientation, specified as a logical 0 (false) or 1 (true). Set this property to true to reverse the orientation of curve markings longitudinally, causing the tool to draw the markings from end to start. This option is applicable only for marking types with more than one stripe.

    Data Types: logical

    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 curve marking object.

    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 curve marking by using a roadrunner.hdmap.CurveMarking object. Specify the curve marking ID.

    rrMap.CurveMarkings = roadrunner.hdmap.CurveMarking(ID="CurveMarking1")
    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: [1x1 roadrunner.hdmap.CurveMarking]
    
    

    Version History

    Introduced in R2024b