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

Recorder for the simulation. More...

#include <CarlaRecorder.h>

+ Inheritance diagram for ACarlaRecorder:
+ Collaboration diagram for ACarlaRecorder:

Public Member Functions

 ACarlaRecorder (void)
 
 ACarlaRecorder (const FObjectInitializer &InObjectInitializer)
 
void AddActorBones (FCarlaActor *CarlaActor)
 
void AddAnimBiker (const CarlaRecorderAnimBiker &Biker)
 
void AddAnimVehicle (const CarlaRecorderAnimVehicle &Vehicle)
 
void AddAnimVehicleWheels (const CarlaRecorderAnimWheels &VehicleWheels)
 
void AddAnimWalker (const CarlaRecorderAnimWalker &Walker)
 
void AddBoundingBox (const CarlaRecorderActorBoundingBox &ActorBoundingBox)
 
void AddCollision (AActor *Actor1, AActor *Actor2)
 
void AddEvent (const CarlaRecorderEventAdd &Event)
 
void AddEvent (const CarlaRecorderEventDel &Event)
 
void AddEvent (const CarlaRecorderEventParent &Event)
 
void AddEventLightSceneChanged (const UCarlaLight *Light)
 
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 AddTrafficLightTime (const ATrafficLightBase &TrafficLight)
 
void AddTriggerVolume (const ATrafficSignBase &TrafficSign)
 
void Clear (void)
 
void CreateRecorderEventAdd (uint32_t DatabaseId, uint8_t Type, const FTransform &Transform, FActorDescription ActorDescription)
 
void Disable (void)
 
void Enable (void)
 
CarlaReplayerGetReplayer (void)
 
bool IsEnabled (void)
 
std::string ReplayFile (std::string Name, double TimeStart, double Duration, uint32_t FollowId, bool ReplaySensors)
 
void SetEpisode (UCarlaEpisode *ThisEpisode)
 
void SetReplayerIgnoreHero (bool IgnoreHero)
 
void SetReplayerIgnoreSpectator (bool IgnoreSpectator)
 
void SetReplayerTimeFactor (double TimeFactor)
 
std::string ShowFileActorsBlocked (std::string Name, double MinTime=30, double MinDistance=10)
 
std::string ShowFileCollisions (std::string Name, char Type1, char Type2)
 
std::string ShowFileInfo (std::string Name, bool bShowAll=false)
 
std::string Start (std::string Name, FString MapName, bool AdditionalData=false)
 
void Stop (void)
 
void StopReplayer (bool KeepActors=false)
 
void Ticking (float DeltaSeconds)
 
void Write (double DeltaSeconds)
 

Private Member Functions

void AddActorBoundingBox (FCarlaActor *CarlaActor)
 
void AddActorKinematics (FCarlaActor *CarlaActor)
 
void AddActorPosition (FCarlaActor *CarlaActor)
 
void AddBikerAnimation (FCarlaActor *CarlaActor)
 
void AddExistingActors (void)
 
void AddTrafficLightState (FCarlaActor *CarlaActor)
 
void AddVehicleAnimation (FCarlaActor *CarlaActor)
 
void AddVehicleLight (FCarlaActor *CarlaActor)
 
void AddVehicleWheelsAnimation (FCarlaActor *CarlaActor)
 
void AddWalkerAnimation (FCarlaActor *CarlaActor)
 

Private Attributes

bool bAdditionalData = false
 
CarlaRecorderAnimBikers Bikers
 
CarlaRecorderActorBoundingBoxes BoundingBoxes
 
CarlaRecorderCollisions Collisions
 
bool Enabled
 
UCarlaEpisodeEpisode = nullptr
 
CarlaRecorderEventsAdd EventsAdd
 
CarlaRecorderEventsDel EventsDel
 
CarlaRecorderEventsParent EventsParent
 
std::ofstream File
 
CarlaRecorderFrames Frames
 
CarlaRecorderInfo Info
 
CarlaRecorderActorsKinematics Kinematics
 
CarlaRecorderLightScenes LightScenes
 
CarlaRecorderLightVehicles LightVehicles
 
uint32_t NextCollisionId = 0
 
CarlaRecorderPhysicsControls PhysicsControls
 
CarlaRecorderPlatformTime PlatformTime
 
CarlaRecorderPositions Positions
 
CarlaRecorderQuery Query
 
CarlaReplayer Replayer
 
CarlaRecorderStates States
 
CarlaRecorderTrafficLightTimes TrafficLightTimes
 
CarlaRecorderActorTriggerVolumes TriggerVolumes
 
CarlaRecorderAnimVehicles Vehicles
 
CarlaRecorderVisualTime VisualTime
 
CarlaRecorderAnimWalkers Walkers
 
CarlaRecorderWalkersBones WalkersBones
 
CarlaRecorderAnimVehicleWheels Wheels
 

Detailed Description

Recorder for the simulation.

Definition at line 76 of file CarlaRecorder.h.

Constructor & Destructor Documentation

◆ ACarlaRecorder() [1/2]

ACarlaRecorder::ACarlaRecorder ( void  )

Definition at line 33 of file CarlaRecorder.cpp.

References Disable().

+ Here is the call graph for this function:

◆ ACarlaRecorder() [2/2]

ACarlaRecorder::ACarlaRecorder ( const FObjectInitializer &  InObjectInitializer)

Definition at line 39 of file CarlaRecorder.cpp.

References Disable().

+ Here is the call graph for this function:

Member Function Documentation

◆ AddActorBones()

void ACarlaRecorder::AddActorBones ( FCarlaActor CarlaActor)

Definition at line 385 of file CarlaRecorder.cpp.

References CarlaRecorderWalkersBones::Add(), CarlaRecorderWalkerBones::Bones, FWalkerBoneControlOut::BoneTransforms, CarlaRecorderWalkerBones::DatabaseId, FCarlaActor::GetActorId(), FCarlaActor::GetBonesTransform(), and WalkersBones.

Referenced by Ticking().

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

◆ AddActorBoundingBox()

void ACarlaRecorder::AddActorBoundingBox ( FCarlaActor CarlaActor)
private

Definition at line 324 of file CarlaRecorder.cpp.

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

Referenced by CreateRecorderEventAdd().

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

◆ AddActorKinematics()

void ACarlaRecorder::AddActorKinematics ( FCarlaActor CarlaActor)
private

Definition at line 307 of file CarlaRecorder.cpp.

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

Referenced by Ticking().

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

◆ AddActorPosition()

void ACarlaRecorder::AddActorPosition ( FCarlaActor CarlaActor)
private

Definition at line 168 of file CarlaRecorder.cpp.

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

Referenced by Ticking().

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

◆ AddAnimBiker()

void ACarlaRecorder::AddAnimBiker ( const CarlaRecorderAnimBiker Biker)

Definition at line 639 of file CarlaRecorder.cpp.

References CarlaRecorderAnimBikers::Add(), Bikers, and Enabled.

Referenced by AddVehicleWheelsAnimation().

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

◆ AddAnimVehicle()

void ACarlaRecorder::AddAnimVehicle ( const CarlaRecorderAnimVehicle Vehicle)

Definition at line 615 of file CarlaRecorder.cpp.

References CarlaRecorderAnimVehicles::Add(), Enabled, and Vehicles.

Referenced by AddVehicleAnimation().

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

◆ AddAnimVehicleWheels()

void ACarlaRecorder::AddAnimVehicleWheels ( const CarlaRecorderAnimWheels VehicleWheels)

Definition at line 623 of file CarlaRecorder.cpp.

References CarlaRecorderAnimVehicleWheels::Add(), Enabled, and Wheels.

Referenced by AddVehicleWheelsAnimation().

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

◆ AddAnimWalker()

void ACarlaRecorder::AddAnimWalker ( const CarlaRecorderAnimWalker Walker)

Definition at line 631 of file CarlaRecorder.cpp.

References CarlaRecorderAnimWalkers::Add(), Enabled, and Walkers.

Referenced by AddWalkerAnimation().

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

◆ AddBikerAnimation()

void ACarlaRecorder::AddBikerAnimation ( FCarlaActor CarlaActor)
private

◆ AddBoundingBox()

