CARLA
Loading...
Searching...
No Matches
Public Attributes | List of all members
FTrafficLightHead Struct Reference

One head of a baked Traffic Light Tool rig, and the OpenDRIVE signal it shows. More...

#include <MapLogicParser.h>

Public Attributes

FString ComponentPrefix
 
TArray< int32 > LaneIds
 
FString SignalID
 

Detailed Description

One head of a baked Traffic Light Tool rig, and the OpenDRIVE signal it shows.

A mast arm can carry a protected-turn arrow beside the through head, and the two are red and green at the same instant. ATrafficLightBase holds exactly one UTrafficLightComponent and one ETrafficLightState (TrafficLightBase.h), and get_state / get_opendrive_id / get_stop_waypoints / the ALSM's IsAtTrafficLight are all per actor, so one actor cannot express two states. The rig is therefore split into one ADigitalTwinsTrafficLight per distinct SignalID, and this is the explicit binding that says which components go where – ComponentPrefix is the name ATrafficLightActor::Build gives the head's components ("Pole_02_Head_03"), which Bake preserves.

Definition at line 58 of file MapLogicParser.h.

Member Data Documentation

◆ ComponentPrefix

FString FTrafficLightHead::ComponentPrefix

Definition at line 63 of file MapLogicParser.h.

Referenced by UMapLogicParser::ParseTrafficLightFromJSON().

◆ LaneIds

TArray<int32> FTrafficLightHead::LaneIds

Definition at line 69 of file MapLogicParser.h.

Referenced by UMapLogicParser::ParseTrafficLightFromJSON().

◆ SignalID

FString FTrafficLightHead::SignalID

Definition at line 66 of file MapLogicParser.h.

Referenced by UMapLogicParser::ParseTrafficLightFromJSON().


The documentation for this struct was generated from the following file: