CARLA
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
FFrameData Class Reference

#include <FrameData.h>

+ Collaboration diagram for FFrameData:

Classes

struct  Header
 

Public Member Functions

void AddEvent (const CarlaRecorderEventAdd &Event)
 
void AddEvent (const CarlaRecorderEventDel &Event)
 
void AddEvent (const CarlaRecorderEventParent &Event)
 
void Clear ()
 
void CreateRecorderEventAdd (uint32_t DatabaseId, uint8_t Type, const FTransform &Transform, FActorDescription ActorDescription, bool bAddOtherRelatedInfo=true)
 
void GetFrameData (UCarlaEpisode *ThisEpisode, bool bAdditionalData=false, bool bIncludeActorsAgain=false)
 
void PlayFrameData (UCarlaEpisode *ThisEpisode, std::unordered_map< uint32_t, uint32_t > &MappedId)
 
void Read (std::istream &InStream)
 
void SetEpisode (UCarlaEpisode *ThisEpisode)
 
void Write (std::ostream &OutStream)
 

Private Member Functions

void AddActorBoundingBox (FCarlaActor *CarlaActor)
 
void AddActorKinematics (FCarlaActor *CarlaActor)
 
void AddActorPosition (FCarlaActor *CarlaActor)
 
void AddAnimVehicle (const CarlaRecorderAnimVehicle &Vehicle)
 
void AddAnimWalker (const CarlaRecorderAnimWalker &Walker)
 
void AddBoundingBox (const CarlaRecorderActorBoundingBox &ActorBoundingBox)
 
void AddCollision (AActor *Actor1, AActor *Actor2)
 
void AddEventLightSceneChanged (const UCarlaLight *Light)
 
void AddExistingActors (void)
 
void AddKinematics (const CarlaRecorderKinematics &ActorKinematics)
 
void AddLightVehicle (const CarlaRecorderLightVehicle &LightVehicle)
 
void AddPhysicsControl (const ACarlaWheeledVehicle &Vehicle)
 
void AddPosition (const CarlaRecorderPosition &Position)
 
void AddState (const CarlaRecorderStateTrafficLight &State)
 
void AddTrafficLightState (FCarlaActor *CarlaActor)
 
void AddTrafficLightTime (const ATrafficLightBase &TrafficLight)
 
void AddTriggerVolume (const ATrafficSignBase &TrafficSign)
 
void AddVehicleAnimation (FCarlaActor *CarlaActor)
 
void AddVehicleLight (FCarlaActor *CarlaActor)
 
void AddWalkerAnimation (FCarlaActor *CarlaActor)
 
std::pair< int, FCarlaActor * > CreateOrReuseActor (FVector &Location, FVector &Rotation, FActorDescription &ActorDesc, uint32_t DesiredId, bool SpawnSensors, std::unordered_map< uint32_t, uint32_t > &MappedId)
 
FCarlaActorFindTrafficLightAt (FVector Location)
 
void GetFrameCounter ()
 
void ProcessReplayerAnimVehicle (CarlaRecorderAnimVehicle Vehicle)
 
void ProcessReplayerAnimWalker (CarlaRecorderAnimWalker Walker)
 
std::pair< int, uint32_t > ProcessReplayerEventAdd (FVector Location, FVector Rotation, CarlaRecorderActorDescription Description, uint32_t DesiredId, bool bIgnoreHero, bool ReplaySensors, std::unordered_map< uint32_t, uint32_t > &MappedId)
 
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)
 
bool SetActorSimulatePhysics (FCarlaActor *CarlaActor, bool bEnabled)
 
void SetActorVelocity (FCarlaActor *CarlaActor, FVector Velocity)
 
bool SetCameraPosition (uint32_t Id, FVector Offset, FQuat Rotation)
 
void SetFrameCounter ()
 
void SetWalkerSpeed (uint32_t ActorId, float Speed)
 

Private Attributes

CarlaRecorderActorBoundingBoxes BoundingBoxes
 
