CARLA
Public Member Functions | Public Attributes | List of all members
FTrafficLightData Class Reference

#include <ActorData.h>

+ Inheritance diagram for FTrafficLightData:
+ Collaboration diagram for FTrafficLightData:

Public Member Functions

virtual void RecordActorData (FCarlaActor *CarlaActor, UCarlaEpisode *CarlaEpisode) override
 
virtual AActorRespawnActor (UCarlaEpisode *CarlaEpisode, const FActorInfo &Info) override
 
virtual void RestoreActorData (FCarlaActor *CarlaActor, UCarlaEpisode *CarlaEpisode) override
 
- Public Member Functions inherited from FActorData
FTransform GetLocalTransform (UCarlaEpisode *CarlaEpisode) const
 
virtual ~FActorData ()
 

Public Attributes

UTrafficLightControllerController
 
ETrafficLightState LightState
 
TSubclassOf< AActorModel
 
int PoleIndex
 
FString SignId
 
- Public Attributes inherited from FActorData
FVector AngularVelocity = FVector(0,0,0)
 
bool bSimulatePhysics = false
 
FDVector Location
 
FQuat Rotation
 
FVector Scale
 
FVector Velocity
 

Detailed Description

Definition at line 109 of file ActorData.h.

Member Function Documentation

◆ RecordActorData()

void FTrafficLightData::RecordActorData ( FCarlaActor CarlaActor,
UCarlaEpisode CarlaEpisode 
)
overridevirtual

Reimplemented from FActorData.

Definition at line 222 of file ActorData.cpp.

References FCarlaActor::GetActor(), ATrafficLightBase::GetPoleIndex(), ATrafficLightBase::GetTrafficLightComponent(), ATrafficLightBase::GetTrafficLightState(), FActorData::RecordActorData(), and TrafficLight.

+ Here is the call graph for this function:

◆ RespawnActor()

AActor * FTrafficLightData::RespawnActor ( UCarlaEpisode CarlaEpisode,
const FActorInfo Info 
)
overridevirtual

Reimplemented from FActorData.

Definition at line 210 of file ActorData.cpp.

References FActorData::GetLocalTransform(), and UCarlaEpisode::SpawnActor().

+ Here is the call graph for this function:

◆ RestoreActorData()

void FTrafficLightData::RestoreActorData ( FCarlaActor CarlaActor,
UCarlaEpisode CarlaEpisode 
)
overridevirtual

Reimplemented from FActorData.

Definition at line 237 of file ActorData.cpp.

References FCarlaActor::GetActor(), UCarlaStatics::GetGameMode(), ACarlaGameModeBase::GetMap(), ATrafficLightBase::GetTrafficLightComponent(), ATrafficLightBase::SetPoleIndex(), ATrafficLightBase::SetTrafficLightState(), and TrafficLight.

+ Here is the call graph for this function:

Member Data Documentation

◆ Controller

UTrafficLightController* FTrafficLightData::Controller

◆ LightState

ETrafficLightState FTrafficLightData::LightState

◆ Model

TSubclassOf<AActor> FTrafficLightData::Model

Definition at line 119 of file ActorData.h.

◆ PoleIndex

int FTrafficLightData::PoleIndex

Definition at line 121 of file ActorData.h.

Referenced by FWorldObserver_GetDormantActorState().

◆ SignId

FString FTrafficLightData::SignId

Definition at line 117 of file ActorData.h.

Referenced by FWorldObserver_GetDormantActorState().


The documentation for this class was generated from the following files: