|
CARLA
|
#include <TrafficSignBase.h>
Inheritance diagram for ATrafficSignBase:Public Member Functions | |
| ATrafficSignBase (const FObjectInitializer &ObjectInitializer) | |
| int32 | GetSpeedLimitKmh () const |
| km/h this sign limits to, -1 when it is not a speed-limit sign. | |
| ETrafficSignState | GetTrafficSignState () const |
| UBoxComponent * | GetTriggerVolume () const |
| TArray< UBoxComponent * > | GetTriggerVolumes () const |
| void | SetSpeedLimitKmh (int32 Kmh) |
| Make this a speed-limit sign for Kmh: picks the dedicated state when one exists, the custom state (value kept in SpeedLimitKmh) otherwise. | |
| void | SetTrafficSignState (ETrafficSignState State) |
Public Attributes | |
| bool | bGeneratedFromOpenDRIVE = false |
| True for signs/lights generated from the OpenDRIVE map. | |
| bool | bPositioned = false |
| True once this sign has been snapped to the ground, to avoid adjusting it more than once. | |
Private Attributes | |
| int32 | SpeedLimitKmh = 0 |
| Limit in km/h for the custom SpeedLimit state (ignored for the dedicated states). | |
| ETrafficSignState | TrafficSignState = ETrafficSignState::UNKNOWN |
Definition at line 105 of file TrafficSignBase.h.
| ATrafficSignBase::ATrafficSignBase | ( | const FObjectInitializer & | ObjectInitializer | ) |
Definition at line 11 of file TrafficSignBase.cpp.
|
inline |
km/h this sign limits to, -1 when it is not a speed-limit sign.
Dedicated states answer from the enum; the custom SpeedLimit state answers from SpeedLimitKmh.
Definition at line 128 of file TrafficSignBase.h.
References KmhForSpeedLimitState().
Referenced by MatchSignalAndActor(), and UCarlaEpisode_GetTrafficSignId().
|
inline |
Definition at line 114 of file TrafficSignBase.h.
Referenced by MatchSignalAndActor(), AGeoTrafficSign::PostInitializeComponents(), and UCarlaEpisode_GetTrafficSignId().
| UBoxComponent * ATrafficSignBase::GetTriggerVolume | ( | ) | const |
Referenced by GetTriggerVolumes().
| TArray< UBoxComponent * > ATrafficSignBase::GetTriggerVolumes | ( | ) | const |
Definition at line 20 of file TrafficSignBase.cpp.
References GetTriggerVolume().
Referenced by FFrameData::AddTriggerVolume(), ACarlaRecorder::AddTriggerVolume(), and TrafficSignHeightUtils::AdjustSignToGround().
|
inline |
Make this a speed-limit sign for Kmh: picks the dedicated state when one exists, the custom state (value kept in SpeedLimitKmh) otherwise.
Definition at line 140 of file TrafficSignBase.h.
References SpeedLimitStateForKmh().
Referenced by AGeoTrafficSign::ConfigureForSignal().
|
inline |
Definition at line 120 of file TrafficSignBase.h.
References State.
Referenced by ATrafficLightBase::ATrafficLightBase(), and AGeoTrafficSign::ConfigureForSignal().
| bool ATrafficSignBase::bGeneratedFromOpenDRIVE = false |
True for signs/lights generated from the OpenDRIVE map.
Height adjustment only moves generated actors, never signs placed by hand in the level.
Definition at line 159 of file TrafficSignBase.h.
Referenced by TrafficSignHeightUtils::AdjustSignToGround(), ATrafficLightManager::SpawnSignals(), and ATrafficLightManager::SpawnTrafficLights().
| bool ATrafficSignBase::bPositioned = false |
True once this sign has been snapped to the ground, to avoid adjusting it more than once.
Definition at line 154 of file TrafficSignBase.h.
Referenced by TrafficSignHeightUtils::AdjustSignToGround().
|
private |
Limit in km/h for the custom SpeedLimit state (ignored for the dedicated states).
Definition at line 168 of file TrafficSignBase.h.
|
private |
Definition at line 164 of file TrafficSignBase.h.