void ACarlaRecorder::AddBoundingBox ( const CarlaRecorderActorBoundingBox ActorBoundingBox)

Definition at line 680 of file CarlaRecorder.cpp.

References CarlaRecorderActorBoundingBoxes::Add(), BoundingBoxes, and Enabled.

Referenced by AddActorBoundingBox().

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

◆ AddCollision()

void ACarlaRecorder::AddCollision ( AActor Actor1,
AActor Actor2 
)

Definition at line 562 of file CarlaRecorder.cpp.

References CarlaRecorderCollisions::Add(), Collision, Collisions, CarlaRecorderCollision::DatabaseId1, CarlaRecorderCollision::DatabaseId2, FActorInfo::Description, Enabled, Episode, FActorRegistry::FindCarlaActor(), FCarlaActor::GetActorId(), FCarlaActor::GetActorInfo(), UCarlaEpisode::GetActorRegistry(), CarlaRecorderCollision::Id, CarlaRecorderCollision::IsActor1Hero, CarlaRecorderCollision::IsActor2Hero, NextCollisionId, and FActorDescription::Variations.

Referenced by ACollisionSensor::OnCollisionEvent().

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

◆ AddEvent() [1/3]

void ACarlaRecorder::AddEvent ( const CarlaRecorderEventAdd Event)

Definition at line 538 of file CarlaRecorder.cpp.

References CarlaRecorderEventsAdd::Add(), Enabled, and EventsAdd.

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

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

◆ AddEvent() [2/3]

void ACarlaRecorder::AddEvent ( const CarlaRecorderEventDel Event)

Definition at line 546 of file CarlaRecorder.cpp.

References CarlaRecorderEventsDel::Add(), Enabled, and EventsDel.

+ Here is the call graph for this function:

◆ AddEvent() [3/3]

void ACarlaRecorder::AddEvent ( const CarlaRecorderEventParent Event)

Definition at line 554 of file CarlaRecorder.cpp.

References CarlaRecorderEventsParent::Add(), Enabled, and EventsParent.

+ Here is the call graph for this function:

◆ AddEventLightSceneChanged()

void ACarlaRecorder::AddEventLightSceneChanged ( const UCarlaLight *  Light)

Definition at line 655 of file CarlaRecorder.cpp.

References CarlaRecorderLightScenes::Add(), Enabled, and LightScenes.

Referenced by AddExistingActors().

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

◆ AddExistingActors()

void ACarlaRecorder::AddExistingActors ( void  )
private

Definition at line 688 of file CarlaRecorder.cpp.

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

Referenced by Start().

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

◆ AddKinematics()

void ACarlaRecorder::AddKinematics ( const CarlaRecorderKinematics ActorKinematics)

Definition at line 672 of file CarlaRecorder.cpp.

References CarlaRecorderActorsKinematics::Add(), Enabled, and Kinematics.

Referenced by AddActorKinematics().

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

◆ AddLightVehicle()

void ACarlaRecorder::AddLightVehicle ( const CarlaRecorderLightVehicle LightVehicle)

Definition at line 647 of file CarlaRecorder.cpp.

References CarlaRecorderLightVehicles::Add(), Enabled, and LightVehicles.

Referenced by AddVehicleLight().

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

◆ AddPhysicsControl()

void ACarlaRecorder::AddPhysicsControl ( const ACarlaWheeledVehicle Vehicle)

Definition at line 359 of file CarlaRecorder.cpp.

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

Referenced by CreateRecorderEventAdd().

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

◆ AddPosition()

void ACarlaRecorder::AddPosition ( const CarlaRecorderPosition Position)

Definition at line 530 of file CarlaRecorder.cpp.

References CarlaRecorderPositions::Add(), Enabled, and Positions.

Referenced by AddActorPosition().

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

◆ AddState()

void ACarlaRecorder::AddState ( const CarlaRecorderStateTrafficLight State)

Definition at line 607 of file CarlaRecorder.cpp.

References CarlaRecorderStates::Add(), Enabled, and States.

Referenced by AddTrafficLightState().

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

◆ AddTrafficLightState()

void ACarlaRecorder::AddTrafficLightState ( FCarlaActor CarlaActor)
private