CarlaRecorderCollisions Collisions
 
UCarlaEpisodeEpisode
 
CarlaRecorderEventsAdd EventsAdd
 
CarlaRecorderEventsDel EventsDel
 
CarlaRecorderEventsParent EventsParent
 
CarlaRecorderFrameCounter FrameCounter
 
CarlaRecorderFrames Frames
 
CarlaRecorderInfo Info
 
CarlaRecorderActorsKinematics Kinematics
 
CarlaRecorderLightScenes LightScenes
 
CarlaRecorderLightVehicles LightVehicles
 
CarlaRecorderPhysicsControls PhysicsControls
 
CarlaRecorderPlatformTime PlatformTime
 
CarlaRecorderPositions Positions
 
CarlaRecorderStates States
 
CarlaRecorderTrafficLightTimes TrafficLightTimes
 
CarlaRecorderActorTriggerVolumes TriggerVolumes
 
CarlaRecorderAnimVehicles Vehicles
 
CarlaRecorderAnimWalkers Walkers
 

Detailed Description

Definition at line 32 of file FrameData.h.

Member Function Documentation

◆ AddActorBoundingBox()

void FFrameData::AddActorBoundingBox ( FCarlaActor CarlaActor)
private

Definition at line 444 of file FrameData.cpp.

References AddBoundingBox(), FActorInfo::BoundingBox, BoundingBox, FCarlaActor::GetActorId(), and FCarlaActor::GetActorInfo().

