メインコンテンツ

roadrunner.hdmap.JunctionLaneState

Define state of junction lane in RoadRunner HD Map using MATLAB

Since R2025a

    Description

    A roadrunner.hdmap.JunctionLaneState object enables you to define the state of a junction lane during a signal phase in a RoadRunner HD Map scene model.

    Creation

    Description

    junctionLaneState = roadrunner.hdmap.JunctionLaneState defines an empty state for a junction lane.

    junctionLaneState = roadrunner.hdmap.JunctionLaneState(PropertyName=Value) sets properties of the state of a junction lane using one or more name-value arguments. For example, State="GoAlways" defines a state of "GoAlways" for a lane junction.

    example

    Properties

    expand all

    ID of the junction lane state, specified as a roadrunner.hdmap.Reference object.

    State of the junction lane, specified as a character vector or string scalar such as "GoAlways", "Yield", and "Stop". The state describes whether vehicles can traverse a lane through the junction during a signal phase.

    Data Types: char | string

    Examples

    collapse all

    Create a reference to a junction lane.

    refLane = roadrunner.hdmap.Reference(ID="Lane1")
    refLane = 
      Reference with properties:
    
        ID: "Lane1"
    
    

    Set the lane state to "GoAlways" to allow vehicles to traverse the junction lane during a signal phase.

    roadrunner.hdmap.JunctionLaneState(LaneID=refLane, State="GoAlways")
    ans = 
      JunctionLaneState with properties:
    
        LaneID: [1×1 roadrunner.hdmap.Reference]
         State: "GoAlways"
    
    

    Version History

    Introduced in R2025a