16 #include "Misc/CoreDelegates.h" 73 #if defined(WITH_ROS2) 75 if (ROS2->IsEnabled())
84 #if defined(WITH_ROS2) 86 if (ROS2->IsEnabled())
98 void OnPreTick(UWorld *World, ELevelTick TickType,
float DeltaSeconds);
100 void OnPostTick(UWorld *World, ELevelTick TickType,
float DeltaSeconds);
UCarlaEpisode * GetCurrentEpisode()
void OnEpisodeSettingsChanged(const FEpisodeSettings &Settings)
FDelegateHandle OnEpisodeSettingsChangeHandle
std::shared_ptr< carla::multigpu::Router > SecondaryServer
FCarlaServer & GetServer()
Serializes and sends all the actors in the current UCarlaEpisode.
std::vector< FFrameData > FramesToProcess
static uint64_t UpdateFrameCounter()
FDelegateHandle OnPostTickHandle
std::shared_ptr< carla::multigpu::Router > GetSecondaryServer()
FWorldObserver WorldObserver
void SetRecorder(ACarlaRecorder *InRecorder)
static void ResetFrameCounter(uint64_t Value=0)
static uint64_t GetFrameCounter()
void NotifyInitGame(const UCarlaSettings &Settings)
void OnPostTick(UWorld *World, ELevelTick TickType, float DeltaSeconds)
static uint64_t FrameCounter
std::mutex FrameToProcessMutex
void NotifyBeginEpisode(UCarlaEpisode &Episode)
Recorder for the simulation.
ACarlaRecorder * Recorder
std::unordered_map< uint32_t, uint32_t > MappedId
FEpisodeSettings CurrentSettings
Global settings for CARLA.
UCarlaEpisode * CurrentEpisode
void ResetSimulationState()
void OnPreTick(UWorld *World, ELevelTick TickType, float DeltaSeconds)
static std::shared_ptr< ROS2 > GetInstance()
std::shared_ptr< carla::multigpu::Secondary > Secondary
FDelegateHandle OnPreTickHandle
const FCarlaServer & GetServer() const