Definition at line 273 of file CarlaRecorder.cpp.

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

Referenced by Ticking().

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

◆ AddTrafficLightTime()

void ACarlaRecorder::AddTrafficLightTime ( const ATrafficLightBase TrafficLight)

Definition at line 370 of file CarlaRecorder.cpp.

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

Referenced by CreateRecorderEventAdd().

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

◆ AddTriggerVolume()

void ACarlaRecorder::AddTriggerVolume ( const ATrafficSignBase TrafficSign)

Definition at line 338 of file CarlaRecorder.cpp.

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

Referenced by CreateRecorderEventAdd().

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

◆ AddVehicleAnimation()

void ACarlaRecorder::AddVehicleAnimation ( FCarlaActor CarlaActor)
private

Definition at line 182 of file CarlaRecorder.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 Ticking().

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

◆ AddVehicleLight()

void ACarlaRecorder::AddVehicleLight ( FCarlaActor CarlaActor)
private

Definition at line 295 of file CarlaRecorder.cpp.

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

Referenced by Ticking().

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

◆ AddVehicleWheelsAnimation()

void ACarlaRecorder::AddVehicleWheelsAnimation ( FCarlaActor CarlaActor)
private

Definition at line 205 of file CarlaRecorder.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 Ticking().

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

◆ AddWalkerAnimation()

void ACarlaRecorder::AddWalkerAnimation ( FCarlaActor CarlaActor)
private

Definition at line 257 of file CarlaRecorder.cpp.

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

Referenced by Ticking().

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

◆ Clear()

void ACarlaRecorder::Clear ( void  )

◆ CreateRecorderEventAdd()

void ACarlaRecorder::CreateRecorderEventAdd ( uint32_t  DatabaseId,
uint8_t  Type,
const FTransform &  Transform,
FActorDescription  ActorDescription 
)

Definition at line 720 of file CarlaRecorder.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(), and UCarlaEpisode::SpawnActorWithInfo().

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

◆ Disable()

void ACarlaRecorder::Disable ( void  )

Definition at line 162 of file CarlaRecorder.cpp.

References Enabled.

Referenced by ACarlaRecorder(), and Stop().

+ Here is the caller graph for this function:

◆ Enable()

void ACarlaRecorder::Enable ( void  )

Definition at line 156 of file CarlaRecorder.cpp.

References Enabled.

Referenced by Start().

+ Here is the caller graph for this function:

◆ GetReplayer()

CarlaReplayer* ACarlaRecorder::GetReplayer ( void  )
inline

Definition at line 154 of file CarlaRecorder.h.

Referenced by ACarlaGameModeBase::BeginPlay(), UCarlaEpisode::EndPlay(), and FCarlaEngine::NotifyBeginEpisode().

+ Here is the caller graph for this function:

◆ IsEnabled()

bool ACarlaRecorder::IsEnabled ( void  )
inline

Definition at line 86 of file CarlaRecorder.h.

References Position, State, TrafficLight, and Vehicle.

Referenced by UCarlaEpisode::AttachActors(), ACollisionSensor::OnCollisionEvent(), and UCarlaEpisode::SpawnActorWithInfo().

+ Here is the caller graph for this function:

◆ ReplayFile()

std::string ACarlaRecorder::ReplayFile ( std::string  Name,
double  TimeStart,
double  Duration,
uint32_t  FollowId,
bool  ReplaySensors 
)

Definition at line 61 of file CarlaRecorder.cpp.

References Replayer, CarlaReplayer::ReplayFile(), and Stop().

Referenced by FCarlaServer::FPimpl::BindActions().

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

◆ SetEpisode()

void ACarlaRecorder::SetEpisode ( UCarlaEpisode ThisEpisode)
inline

Definition at line 141 of file CarlaRecorder.h.

Referenced by ACarlaGameModeBase::InitGame(), and FCarlaEngine::NotifyBeginEpisode().

+ Here is the caller graph for this function:

◆ SetReplayerIgnoreHero()

void ACarlaRecorder::SetReplayerIgnoreHero ( bool  IgnoreHero)

