CARLA
Loading...
Searching...
No Matches
CarlaReplayerHelper Class Reference

#include <CarlaReplayerHelper.h>

Classes

struct  FReplayedPrimitive

Public Member Functions

void ProcessReplayerAnimBiker (CarlaRecorderAnimBiker Biker)
void ProcessReplayerAnimVehicle (CarlaRecorderAnimVehicle Vehicle)
void ProcessReplayerAnimVehicleWheels (const CarlaRecorderAnimWheels &Wheels1, const CarlaRecorderAnimWheels &Wheels2, double Per, float Travel)
void ProcessReplayerAnimWalker (CarlaRecorderAnimWalker Walker)
void ProcessReplayerDoorVehicle (CarlaRecorderDoorVehicle DoorVehicle)
std::pair< int, uint32_t > ProcessReplayerEventAdd (FVector Location, FVector Rotation, CarlaRecorderActorDescription Description, uint32_t DesiredId, bool bIgnoreHero, bool bIgnoreSpectator, bool ReplaySensors)
bool ProcessReplayerEventDel (uint32_t DatabaseId)
bool ProcessReplayerEventParent (uint32_t ChildId, uint32_t ParentId)
bool ProcessReplayerFinish (bool bApplyAutopilot, bool bIgnoreHero, std::unordered_map< uint32_t, bool > &IsHero)
void ProcessReplayerLightScene (CarlaRecorderLightScene LightScene)
void ProcessReplayerLightVehicle (CarlaRecorderLightVehicle LightVehicle)
bool ProcessReplayerPosition (CarlaRecorderPosition Pos1, CarlaRecorderPosition Pos2, double Per, double DeltaTime)
bool ProcessReplayerStateTrafficLight (CarlaRecorderStateTrafficLight State)
void ProcessReplayerWalkerBones (const CarlaRecorderWalkerBones &Walker)
void ProcessReplayerWeather (const CarlaRecorderWeather &Weather)
void RemoveStaticProps ()
void SetActorVelocity (FCarlaActor *CarlaActor, FVector Velocity)
bool SetCameraPosition (uint32_t Id, FVector Offset, FQuat Rotation)
void SetEpisode (UCarlaEpisode *ThisEpisode)
void SetWalkerSpeed (uint32_t ActorId, float Speed)

Private Member Functions

FCarlaActor * FindTrafficSignAt (FVector Location)
void MakeReplayedActorQueryOnly (AActor *Actor)
bool SetActorAutopilot (FCarlaActor *CarlaActor, bool bEnabled, bool bKeepState=false)
bool SetActorSimulatePhysics (FCarlaActor *CarlaActor, bool bEnabled)
std::pair< int, FCarlaActor * > TryToCreateReplayerActor (FVector &Location, FVector &Rotation, FActorDescription &ActorDesc, uint32_t DesiredId, bool SpawnSensors)

Private Attributes

UCarlaEpisode * Episode {nullptr}
TArray< FReplayedPrimitive > ReplayedPrimitives

Detailed Description

Definition at line 29 of file CarlaReplayerHelper.h.

Member Function Documentation

◆ FindTrafficSignAt()

◆ MakeReplayedActorQueryOnly()

void CarlaReplayerHelper::MakeReplayedActorQueryOnly ( AActor * Actor)
private

Definition at line 135 of file CarlaReplayerHelper.cpp.

References ReplayedPrimitives.

Referenced by ProcessReplayerEventAdd().

◆ ProcessReplayerAnimBiker()

◆ ProcessReplayerAnimVehicle()

◆ ProcessReplayerAnimVehicleWheels()

◆ ProcessReplayerAnimWalker()

void CarlaReplayerHelper::ProcessReplayerAnimWalker ( CarlaRecorderAnimWalker Walker)

◆ ProcessReplayerDoorVehicle()

◆ ProcessReplayerEventAdd()

◆ ProcessReplayerEventDel()

bool CarlaReplayerHelper::ProcessReplayerEventDel ( uint32_t DatabaseId)

◆ ProcessReplayerEventParent()

◆ ProcessReplayerFinish()

◆ ProcessReplayerLightScene()

◆ ProcessReplayerLightVehicle()

◆ ProcessReplayerPosition()

◆ ProcessReplayerStateTrafficLight()

◆ ProcessReplayerWalkerBones()

◆ ProcessReplayerWeather()

◆ RemoveStaticProps()

void CarlaReplayerHelper::RemoveStaticProps ( )

◆ SetActorAutopilot()

bool CarlaReplayerHelper::SetActorAutopilot ( FCarlaActor * CarlaActor,
bool bEnabled,
bool bKeepState = false )
private

Definition at line 180 of file CarlaReplayerHelper.cpp.

References FCarlaActor::SetActorAutopilot(), and Success.

Referenced by ProcessReplayerEventAdd().

◆ SetActorSimulatePhysics()

bool CarlaReplayerHelper::SetActorSimulatePhysics ( FCarlaActor * CarlaActor,
bool bEnabled )
private

◆ SetActorVelocity()

void CarlaReplayerHelper::SetActorVelocity ( FCarlaActor * CarlaActor,
FVector Velocity )

Definition at line 653 of file CarlaReplayerHelper.cpp.

References FCarlaActor::SetActorTargetVelocity().

Referenced by ProcessReplayerFinish().

◆ SetCameraPosition()

bool CarlaReplayerHelper::SetCameraPosition ( uint32_t Id,
FVector Offset,
FQuat Rotation )

◆ SetEpisode()

void CarlaReplayerHelper::SetEpisode ( UCarlaEpisode * ThisEpisode)
inline

Definition at line 35 of file CarlaReplayerHelper.h.

References Episode.

Referenced by CarlaReplayer::SetEpisode().

◆ SetWalkerSpeed()

void CarlaReplayerHelper::SetWalkerSpeed ( uint32_t ActorId,
float Speed )

◆ TryToCreateReplayerActor()

std::pair< int, FCarlaActor * > CarlaReplayerHelper::TryToCreateReplayerActor ( FVector & Location,
FVector & Rotation,
FActorDescription & ActorDesc,
uint32_t DesiredId,
bool SpawnSensors )
private

Member Data Documentation

◆ Episode

◆ ReplayedPrimitives

TArray<FReplayedPrimitive> CarlaReplayerHelper::ReplayedPrimitives
private

Definition at line 119 of file CarlaReplayerHelper.h.

Referenced by MakeReplayedActorQueryOnly(), and ProcessReplayerFinish().


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