Main Content

roadrunner.hdmap.ParametricAttribution

Span-based parametric attributes

Since R2022b

    Description

    A roadrunner.hdmap.ParametricAttributes object enables you to define the span-based parametric attributes for lane boundaries in a RoadRunner HD Map scene model.

    Creation

    Description

    prmAttr = roadrunner.hdmap.ParametricAttribution() creates an empty parametric attribution for a lane boundary.

    prmAttr = roadrunner.hdmap.ParametricAttribution(Name=Value) sets the properties of the parametric attribution for lane boundary using name-value pairs.

    example

    Properties

    expand all

    Range for span based attributes, specified as a two element vector [spanStart spanEnd]. Using this property, you can insert span nodes that define a range along a curve-based parent object. You can change attributes along the specified range. For example, you can specify a range for which to change a lane marking along a lane boundary. spanStart is the normalized distance in the range [0, 1] between the start of the current span and the start of the parent object. Use the length of the parent object to get the normalized value. spanEnd is the normalized distance in the range [0, 1] between the end of the current span and the start of the parent object. Use the length of the parent object to get the normalized value.

    Data Types: double

    Reference to marking defined in a RoadRunner HD Map, specified as a roadrunner.hdmap.MarkingReference (RoadRunner) object. This property defines the linking information for lane marking. You can specify ID, and offset attributes to place lane markings.

    Reference to a speed limit for a lane defined in a RoadRunner HD Map, specified as a roadrunner.hdmap.SpeedLimitReference object. This property defines the speed limit information to assign to a lane. If you specify a speed limit value for only a single span of a lane, the entire lane adopts that speed limit value when you build the scene. However, if you specify different speed limit values for different spans of a lane, RoadRunner applies the highest speed limit value across the entire lane.

    Examples

    collapse all

    Create an reference for a marking asset.

    ref = roadrunner.hdmap.Reference(ID="Dashed1")
    ref = 
      Reference with properties:
    
        ID: "Dashed1"
    
    
    mrkref = roadrunner.hdmap.MarkingReference(MarkingID=ref)
    mrkref = 
      MarkingReference with properties:
    
            MarkingID: [1×1 roadrunner.hdmap.Reference]
        FlipLaterally: 0
    
    

    Create a parametric attribution for the marking with reference id Dashed1

    prmAttr = roadrunner.hdmap.ParametricAttribution(Span=[0.1 0.3], MarkingReference=mrkref)
    prmAttr = 
      ParametricAttribution with properties:
    
                    Span: [0.1000 0.3000]
        MarkingReference: [1×1 roadrunner.hdmap.MarkingReference]
    
    

    Version History

    Introduced in R2022b

    expand all