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 AddAnimBiker (const CarlaRecorderAnimBiker &Biker)
 
void AddAnimVehicle (const CarlaRecorderAnimVehicle &Vehicle)
 
void AddAnimVehicleWheels (const CarlaRecorderAnimWheels &VehicleWheels)
 
void AddAnimWalker (const CarlaRecorderAnimWalker &Walker)
 
void AddBikerAnimation (FCarlaActor *CarlaActor)
 
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 AddVehicleWheelsAnimation (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 ProcessReplayerAnimBiker (CarlaRecorderAnimBiker Biker)
 
void ProcessReplayerAnimVehicle (CarlaRecorderAnimVehicle Vehicle)
 
void ProcessReplayerAnimVehicleWheels (CarlaRecorderAnimWheels 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

CarlaRecorderAnimBikers Bikers
 
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
 
CarlaRecorderAnimVehicleWheels Wheels
 

Detailed Description

Definition at line 41 of file FrameData.h.

Member Function Documentation

◆ AddActorBoundingBox()

void FFrameData::AddActorBoundingBox ( FCarlaActor CarlaActor)
private

Definition at line 535 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 518 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 379 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:

◆ AddAnimBiker()

void FFrameData::AddAnimBiker ( const CarlaRecorderAnimBiker Biker)
private

Definition at line 664 of file FrameData.cpp.

References CarlaRecorderAnimBikers::Add(), and Bikers.

Referenced by AddVehicleWheelsAnimation(), 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 654 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:

◆ AddAnimVehicleWheels()

void FFrameData::AddAnimVehicleWheels ( const CarlaRecorderAnimWheels VehicleWheels)
private

Definition at line 659 of file FrameData.cpp.

References CarlaRecorderAnimVehicleWheels::Add(), and Wheels.

Referenced by AddVehicleWheelsAnimation(), 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 669 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:

◆ AddBikerAnimation()

void FFrameData::AddBikerAnimation ( FCarlaActor CarlaActor)
private

Referenced by SetEpisode().

+ Here is the caller graph for this function:

◆ AddBoundingBox()

void FFrameData::AddBoundingBox ( const CarlaRecorderActorBoundingBox ActorBoundingBox)
private

Definition at line 698 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 607 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 592 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 597 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 602 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 679 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 1203 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 693 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 674 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 567 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 587 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 649 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 484 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 575 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 549 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 393 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 506 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:

◆ AddVehicleWheelsAnimation()

void FFrameData::AddVehicleWheelsAnimation ( FCarlaActor CarlaActor)
private

Definition at line 416 of file FrameData.cpp.

References AddAnimBiker(), AddAnimVehicleWheels(), CarlaRecorderAnimWheels::DatabaseId, FCarlaActor::GetActor(), FCarlaActor::GetActorId(), FCarlaActor::GetActorType(), ACarlaWheeledVehicle::GetWheelSteerAngle(), Info, FCarlaActor::IsPendingKill(), ACarlaWheeledVehicle::IsTwoWheeledVehicle(), WheelInfo::Location, WheelInfo::SteeringAngle, WheelInfo::TireRotation, FCarlaActor::Vehicle, and CarlaRecorderAnimWheels::WheelValues.

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 468 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 709 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 303 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 1170 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 703 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 23 of file FrameData.cpp.

References AddActorKinematics(), AddActorPosition(), AddExistingActors(), AddTrafficLightState(), AddVehicleAnimation(), AddVehicleLight(), AddVehicleWheelsAnimation(), 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 
)

Definition at line 78 of file FrameData.cpp.

References AnimBiker, AnimVehicle, AnimWalker, Bikers, CarlaRecorderPosition::DatabaseId, CarlaRecorderStateTrafficLight::DatabaseId, CarlaRecorderAnimWalker::DatabaseId, CarlaRecorderAnimBiker::DatabaseId, CarlaRecorderAnimVehicle::DatabaseId, CarlaRecorderLightVehicle::DatabaseId, CarlaRecorderAnimWheels::DatabaseId, EventAdd, EventDel, EventsAdd, EventsDel, CarlaRecorderAnimBikers::GetBikers(), CarlaRecorderEventsDel::GetEvents(), CarlaRecorderEventsAdd::GetEvents(), CarlaRecorderLightScenes::GetLights(), CarlaRecorderLightVehicles::GetLightVehicles(), CarlaRecorderPositions::GetPositions(), CarlaRecorderStates::GetStates(), CarlaRecorderAnimVehicles::GetVehicles(), CarlaRecorderAnimVehicleWheels::GetVehicleWheels(), CarlaRecorderAnimWalkers::GetWalkers(), LightScenes, LightVehicles, Position, Positions, ProcessReplayerAnimBiker(), ProcessReplayerAnimVehicle(), ProcessReplayerAnimVehicleWheels(), ProcessReplayerAnimWalker(), ProcessReplayerEventAdd(), ProcessReplayerEventDel(), ProcessReplayerLightScene(), ProcessReplayerLightVehicle(), ProcessReplayerPosition(), ProcessReplayerStateTrafficLight(), SetFrameCounter(), State, States, Vehicle, Vehicles, Walkers, and Wheels.

Referenced by SetEpisode().

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

◆ ProcessReplayerAnimBiker()

void FFrameData::ProcessReplayerAnimBiker ( CarlaRecorderAnimBiker  Biker)
private

Definition at line 1070 of file FrameData.cpp.

References CarlaRecorderAnimBiker::DatabaseId, CarlaRecorderAnimBiker::EngineRotation, Episode, UCarlaEpisode::FindCarlaActor(), CarlaRecorderAnimBiker::ForwardSpeed, FCarlaActor::GetActor(), ACarlaWheeledVehicle::SetRotationAnim(), and ACarlaWheeledVehicle::SetSpeedAnim().

Referenced by PlayFrameData(), and SetEpisode().

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

◆ ProcessReplayerAnimVehicle()

void FFrameData::ProcessReplayerAnimVehicle ( CarlaRecorderAnimVehicle  Vehicle)
private

Definition at line 989 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:

◆ ProcessReplayerAnimVehicleWheels()

void FFrameData::ProcessReplayerAnimVehicleWheels ( CarlaRecorderAnimWheels  Vehicle)
private

Definition at line 1007 of file FrameData.cpp.

References CarlaRecorderAnimWheels::DatabaseId, Episode, UCarlaEpisode::FindCarlaActor(), FCarlaActor::GetActor(), FCarlaActor::GetActorType(), WheelInfo::Location, WheelInfo::SteeringAngle, WheelInfo::TireRotation, FCarlaActor::Vehicle, and CarlaRecorderAnimWheels::WheelValues.

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 1065 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 799 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 860 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 874 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 1084 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 1042 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 1031 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 910 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 966 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)

