メインコンテンツ

roadrunner.hdmap.Phase

Create signal phase at junction in RoadRunner HD Map using MATLAB

Since R2025a

    Description

    A roadrunner.hdmap.Phase object enables you to create a signal phase at a junction in a RoadRunner HD Map scene model.

    Creation

    Description

    signalPhase = roadrunner.hdmap.Phase creates an empty phase.

    signalPhase = roadrunner.hdmap.Phase(PropertyName=Value) sets the properties of the phase using one or more name-value arguments. For example, ID="Phase1" specifies the ID of the phase element as "Phase1".

    example

    Properties

    expand all

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

    Data Types: char | string

    Name of the phase element, specified as a character vector or string scalar.

    Data Types: char | string

    Duration of the phase state in seconds, specified as a real valued scalar.

    Data Types: uint32

    Junction lanes that can be traversed during the phase, specified as an array of roadrunner.hdmap.JunctionLaneState objects.

    Examples

    collapse all

    Create a signal phase by using a roadrunner.hdmap.Phase object. Specify the ID and duration of the phase.

    signalPhase = roadrunner.hdmap.Phase(ID="Phase1",Time=20)
    signalPhase = 
      Phase with properties:
    
                        ID: "Phase1"
                      Name: ""
                      Time: 20
        JunctionLaneStates: [0×1 roadrunner.hdmap.JunctionLaneState]
    
    

    Version History

    Introduced in R2025a