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

Recorder for the simulation. More...

#include <CarlaRecorder.h>

Inheritance diagram for ACarlaRecorder:

Public Member Functions

 ACarlaRecorder (const FObjectInitializer &InObjectInitializer)
 ACarlaRecorder (void)
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 AddDoorVehicle (const CarlaRecorderDoorVehicle &DoorVehicle)
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 AddVehicleDoor (const ACarlaWheeledVehicle &Vehicle, const EVehicleDoor SDoors, bool bIsOpen)
void AddWeather (const CarlaRecorderWeather &Weather)
void Clear (void)
void CreateRecorderEventAdd (uint32_t DatabaseId, uint8_t Type, const FTransform &Transform, FActorDescription ActorDescription)
void Disable (void)
void Enable (void)
CarlaReplayer * GetReplayer (void)
bool IsEnabled (void)
std::string ReplayFile (std::string Name, double TimeStart, double Duration, uint32_t FollowId, const FTransform &Offset, bool ReplaySensors, bool ReplayWeather, std::string MapOverride)
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, bool StopReplayer=true)
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 AddExistingWeather (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
bool bFirstTick = true
CarlaRecorderAnimBikers Bikers
CarlaRecorderActorBoundingBoxes BoundingBoxes
CarlaRecorderCollisions Collisions
CarlaRecorderDoorVehicles DoorVehicles
bool Enabled
UCarlaEpisode * Episode = 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
CarlaRecorderWeathers Weathers
CarlaRecorderAnimVehicleWheels Wheels

Detailed Description

Recorder for the simulation.

Definition at line 93 of file CarlaRecorder.h.

Constructor & Destructor Documentation

◆ ACarlaRecorder() [1/2]

ACarlaRecorder::ACarlaRecorder ( void )

Definition at line 34 of file CarlaRecorder.cpp.

References Disable().

◆ ACarlaRecorder() [2/2]

ACarlaRecorder::ACarlaRecorder ( const FObjectInitializer & InObjectInitializer)

Definition at line 40 of file CarlaRecorder.cpp.

References Disable().

Member Function Documentation

◆ AddActorBones()

◆ AddActorBoundingBox()

void ACarlaRecorder::AddActorBoundingBox ( FCarlaActor * CarlaActor)
private

◆ AddActorKinematics()

void ACarlaRecorder::AddActorKinematics ( FCarlaActor * CarlaActor)
private

◆ AddActorPosition()

void ACarlaRecorder::AddActorPosition ( FCarlaActor * CarlaActor)
private

◆ AddAnimBiker()

void ACarlaRecorder::AddAnimBiker ( const CarlaRecorderAnimBiker & Biker)

Definition at line 694 of file CarlaRecorder.cpp.

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

Referenced by AddVehicleWheelsAnimation().

◆ AddAnimVehicle()

void ACarlaRecorder::AddAnimVehicle ( const CarlaRecorderAnimVehicle & Vehicle)

Definition at line 670 of file CarlaRecorder.cpp.

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

Referenced by AddVehicleAnimation().

◆ AddAnimVehicleWheels()

void ACarlaRecorder::AddAnimVehicleWheels ( const CarlaRecorderAnimWheels & VehicleWheels)

Definition at line 678 of file CarlaRecorder.cpp.

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

Referenced by AddVehicleWheelsAnimation().

◆ AddAnimWalker()

void ACarlaRecorder::AddAnimWalker ( const CarlaRecorderAnimWalker & Walker)

Definition at line 686 of file CarlaRecorder.cpp.

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

Referenced by AddWalkerAnimation().

◆ AddBikerAnimation()

◆ AddBoundingBox()

void ACarlaRecorder::AddBoundingBox ( const CarlaRecorderActorBoundingBox & ActorBoundingBox)

Definition at line 743 of file CarlaRecorder.cpp.

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

Referenced by AddActorBoundingBox().

◆ AddCollision()

◆ AddDoorVehicle()

void ACarlaRecorder::AddDoorVehicle ( const CarlaRecorderDoorVehicle & DoorVehicle)

Definition at line 710 of file CarlaRecorder.cpp.

References CarlaRecorderDoorVehicles::Add(), DoorVehicles, and Enabled.

Referenced by AddVehicleDoor().

◆ AddEvent() [1/3]

void ACarlaRecorder::AddEvent ( const CarlaRecorderEventAdd & Event)

◆ AddEvent() [2/3]

void ACarlaRecorder::AddEvent ( const CarlaRecorderEventDel & Event)

Definition at line 601 of file CarlaRecorder.cpp.

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

◆ AddEvent() [3/3]

void ACarlaRecorder::AddEvent ( const CarlaRecorderEventParent & Event)

Definition at line 609 of file CarlaRecorder.cpp.

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

◆ AddEventLightSceneChanged()

void ACarlaRecorder::AddEventLightSceneChanged ( const UCarlaLight * Light)

Definition at line 718 of file CarlaRecorder.cpp.

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

Referenced by AddExistingActors().

◆ AddExistingActors()

◆ AddExistingWeather()

◆ AddKinematics()

void ACarlaRecorder::AddKinematics ( const CarlaRecorderKinematics & ActorKinematics)

Definition at line 735 of file CarlaRecorder.cpp.

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

Referenced by AddActorKinematics().

◆ AddLightVehicle()

void ACarlaRecorder::AddLightVehicle ( const CarlaRecorderLightVehicle & LightVehicle)

Definition at line 702 of file CarlaRecorder.cpp.

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

Referenced by AddVehicleLight().

◆ AddPhysicsControl()

◆ AddPosition()

void ACarlaRecorder::AddPosition ( const CarlaRecorderPosition & Position)

Definition at line 577 of file CarlaRecorder.cpp.

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

Referenced by AddActorPosition().

◆ AddState()

void ACarlaRecorder::AddState ( const CarlaRecorderStateTrafficLight & State)

Definition at line 662 of file CarlaRecorder.cpp.

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

Referenced by AddTrafficLightState().

◆ AddTrafficLightState()

◆ AddTrafficLightTime()

◆ AddTriggerVolume()

◆ AddVehicleAnimation()

◆ AddVehicleDoor()

◆ AddVehicleLight()

◆ AddVehicleWheelsAnimation()

◆ AddWalkerAnimation()

void ACarlaRecorder::AddWalkerAnimation ( FCarlaActor * CarlaActor)
private

◆ AddWeather()

void ACarlaRecorder::AddWeather ( const CarlaRecorderWeather & Weather)

Definition at line 585 of file CarlaRecorder.cpp.

References CarlaRecorderWeathers::Add(), Enabled, Weather, and Weathers.

Referenced by AddExistingWeather(), and AWeather::ApplyWeather().

◆ Clear()

◆ CreateRecorderEventAdd()

◆ Disable()

void ACarlaRecorder::Disable ( void )

Definition at line 182 of file CarlaRecorder.cpp.

References Enabled.

Referenced by ACarlaRecorder(), ACarlaRecorder(), and Stop().

◆ Enable()

void ACarlaRecorder::Enable ( void )

Definition at line 176 of file CarlaRecorder.cpp.

References Enabled.

Referenced by Start().

◆ GetReplayer()

CarlaReplayer * ACarlaRecorder::GetReplayer ( void )
inline

◆ IsEnabled()

bool ACarlaRecorder::IsEnabled ( void )
inline

◆ ReplayFile()

std::string ACarlaRecorder::ReplayFile ( std::string Name,
double TimeStart,
double Duration,
uint32_t FollowId,
const FTransform & Offset,
bool ReplaySensors,
bool ReplayWeather,
std::string MapOverride )

Definition at line 62 of file CarlaRecorder.cpp.

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

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

◆ SetEpisode()

void ACarlaRecorder::SetEpisode ( UCarlaEpisode * ThisEpisode)
inline

Definition at line 168 of file CarlaRecorder.h.

References Episode, and Replayer.

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

◆ SetReplayerIgnoreHero()

void ACarlaRecorder::SetReplayerIgnoreHero ( bool IgnoreHero)

Definition at line 76 of file CarlaRecorder.cpp.

References Replayer, and CarlaReplayer::SetIgnoreHero().

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

◆ SetReplayerIgnoreSpectator()

void ACarlaRecorder::SetReplayerIgnoreSpectator ( bool IgnoreSpectator)

Definition at line 81 of file CarlaRecorder.cpp.

References Replayer, and CarlaReplayer::SetIgnoreSpectator().

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

◆ SetReplayerTimeFactor()

void ACarlaRecorder::SetReplayerTimeFactor ( double TimeFactor)

Definition at line 71 of file CarlaRecorder.cpp.

References Replayer, and CarlaReplayer::SetTimeFactor().

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

◆ ShowFileActorsBlocked()

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

Definition at line 57 of file CarlaRecorder.cpp.

References Query, and CarlaRecorderQuery::QueryBlocked().

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

◆ ShowFileCollisions()

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

Definition at line 52 of file CarlaRecorder.cpp.

References Query, and CarlaRecorderQuery::QueryCollisions().

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

◆ ShowFileInfo()

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

Definition at line 47 of file CarlaRecorder.cpp.

References Query, and CarlaRecorderQuery::QueryInfo().

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

◆ Start()

◆ Stop()

void ACarlaRecorder::Stop ( void )

◆ StopReplayer()

void ACarlaRecorder::StopReplayer ( bool KeepActors = false)

◆ Ticking()

◆ Write()

Member Data Documentation

◆ bAdditionalData

bool ACarlaRecorder::bAdditionalData = false
private

◆ bFirstTick

bool ACarlaRecorder::bFirstTick = true
private

Definition at line 217 of file CarlaRecorder.h.

Referenced by Start(), and Ticking().

◆ Bikers

CarlaRecorderAnimBikers ACarlaRecorder::Bikers
private

Definition at line 231 of file CarlaRecorder.h.

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

◆ BoundingBoxes

CarlaRecorderActorBoundingBoxes ACarlaRecorder::BoundingBoxes
private

Definition at line 235 of file CarlaRecorder.h.

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

◆ Collisions

CarlaRecorderCollisions ACarlaRecorder::Collisions
private

Definition at line 225 of file CarlaRecorder.h.

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

◆ DoorVehicles

CarlaRecorderDoorVehicles ACarlaRecorder::DoorVehicles
private

Definition at line 242 of file CarlaRecorder.h.

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

◆ Enabled

◆ Episode

◆ EventsAdd

CarlaRecorderEventsAdd ACarlaRecorder::EventsAdd
private

Definition at line 222 of file CarlaRecorder.h.

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

◆ EventsDel

CarlaRecorderEventsDel ACarlaRecorder::EventsDel
private

Definition at line 223 of file CarlaRecorder.h.

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

◆ EventsParent

CarlaRecorderEventsParent ACarlaRecorder::EventsParent
private

Definition at line 224 of file CarlaRecorder.h.

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

◆ File

std::ofstream ACarlaRecorder::File
private

Definition at line 213 of file CarlaRecorder.h.

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

◆ Frames

CarlaRecorderFrames ACarlaRecorder::Frames
private

Definition at line 221 of file CarlaRecorder.h.

Referenced by Start(), and Write().

◆ Info

CarlaRecorderInfo ACarlaRecorder::Info
private

Definition at line 220 of file CarlaRecorder.h.

Referenced by Start().

◆ Kinematics

CarlaRecorderActorsKinematics ACarlaRecorder::Kinematics
private

Definition at line 234 of file CarlaRecorder.h.

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

◆ LightScenes

CarlaRecorderLightScenes ACarlaRecorder::LightScenes
private

Definition at line 233 of file CarlaRecorder.h.

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

◆ LightVehicles

CarlaRecorderLightVehicles ACarlaRecorder::LightVehicles
private

Definition at line 232 of file CarlaRecorder.h.

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

◆ NextCollisionId

uint32_t ACarlaRecorder::NextCollisionId = 0
private

Definition at line 210 of file CarlaRecorder.h.

Referenced by AddCollision(), and Start().

◆ PhysicsControls

CarlaRecorderPhysicsControls ACarlaRecorder::PhysicsControls
private

Definition at line 238 of file CarlaRecorder.h.

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

◆ PlatformTime

CarlaRecorderPlatformTime ACarlaRecorder::PlatformTime
private

Definition at line 237 of file CarlaRecorder.h.

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

◆ Positions

CarlaRecorderPositions ACarlaRecorder::Positions
private

Definition at line 226 of file CarlaRecorder.h.

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

◆ Query

CarlaRecorderQuery ACarlaRecorder::Query
private

Definition at line 249 of file CarlaRecorder.h.

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

◆ Replayer

◆ States

CarlaRecorderStates ACarlaRecorder::States
private

Definition at line 227 of file CarlaRecorder.h.

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

◆ TrafficLightTimes

CarlaRecorderTrafficLightTimes ACarlaRecorder::TrafficLightTimes
private

Definition at line 239 of file CarlaRecorder.h.

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

◆ TriggerVolumes

CarlaRecorderActorTriggerVolumes ACarlaRecorder::TriggerVolumes
private

Definition at line 236 of file CarlaRecorder.h.

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

◆ Vehicles

CarlaRecorderAnimVehicles ACarlaRecorder::Vehicles
private

Definition at line 228 of file CarlaRecorder.h.

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

◆ VisualTime

CarlaRecorderVisualTime ACarlaRecorder::VisualTime
private

Definition at line 241 of file CarlaRecorder.h.

Referenced by Ticking(), and Write().

◆ Walkers

CarlaRecorderAnimWalkers ACarlaRecorder::Walkers
private

Definition at line 230 of file CarlaRecorder.h.

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

◆ WalkersBones

CarlaRecorderWalkersBones ACarlaRecorder::WalkersBones
private

Definition at line 240 of file CarlaRecorder.h.

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

◆ Weathers

CarlaRecorderWeathers ACarlaRecorder::Weathers
private

Definition at line 243 of file CarlaRecorder.h.

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

◆ Wheels

CarlaRecorderAnimVehicleWheels ACarlaRecorder::Wheels
private

Definition at line 229 of file CarlaRecorder.h.

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


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