◆ SetActorSimulatePhysics()

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

Definition at line 1150 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 1126 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 940 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 1165 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 1136 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)

Member Data Documentation

◆ Bikers

CarlaRecorderAnimBikers FFrameData::Bikers
private

Definition at line 55 of file FrameData.h.

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

◆ BoundingBoxes

CarlaRecorderActorBoundingBoxes FFrameData::BoundingBoxes
private

Definition at line 59 of file FrameData.h.

Referenced by AddBoundingBox(), and Clear().

◆ Collisions

CarlaRecorderCollisions FFrameData::Collisions
private

Definition at line 49 of file FrameData.h.

Referenced by AddCollision(), and Clear().

◆ Episode

UCarlaEpisode* FFrameData::Episode
private

◆ EventsAdd

CarlaRecorderEventsAdd FFrameData::EventsAdd
private

Definition at line 46 of file FrameData.h.

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

◆ EventsDel

CarlaRecorderEventsDel FFrameData::EventsDel
private

Definition at line 47 of file FrameData.h.

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

◆ EventsParent

CarlaRecorderEventsParent FFrameData::EventsParent
private

Definition at line 48 of file FrameData.h.

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

◆ FrameCounter

CarlaRecorderFrameCounter FFrameData::FrameCounter
private

Definition at line 64 of file FrameData.h.

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

◆ Frames

CarlaRecorderFrames FFrameData::Frames
private

Definition at line 45 of file FrameData.h.

◆ Info

CarlaRecorderInfo FFrameData::Info
private

Definition at line 44 of file FrameData.h.

Referenced by AddVehicleWheelsAnimation().

◆ Kinematics

CarlaRecorderActorsKinematics FFrameData::Kinematics
private

Definition at line 58 of file FrameData.h.

Referenced by AddKinematics(), and Clear().

◆ LightScenes

CarlaRecorderLightScenes FFrameData::LightScenes
private

Definition at line 57 of file FrameData.h.

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

◆ LightVehicles

CarlaRecorderLightVehicles FFrameData::LightVehicles
private

Definition at line 56 of file FrameData.h.

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

◆ PhysicsControls

CarlaRecorderPhysicsControls FFrameData::PhysicsControls
private

Definition at line 62 of file FrameData.h.

Referenced by AddPhysicsControl(), and Clear().

◆ PlatformTime

CarlaRecorderPlatformTime FFrameData::PlatformTime
private

Definition at line 61 of file FrameData.h.

◆ Positions

CarlaRecorderPositions FFrameData::Positions
private

Definition at line 50 of file FrameData.h.

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

◆ States

CarlaRecorderStates FFrameData::States
private

Definition at line 51 of file FrameData.h.

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

◆ TrafficLightTimes

CarlaRecorderTrafficLightTimes FFrameData::TrafficLightTimes
private

Definition at line 63 of file FrameData.h.

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

◆ TriggerVolumes

CarlaRecorderActorTriggerVolumes FFrameData::TriggerVolumes
private

Definition at line 60 of file FrameData.h.

Referenced by AddTriggerVolume(), and Clear().

◆ Vehicles

CarlaRecorderAnimVehicles FFrameData::Vehicles
private

Definition at line 52 of file FrameData.h.

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

◆ Walkers

CarlaRecorderAnimWalkers FFrameData::Walkers
private

Definition at line 54 of file FrameData.h.

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

◆ Wheels

CarlaRecorderAnimVehicleWheels FFrameData::Wheels
private

Definition at line 53 of file FrameData.h.

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


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