Definition at line 73 of file CarlaRecorder.cpp.

References Replayer, and CarlaReplayer::SetIgnoreHero().

Referenced by FCarlaServer::FPimpl::BindActions().

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

◆ SetReplayerIgnoreSpectator()

void ACarlaRecorder::SetReplayerIgnoreSpectator ( bool  IgnoreSpectator)

Definition at line 78 of file CarlaRecorder.cpp.

References Replayer, and CarlaReplayer::SetIgnoreSpectator().

Referenced by FCarlaServer::FPimpl::BindActions().

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

◆ SetReplayerTimeFactor()

void ACarlaRecorder::SetReplayerTimeFactor ( double  TimeFactor)

Definition at line 68 of file CarlaRecorder.cpp.

References Replayer, and CarlaReplayer::SetTimeFactor().

Referenced by FCarlaServer::FPimpl::BindActions().

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

◆ ShowFileActorsBlocked()

std::string ACarlaRecorder::ShowFileActorsBlocked ( std::string  Name,
double  MinTime = 30,
double  MinDistance = 10 
)

Definition at line 56 of file CarlaRecorder.cpp.

References Query, and CarlaRecorderQuery::QueryBlocked().

Referenced by FCarlaServer::FPimpl::BindActions().

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

◆ ShowFileCollisions()

std::string ACarlaRecorder::ShowFileCollisions ( std::string  Name,
char  Type1,
char  Type2 
)

Definition at line 51 of file CarlaRecorder.cpp.

References Query, and CarlaRecorderQuery::QueryCollisions().

Referenced by FCarlaServer::FPimpl::BindActions().

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

◆ ShowFileInfo()

std::string ACarlaRecorder::ShowFileInfo ( std::string  Name,
bool  bShowAll = false 
)

Definition at line 46 of file CarlaRecorder.cpp.

References Query, and CarlaRecorderQuery::QueryInfo().

Referenced by FCarlaServer::FPimpl::BindActions().

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

◆ Start()

std::string ACarlaRecorder::Start ( std::string  Name,
FString  MapName,
bool  AdditionalData = false 
)

Definition at line 407 of file CarlaRecorder.cpp.

References AddExistingActors(), bAdditionalData, CarlaRecorderInfo::Date, Enable(), File, Frames, GetRecorderFilename(), Info, CarlaReplayer::IsEnabled(), CarlaRecorderInfo::Magic, CarlaRecorderInfo::Mapfile, NextCollisionId, PlatformTime, Replayer, CarlaRecorderFrames::Reset(), CarlaRecorderPlatformTime::SetStartTime(), CarlaReplayer::Stop(), Stop(), CarlaRecorderInfo::Version, and CarlaRecorderInfo::Write().

Referenced by UCarlaEpisode::StartRecorder().

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

◆ Stop()

void ACarlaRecorder::Stop ( void  )

Definition at line 451 of file CarlaRecorder.cpp.

References Clear(), Disable(), and File.

Referenced by FCarlaServer::FPimpl::BindActions(), UCarlaEpisode::EndPlay(), ReplayFile(), and Start().

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

◆ StopReplayer()

void ACarlaRecorder::StopReplayer ( bool  KeepActors = false)

Definition at line 83 of file CarlaRecorder.cpp.

References Replayer, and CarlaReplayer::Stop().

Referenced by FCarlaServer::FPimpl::BindActions().

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

◆ Ticking()

void ACarlaRecorder::Ticking ( float  DeltaSeconds)

◆ Write()

void ACarlaRecorder::Write ( double  DeltaSeconds)

Member Data Documentation

◆ bAdditionalData

bool ACarlaRecorder::bAdditionalData = false
private

◆ Bikers

CarlaRecorderAnimBikers ACarlaRecorder::Bikers
private

Definition at line 200 of file CarlaRecorder.h.

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

◆ BoundingBoxes

CarlaRecorderActorBoundingBoxes ACarlaRecorder::BoundingBoxes
private

Definition at line 204 of file CarlaRecorder.h.

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

◆ Collisions

CarlaRecorderCollisions ACarlaRecorder::Collisions
private

Definition at line 194 of file CarlaRecorder.h.

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