Referenced by CreateRecorderEventAdd(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddActorKinematics()

void FFrameData::AddActorKinematics ( FCarlaActor CarlaActor)
private

Definition at line 428 of file FrameData.cpp.

References AddKinematics(), FCarlaActor::GetActorAngularVelocity(), FCarlaActor::GetActorId(), and FCarlaActor::GetActorVelocity().

Referenced by GetFrameData(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddActorPosition()

void FFrameData::AddActorPosition ( FCarlaActor CarlaActor)
private

Definition at line 340 of file FrameData.cpp.

References AddPosition(), FCarlaActor::GetActorGlobalTransform(), and FCarlaActor::GetActorId().

Referenced by GetFrameData(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddAnimVehicle()

void FFrameData::AddAnimVehicle ( const CarlaRecorderAnimVehicle Vehicle)
private

Definition at line 564 of file FrameData.cpp.

References CarlaRecorderAnimVehicles::Add(), and Vehicles.

Referenced by AddVehicleAnimation(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddAnimWalker()

void FFrameData::AddAnimWalker ( const CarlaRecorderAnimWalker Walker)
private

Definition at line 569 of file FrameData.cpp.

References CarlaRecorderAnimWalkers::Add(), and Walkers.

Referenced by AddWalkerAnimation(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddBoundingBox()

void FFrameData::AddBoundingBox ( const CarlaRecorderActorBoundingBox ActorBoundingBox)
private

Definition at line 598 of file FrameData.cpp.

References CarlaRecorderActorBoundingBoxes::Add(), and BoundingBoxes.

Referenced by AddActorBoundingBox(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddCollision()

void FFrameData::AddCollision ( AActor Actor1,
AActor Actor2 
)
private

Definition at line 517 of file FrameData.cpp.

References CarlaRecorderCollisions::Add(), Collision, and Collisions.

Referenced by SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddEvent() [1/3]

void FFrameData::AddEvent ( const CarlaRecorderEventAdd Event)

Definition at line 502 of file FrameData.cpp.

References CarlaRecorderEventsAdd::Add(), and EventsAdd.

Referenced by UCarlaEpisode::AttachActors(), CreateRecorderEventAdd(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddEvent() [2/3]

void FFrameData::AddEvent ( const CarlaRecorderEventDel Event)

Definition at line 507 of file FrameData.cpp.

References CarlaRecorderEventsDel::Add(), and EventsDel.

+ Here is the call graph for this function:

◆ AddEvent() [3/3]

void FFrameData::AddEvent ( const CarlaRecorderEventParent Event)

Definition at line 512 of file FrameData.cpp.

References CarlaRecorderEventsParent::Add(), and EventsParent.

+ Here is the call graph for this function:

◆ AddEventLightSceneChanged()

void FFrameData::AddEventLightSceneChanged ( const UCarlaLight *  Light)
private

Definition at line 579 of file FrameData.cpp.

References CarlaRecorderLightScenes::Add(), and LightScenes.

Referenced by SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddExistingActors()

void FFrameData::AddExistingActors ( void  )
private

Definition at line 1067 of file FrameData.cpp.

References CreateRecorderEventAdd(), FActorInfo::Description, Episode, FCarlaActor::GetActorGlobalTransform(), FCarlaActor::GetActorId(), FCarlaActor::GetActorInfo(), UCarlaEpisode::GetActorRegistry(), and FCarlaActor::GetActorType().

Referenced by GetFrameData(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddKinematics()

void FFrameData::AddKinematics ( const CarlaRecorderKinematics ActorKinematics)
private

Definition at line 593 of file FrameData.cpp.

References CarlaRecorderActorsKinematics::Add(), and Kinematics.

Referenced by AddActorKinematics(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddLightVehicle()

void FFrameData::AddLightVehicle ( const CarlaRecorderLightVehicle LightVehicle)
private

Definition at line 574 of file FrameData.cpp.

References CarlaRecorderLightVehicles::Add(), and LightVehicles.

Referenced by AddVehicleLight(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddPhysicsControl()

void FFrameData::AddPhysicsControl ( const ACarlaWheeledVehicle Vehicle)
private

Definition at line 476 of file FrameData.cpp.

References CarlaRecorderPhysicsControls::Add(), CarlaRecorderPhysicsControl::DatabaseId, Episode, FActorRegistry::FindCarlaActor(), FCarlaActor::GetActorId(), UCarlaEpisode::GetActorRegistry(), ACarlaWheeledVehicle::GetVehiclePhysicsControl(), PhysicsControls, and CarlaRecorderPhysicsControl::VehiclePhysicsControl.

Referenced by CreateRecorderEventAdd(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddPosition()

void FFrameData::AddPosition ( const CarlaRecorderPosition Position)
private

Definition at line 497 of file FrameData.cpp.

References CarlaRecorderPositions::Add(), and Positions.

Referenced by AddActorPosition(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddState()

void FFrameData::AddState ( const CarlaRecorderStateTrafficLight State)
private

Definition at line 559 of file FrameData.cpp.

References CarlaRecorderStates::Add(), and States.

Referenced by AddTrafficLightState(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddTrafficLightState()

void FFrameData::AddTrafficLightState ( FCarlaActor CarlaActor)
private

Definition at line 394 of file FrameData.cpp.

References AddState(), FCarlaActor::GetActorId(), UTrafficLightController::GetElapsedTime(), UTrafficLightController::GetGroup(), FCarlaActor::GetTrafficLightController(), FCarlaActor::GetTrafficLightState(), and ATrafficLightGroup::IsFrozen().

Referenced by GetFrameData(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddTrafficLightTime()

void FFrameData::AddTrafficLightTime ( const ATrafficLightBase TrafficLight)
private

Definition at line 484 of file FrameData.cpp.

References CarlaRecorderTrafficLightTimes::Add(), Episode, FActorRegistry::FindCarlaActor(), FCarlaActor::GetActorId(), UCarlaEpisode::GetActorRegistry(), ATrafficLightBase::GetGreenTime(), ATrafficLightBase::GetRedTime(), ATrafficLightBase::GetYellowTime(), TrafficLightTime, and TrafficLightTimes.

Referenced by CreateRecorderEventAdd(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddTriggerVolume()

void FFrameData::AddTriggerVolume ( const ATrafficSignBase TrafficSign)
private

Definition at line 458 of file FrameData.cpp.

References CarlaRecorderActorTriggerVolumes::Add(), Episode, FActorRegistry::FindCarlaActor(), FCarlaActor::GetActorId(), UCarlaEpisode::GetActorRegistry(), ATrafficSignBase::GetTriggerVolumes(), TriggerVolume, and TriggerVolumes.

Referenced by CreateRecorderEventAdd(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddVehicleAnimation()

void FFrameData::AddVehicleAnimation ( FCarlaActor CarlaActor)
private

Definition at line 355 of file FrameData.cpp.

References AddAnimVehicle(), CarlaRecorderAnimVehicle::bHandbrake, FVehicleControl::bHandBrake, CarlaRecorderAnimVehicle::Brake, FVehicleControl::Brake, CarlaRecorderAnimVehicle::DatabaseId, CarlaRecorderAnimVehicle::Gear, FVehicleControl::Gear, FCarlaActor::GetActorId(), FCarlaActor::GetVehicleControl(), FCarlaActor::IsPendingKill(), FVehicleControl::Steer, CarlaRecorderAnimVehicle::Steering, FVehicleControl::Throttle, and CarlaRecorderAnimVehicle::Throttle.

Referenced by GetFrameData(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddVehicleLight()

void FFrameData::AddVehicleLight ( FCarlaActor CarlaActor)
private

Definition at line 416 of file FrameData.cpp.

References AddLightVehicle(), CarlaRecorderLightVehicle::DatabaseId, FCarlaActor::GetActorId(), FCarlaActor::GetVehicleLightState(), carla::rpc::VehicleLightState::light_state, and CarlaRecorderLightVehicle::State.

Referenced by GetFrameData(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddWalkerAnimation()

void FFrameData::AddWalkerAnimation ( FCarlaActor CarlaActor)
private

Definition at line 378 of file FrameData.cpp.

References AddAnimWalker(), FCarlaActor::GetActorId(), FCarlaActor::GetWalkerControl(), FCarlaActor::IsPendingKill(), and FWalkerControl::Speed.

Referenced by GetFrameData(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Clear()

void FFrameData::Clear ( )

◆ CreateOrReuseActor()

std::pair< int, FCarlaActor * > FFrameData::CreateOrReuseActor ( FVector &  Location,
FVector &  Rotation,
FActorDescription ActorDesc,
uint32_t  DesiredId,
bool  SpawnSensors,
std::unordered_map< uint32_t, uint32_t > &  MappedId 
)
private

Definition at line 609 of file FrameData.cpp.

References FActorRegistry::Contains(), Episode, UCarlaEpisode::FindCarlaActor(), FindTrafficLightAt(), UCarlaEpisode::GetActorRegistry(), UCarlaStatics::GetLargeMapManager(), FActorDescription::Id, ALargeMapManager::OnActorSpawned(), and UCarlaEpisode::SpawnActorWithInfo().

Referenced by ProcessReplayerEventAdd(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CreateRecorderEventAdd()

void FFrameData::CreateRecorderEventAdd ( uint32_t  DatabaseId,
uint8_t  Type,
const FTransform &  Transform,
FActorDescription  ActorDescription,
bool  bAddOtherRelatedInfo = true 
)

Definition at line 264 of file FrameData.cpp.

References AddActorBoundingBox(), AddEvent(), AddPhysicsControl(), AddTrafficLightTime(), AddTriggerVolume(), CarlaRecorderActorDescription::Attributes, Episode, UCarlaEpisode::FindCarlaActor(), FCarlaActor::GetActor(), CarlaRecorderActorAttribute::Id, CarlaRecorderActorDescription::Id, FActorDescription::Id, TrafficLight, CarlaRecorderActorAttribute::Type, FActorDescription::UId, CarlaRecorderActorDescription::UId, CarlaRecorderActorAttribute::Value, FActorDescription::Variations, and Vehicle.

Referenced by AddExistingActors(), SetEpisode(), and UCarlaEpisode::SpawnActorWithInfo().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FindTrafficLightAt()

FCarlaActor * FFrameData::FindTrafficLightAt ( FVector  Location)
private

Definition at line 1034 of file FrameData.cpp.

References FActorRegistry::begin(), FActorRegistry::end(), Episode, FCarlaActor::GetActorGlobalLocation(), UCarlaEpisode::GetActorRegistry(), FCarlaActor::GetActorType(), and FCarlaActor::TrafficLight.

Referenced by CreateOrReuseActor(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetFrameCounter()

void FFrameData::GetFrameCounter ( )
private

Definition at line 603 of file FrameData.cpp.

References CarlaRecorderFrameCounter::FrameCounter, FrameCounter, and FCarlaEngine::GetFrameCounter().

Referenced by GetFrameData(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetFrameData()

void FFrameData::GetFrameData ( UCarlaEpisode ThisEpisode,
bool  bAdditionalData = false,
bool  bIncludeActorsAgain = false 
)

Definition at line 14 of file FrameData.cpp.

References AddActorKinematics(), AddActorPosition(), AddExistingActors(), AddTrafficLightState(), AddVehicleAnimation(), AddVehicleLight(), AddWalkerAnimation(), FActorRegistry::begin(), FActorRegistry::end(), Episode, UCarlaEpisode::GetActorRegistry(), FCarlaActor::GetActorType(), GetFrameCounter(), FCarlaActor::Other, FCarlaActor::Sensor, FCarlaActor::TrafficLight, FCarlaActor::Vehicle, and FCarlaActor::Walker.

Referenced by FCarlaEngine::OnPostTick(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ PlayFrameData()

void FFrameData::PlayFrameData ( UCarlaEpisode ThisEpisode,
std::unordered_map< uint32_t, uint32_t > &  MappedId 
)

◆ ProcessReplayerAnimVehicle()

void FFrameData::ProcessReplayerAnimVehicle ( CarlaRecorderAnimVehicle  Vehicle)
private

Definition at line 889 of file FrameData.cpp.

References FCarlaActor::ApplyControlToVehicle(), CarlaRecorderAnimVehicle::bHandbrake, FVehicleControl::bHandBrake, FVehicleControl::bManualGearShift, CarlaRecorderAnimVehicle::Brake, FVehicleControl::Brake, FVehicleControl::bReverse, CarlaRecorderAnimVehicle::DatabaseId, Episode, UCarlaEpisode::FindCarlaActor(), CarlaRecorderAnimVehicle::Gear, FVehicleControl::Gear, FVehicleControl::Steer, CarlaRecorderAnimVehicle::Steering, CarlaRecorderAnimVehicle::Throttle, and FVehicleControl::Throttle.

Referenced by PlayFrameData(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessReplayerAnimWalker()

void FFrameData::ProcessReplayerAnimWalker ( CarlaRecorderAnimWalker  Walker)
private

Definition at line 942 of file FrameData.cpp.

References CarlaRecorderAnimWalker::DatabaseId, SetWalkerSpeed(), and CarlaRecorderAnimWalker::Speed.

Referenced by PlayFrameData(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessReplayerEventAdd()

std::pair< int, uint32_t > FFrameData::ProcessReplayerEventAdd ( FVector  Location,
FVector  Rotation,
CarlaRecorderActorDescription  Description,
uint32_t  DesiredId,
bool  bIgnoreHero,
bool  ReplaySensors,
std::unordered_map< uint32_t, uint32_t > &  MappedId 
)
private

Definition at line 699 of file FrameData.cpp.

References CarlaRecorderActorDescription::Attributes, CreateOrReuseActor(), Episode, CarlaRecorderActorDescription::Id, FActorDescription::Id, FActorAttribute::Id, SetActorSimulatePhysics(), FActorAttribute::Type, FActorDescription::UId, CarlaRecorderActorDescription::UId, FActorAttribute::Value, FActorDescription::Variations, and FCarlaActor::Vehicle.

Referenced by PlayFrameData(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessReplayerEventDel()

bool FFrameData::ProcessReplayerEventDel ( uint32_t  DatabaseId)
private

Definition at line 760 of file FrameData.cpp.

References UCarlaEpisode::DestroyActor(), Episode, UCarlaEpisode::FindCarlaActor(), and FCarlaActor::GetActorId().

Referenced by PlayFrameData(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessReplayerEventParent()

bool FFrameData::ProcessReplayerEventParent ( uint32_t  ChildId,
uint32_t  ParentId 
)
private

Definition at line 774 of file FrameData.cpp.

References FCarlaActor::AddChildren(), UCarlaEpisode::AttachActors(), Episode, UCarlaEpisode::FindCarlaActor(), FCarlaActor::GetActor(), FCarlaActor::GetActorId(), FCarlaActor::IsDormant(), UCarlaEpisode::PutActorToSleep(), carla::rpc::Rigid, FCarlaActor::SetAttachmentType(), and FCarlaActor::SetParent().

Referenced by SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessReplayerFinish()

bool FFrameData::ProcessReplayerFinish ( bool  bApplyAutopilot,
bool  bIgnoreHero,
std::unordered_map< uint32_t, bool > &  IsHero 
)
private

Definition at line 948 of file FrameData.cpp.

References FCarlaActor::ApplyControlToVehicle(), FVehicleControl::bHandBrake, FVehicleControl::bManualGearShift, FVehicleControl::Brake, FVehicleControl::bReverse, Episode, FVehicleControl::Gear, FCarlaActor::GetActorId(), UCarlaEpisode::GetActorRegistry(), FCarlaActor::GetActorType(), SetActorSimulatePhysics(), SetActorVelocity(), SetWalkerSpeed(), FVehicleControl::Steer, FVehicleControl::Throttle, FCarlaActor::Vehicle, and FCarlaActor::Walker.

Referenced by SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessReplayerLightScene()

void FFrameData::ProcessReplayerLightScene ( CarlaRecorderLightScene  LightScene)
private

Definition at line 919 of file FrameData.cpp.

References CarlaRecorderLightScene::bOn, CarlaRecorderLightScene::Color, Episode, UCarlaLightSubsystem::GetLight(), CarlaRecorderLightScene::Intensity, CarlaRecorderLightScene::LightId, and CarlaRecorderLightScene::Type.

Referenced by PlayFrameData(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessReplayerLightVehicle()

void FFrameData::ProcessReplayerLightVehicle ( CarlaRecorderLightVehicle  LightVehicle)
private

Definition at line 908 of file FrameData.cpp.

References CarlaRecorderLightVehicle::DatabaseId, Episode, UCarlaEpisode::FindCarlaActor(), FCarlaActor::SetVehicleLightState(), and CarlaRecorderLightVehicle::State.

Referenced by PlayFrameData(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessReplayerPosition()

bool FFrameData::ProcessReplayerPosition ( CarlaRecorderPosition  Pos1,
CarlaRecorderPosition  Pos2,
double  Per,
double  DeltaTime 
)
private

Definition at line 810 of file FrameData.cpp.

References CarlaRecorderPosition::DatabaseId, Episode, UCarlaEpisode::FindCarlaActor(), CarlaRecorderPosition::Location, CarlaRecorderPosition::Rotation, and FCarlaActor::SetActorGlobalTransform().

Referenced by PlayFrameData(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessReplayerStateTrafficLight()

bool FFrameData::ProcessReplayerStateTrafficLight ( CarlaRecorderStateTrafficLight  State)
private

Definition at line 866 of file FrameData.cpp.

References CarlaRecorderStateTrafficLight::DatabaseId, CarlaRecorderStateTrafficLight::ElapsedTime, Episode, UCarlaEpisode::FindCarlaActor(), UTrafficLightController::GetGroup(), FCarlaActor::GetTrafficLightController(), CarlaRecorderStateTrafficLight::IsFrozen, UTrafficLightController::SetElapsedTime(), ATrafficLightGroup::SetFrozenGroup(), FCarlaActor::SetTrafficLightState(), and CarlaRecorderStateTrafficLight::State.

Referenced by PlayFrameData(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Read()

void FFrameData::Read ( std::istream &  InStream)

Definition at line 195 of file FrameData.cpp.

References AnimVehicle, AnimWalker, Clear(), EventAdd, EventDel, EventParent, EventsAdd, EventsDel, EventsParent, FrameCounter, FrameCounter, FFrameData::Header::Id, LightScenes, LightVehicles, Position, Positions, CarlaRecorderFrameCounter::Read(), CarlaRecorderEventsDel::Read(), CarlaRecorderEventsParent::Read(), CarlaRecorderAnimWalkers::Read(), CarlaRecorderPositions::Read(), CarlaRecorderLightVehicles::Read(), CarlaRecorderStates::Read(), CarlaRecorderAnimVehicles::Read(), CarlaRecorderLightScenes::Read(), CarlaRecorderEventsAdd::Read(), SceneLight, FFrameData::Header::Size, State, States, VehicleLight, Vehicles, and Walkers.

Referenced by FCarlaEngine::NotifyInitGame(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetActorSimulatePhysics()

bool FFrameData::SetActorSimulatePhysics ( FCarlaActor CarlaActor,
bool  bEnabled 
)
private

Definition at line 1014 of file FrameData.cpp.

References FCarlaActor::SetActorSimulatePhysics(), and Success.

Referenced by ProcessReplayerEventAdd(), ProcessReplayerFinish(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetActorVelocity()

void FFrameData::SetActorVelocity ( FCarlaActor CarlaActor,
FVector  Velocity 
)
private

Definition at line 990 of file FrameData.cpp.

References FCarlaActor::SetActorTargetVelocity().

Referenced by ProcessReplayerFinish(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetCameraPosition()

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

Definition at line 840 of file FrameData.cpp.

References Episode, UCarlaEpisode::FindCarlaActor(), FCarlaActor::GetActorGlobalTransform(), UCarlaEpisode::GetSpectatorPawn(), and FCarlaActor::SetActorGlobalTransform().

Referenced by SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetEpisode()

void FFrameData::SetEpisode ( UCarlaEpisode ThisEpisode)
inline

◆ SetFrameCounter()

void FFrameData::SetFrameCounter ( )
private

Definition at line 1029 of file FrameData.cpp.

References CarlaRecorderFrameCounter::FrameCounter, FrameCounter, and FCarlaEngine::ResetFrameCounter().

Referenced by PlayFrameData(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetWalkerSpeed()

void FFrameData::SetWalkerSpeed ( uint32_t  ActorId,
float  Speed 
)
private

Definition at line 1000 of file FrameData.cpp.

References FCarlaActor::ApplyControlToWalker(), Episode, UCarlaEpisode::FindCarlaActor(), and FWalkerControl::Speed.

Referenced by ProcessReplayerAnimWalker(), ProcessReplayerFinish(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Write()

void FFrameData::Write ( std::ostream &  OutStream)

Definition at line 181 of file FrameData.cpp.

References EventsAdd, EventsDel, EventsParent, FrameCounter, LightScenes, LightVehicles, Positions, States, TrafficLightTimes, Vehicles, Walkers, CarlaRecorderFrameCounter::Write(), CarlaRecorderEventsDel::Write(), CarlaRecorderEventsParent::Write(), CarlaRecorderAnimWalkers::Write(), CarlaRecorderPositions::Write(), CarlaRecorderTrafficLightTimes::Write(), CarlaRecorderLightVehicles::Write(), CarlaRecorderLightScenes::Write(), CarlaRecorderStates::Write(), CarlaRecorderAnimVehicles::Write(), and CarlaRecorderEventsAdd::Write().

Referenced by FCarlaEngine::OnPostTick(), and SetEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ BoundingBoxes

CarlaRecorderActorBoundingBoxes FFrameData::BoundingBoxes
private

Definition at line 48 of file FrameData.h.

Referenced by AddBoundingBox(), and Clear().

◆ Collisions

CarlaRecorderCollisions FFrameData::Collisions
private

Definition at line 40 of file FrameData.h.

Referenced by AddCollision(), and Clear().

◆ Episode

UCarlaEpisode* FFrameData::Episode
private

◆ EventsAdd

CarlaRecorderEventsAdd FFrameData::EventsAdd
private

Definition at line 37 of file FrameData.h.

Referenced by AddEvent(), Clear(), PlayFrameData(), Read(), and Write().

◆ EventsDel

CarlaRecorderEventsDel FFrameData::EventsDel
private

Definition at line 38 of file FrameData.h.

Referenced by AddEvent(), Clear(), PlayFrameData(), Read(), and Write().

◆ EventsParent

CarlaRecorderEventsParent FFrameData::EventsParent
private

Definition at line 39 of file FrameData.h.

Referenced by AddEvent(), Clear(), Read(), and Write().

◆ FrameCounter

CarlaRecorderFrameCounter FFrameData::FrameCounter
private

Definition at line 53 of file FrameData.h.

Referenced by Clear(), GetFrameCounter(), Read(), SetFrameCounter(), and Write().

◆ Frames

CarlaRecorderFrames FFrameData::Frames
private

Definition at line 36 of file FrameData.h.

◆ Info

CarlaRecorderInfo FFrameData::Info
private

Definition at line 35 of file FrameData.h.

◆ Kinematics

CarlaRecorderActorsKinematics FFrameData::Kinematics
private

Definition at line 47 of file FrameData.h.

Referenced by AddKinematics(), and Clear().

◆ LightScenes

CarlaRecorderLightScenes FFrameData::LightScenes
private

Definition at line 46 of file FrameData.h.

Referenced by AddEventLightSceneChanged(), Clear(), PlayFrameData(), Read(), and Write().

◆ LightVehicles

CarlaRecorderLightVehicles FFrameData::LightVehicles
private

Definition at line 45 of file FrameData.h.

Referenced by AddLightVehicle(), Clear(), PlayFrameData(), Read(), and Write().

◆ PhysicsControls

CarlaRecorderPhysicsControls FFrameData::PhysicsControls
private

Definition at line 51 of file FrameData.h.

Referenced by AddPhysicsControl(), and Clear().

◆ PlatformTime

CarlaRecorderPlatformTime FFrameData::PlatformTime
private

Definition at line 50 of file FrameData.h.

◆ Positions

CarlaRecorderPositions FFrameData::Positions
private

Definition at line 41 of file FrameData.h.

Referenced by AddPosition(), Clear(), PlayFrameData(), Read(), and Write().

◆ States

CarlaRecorderStates FFrameData::States
private

Definition at line 42 of file FrameData.h.

Referenced by AddState(), Clear(), PlayFrameData(), Read(), and Write().

◆ TrafficLightTimes

CarlaRecorderTrafficLightTimes FFrameData::TrafficLightTimes
private

Definition at line 52 of file FrameData.h.

Referenced by AddTrafficLightTime(), Clear(), and Write().

◆ TriggerVolumes

CarlaRecorderActorTriggerVolumes FFrameData::TriggerVolumes
private

Definition at line 49 of file FrameData.h.

Referenced by AddTriggerVolume(), and Clear().

◆ Vehicles

CarlaRecorderAnimVehicles FFrameData::Vehicles
private

Definition at line 43 of file FrameData.h.

Referenced by AddAnimVehicle(), Clear(), PlayFrameData(), Read(), and Write().

◆ Walkers

CarlaRecorderAnimWalkers FFrameData::Walkers
private

Definition at line 44 of file FrameData.h.

Referenced by AddAnimWalker(), Clear(), PlayFrameData(), Read(), and Write().


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