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);
Recorder for the simulation
void OnEpisodeSettingsChanged(const FEpisodeSettings &Settings)
FDelegateHandle OnEpisodeSettingsChangeHandle
std::shared_ptr< carla::multigpu::Router > SecondaryServer
std::mutex FrameToProcessMutex
void OnPreTick(UWorld *World, ELevelTick TickType, float DeltaSeconds)
static uint64_t FrameCounter
static uint64_t GetFrameCounter()
void ResetSimulationState()
const FCarlaServer & GetServer() const
FWorldObserver WorldObserver
static void ResetFrameCounter(uint64_t Value=0)
std::unordered_map< uint32_t, uint32_t > MappedId
std::shared_ptr< carla::multigpu::Router > GetSecondaryServer()
FEpisodeSettings CurrentSettings
static uint64_t UpdateFrameCounter()
UCarlaEpisode * CurrentEpisode
std::vector< FFrameData > FramesToProcess
void NotifyBeginEpisode(UCarlaEpisode &Episode)
void NotifyInitGame(const UCarlaSettings &Settings)
ACarlaRecorder * Recorder
void SetRecorder(ACarlaRecorder *InRecorder)
FCarlaServer & GetServer()
FDelegateHandle OnPreTickHandle
FDelegateHandle OnPostTickHandle
std::shared_ptr< carla::multigpu::Secondary > Secondary
UCarlaEpisode * GetCurrentEpisode()
void OnPostTick(UWorld *World, ELevelTick TickType, float DeltaSeconds)
Serializes and sends all the actors in the current UCarlaEpisode.
Global settings for CARLA.
static std::shared_ptr< ROS2 > GetInstance()