◆ Enabled

bool ACarlaRecorder::Enabled
private

◆ Episode

UCarlaEpisode* ACarlaRecorder::Episode = nullptr
private

◆ EventsAdd

CarlaRecorderEventsAdd ACarlaRecorder::EventsAdd
private

Definition at line 191 of file CarlaRecorder.h.

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

◆ EventsDel

CarlaRecorderEventsDel ACarlaRecorder::EventsDel
private

Definition at line 192 of file CarlaRecorder.h.

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

◆ EventsParent

CarlaRecorderEventsParent ACarlaRecorder::EventsParent
private

Definition at line 193 of file CarlaRecorder.h.

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

◆ File

std::ofstream ACarlaRecorder::File
private

Definition at line 184 of file CarlaRecorder.h.

Referenced by Start(), Stop(), and Write().

◆ Frames

CarlaRecorderFrames ACarlaRecorder::Frames
private

Definition at line 190 of file CarlaRecorder.h.

Referenced by Start(), and Write().

◆ Info

CarlaRecorderInfo ACarlaRecorder::Info
private

Definition at line 189 of file CarlaRecorder.h.

Referenced by AddVehicleWheelsAnimation(), and Start().

◆ Kinematics

CarlaRecorderActorsKinematics ACarlaRecorder::Kinematics
private

Definition at line 203 of file CarlaRecorder.h.

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

◆ LightScenes

CarlaRecorderLightScenes ACarlaRecorder::LightScenes
private

Definition at line 202 of file CarlaRecorder.h.

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

◆ LightVehicles

CarlaRecorderLightVehicles ACarlaRecorder::LightVehicles
private

Definition at line 201 of file CarlaRecorder.h.

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

◆ NextCollisionId

uint32_t ACarlaRecorder::NextCollisionId = 0
private

Definition at line 181 of file CarlaRecorder.h.

Referenced by AddCollision(), and Start().

◆ PhysicsControls

CarlaRecorderPhysicsControls ACarlaRecorder::PhysicsControls
private

Definition at line 207 of file CarlaRecorder.h.

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

◆ PlatformTime

CarlaRecorderPlatformTime ACarlaRecorder::PlatformTime
private

Definition at line 206 of file CarlaRecorder.h.

Referenced by Start(), Ticking(), and Write().

◆ Positions

CarlaRecorderPositions ACarlaRecorder::Positions
private

Definition at line 195 of file CarlaRecorder.h.

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

◆ Query

CarlaRecorderQuery ACarlaRecorder::Query
private

Definition at line 216 of file CarlaRecorder.h.

Referenced by ShowFileActorsBlocked(), ShowFileCollisions(), and ShowFileInfo().

◆ Replayer

CarlaReplayer ACarlaRecorder::Replayer
private

◆ States

CarlaRecorderStates ACarlaRecorder::States
private

Definition at line 196 of file CarlaRecorder.h.

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

◆ TrafficLightTimes

CarlaRecorderTrafficLightTimes ACarlaRecorder::TrafficLightTimes
private

Definition at line 208 of file CarlaRecorder.h.

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

◆ TriggerVolumes

CarlaRecorderActorTriggerVolumes ACarlaRecorder::TriggerVolumes
private

Definition at line 205 of file CarlaRecorder.h.

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

◆ Vehicles

CarlaRecorderAnimVehicles ACarlaRecorder::Vehicles
private

Definition at line 197 of file CarlaRecorder.h.

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

◆ VisualTime

CarlaRecorderVisualTime ACarlaRecorder::VisualTime
private

Definition at line 210 of file CarlaRecorder.h.

Referenced by Ticking(), and Write().

◆ Walkers

CarlaRecorderAnimWalkers ACarlaRecorder::Walkers
private

Definition at line 199 of file CarlaRecorder.h.

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

◆ WalkersBones

CarlaRecorderWalkersBones ACarlaRecorder::WalkersBones
private

Definition at line 209 of file CarlaRecorder.h.

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

◆ Wheels

CarlaRecorderAnimVehicleWheels ACarlaRecorder::Wheels
private

Definition at line 198 of file CarlaRecorder.h.

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


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