#include <CarlaEngine.h>
Inheritance diagram for FCarlaEngine:
Collaboration diagram for FCarlaEngine:Public Member Functions | |
| UCarlaEpisode * | GetCurrentEpisode () |
| std::shared_ptr< carla::multigpu::Router > | GetSecondaryServer () |
| const FCarlaServer & | GetServer () const |
| FCarlaServer & | GetServer () |
| void | NotifyBeginEpisode (UCarlaEpisode &Episode) |
| void | NotifyEndEpisode () |
| void | NotifyInitGame (const UCarlaSettings &Settings) |
| void | SetRecorder (ACarlaRecorder *InRecorder) |
| ~FCarlaEngine () | |
Static Public Member Functions | |
| static uint64_t | GetFrameCounter () |
| static void | ResetFrameCounter (uint64_t Value=0) |
| static uint64_t | UpdateFrameCounter () |
Static Public Attributes | |
| static uint64_t | FrameCounter = 0 |
Private Member Functions | |
| void | OnEpisodeSettingsChanged (const FEpisodeSettings &Settings) |
| void | OnPostTick (UWorld *World, ELevelTick TickType, float DeltaSeconds) |
| void | OnPreTick (UWorld *World, ELevelTick TickType, float DeltaSeconds) |
| void | ResetSimulationState () |
Private Member Functions inherited from NonCopyable | |
| NonCopyable ()=default | |
| NonCopyable (const NonCopyable &)=delete | |
| void | operator= (const NonCopyable &)=delete |
Private Attributes | |
| bool | bIsPrimaryServer = true |
| bool | bIsRunning = false |
| bool | bMapChanged = false |
| bool | bNewConnection = false |
| bool | bSynchronousMode = false |
| UCarlaEpisode * | CurrentEpisode = nullptr |
| FEpisodeSettings | CurrentSettings |
| std::vector< FFrameData > | FramesToProcess |
| std::mutex | FrameToProcessMutex |
| std::unordered_map< uint32_t, uint32_t > | MappedId |
| FDelegateHandle | OnEpisodeSettingsChangeHandle |
| FDelegateHandle | OnPostTickHandle |
| FDelegateHandle | OnPreTickHandle |
| ACarlaRecorder * | Recorder = nullptr |
| std::shared_ptr< carla::multigpu::Secondary > | Secondary |
| std::shared_ptr< carla::multigpu::Router > | SecondaryServer |
| FCarlaServer | Server |
| FWorldObserver | WorldObserver |
Definition at line 31 of file CarlaEngine.h.
| FCarlaEngine::~FCarlaEngine | ( | ) |
Definition at line 62 of file CarlaEngine.cpp.
References bIsRunning, carla::ros2::ROS2::GetInstance(), FCarlaStaticDelegates::OnEpisodeSettingsChange, OnEpisodeSettingsChangeHandle, OnPostTickHandle, and OnPreTickHandle.
Here is the call graph for this function:
|
inline |
Definition at line 55 of file CarlaEngine.h.
References CurrentEpisode.
Referenced by NotifyInitGame(), and OnPostTick().
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 65 of file CarlaEngine.h.
References FrameCounter.
Referenced by FCarlaServer::FPimpl::BindActions(), FAsyncDataStreamTmpl< T >::FAsyncDataStreamTmpl(), FFrameData::GetFrameCounter(), ACollisionSensor::OnCollisionEvent(), ASceneCaptureCamera::PostPhysTick(), and FPixelReader::SendPixelsInRenderThread().
Here is the caller graph for this function:
|
inline |
Definition at line 91 of file CarlaEngine.h.
References OnEpisodeSettingsChanged(), OnPostTick(), OnPreTick(), ResetSimulationState(), and SecondaryServer.
Referenced by UCarlaEpisode::LoadNewEpisode().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 45 of file CarlaEngine.h.
References Server.
|
inline |
Definition at line 50 of file CarlaEngine.h.
References Server.
| void FCarlaEngine::NotifyBeginEpisode | ( | UCarlaEpisode & | Episode | ) |
Definition at line 231 of file CarlaEngine.cpp.
References FEpisodeSettings::ActorActiveDistance, UCarlaEpisode::ApplySettings(), bIsPrimaryServer, UCarlaEpisode::bIsPrimaryServer, FEpisodeSettings::bNoRenderingMode, CarlaReplayer::CheckPlayAfterMapLoaded(), CurrentEpisode, CurrentSettings, UCarlaEpisode::EpisodeSettings, FCarlaEngine_GetFixedDeltaSeconds(), FEpisodeSettings::FixedDeltaSeconds, ALargeMapManager::GetActorStreamingDistance(), UCarlaStatics::GetLargeMapManager(), ALargeMapManager::GetLayerStreamingDistance(), ACarlaRecorder::GetReplayer(), FCarlaServer::NotifyBeginEpisode(), Recorder, ResetFrameCounter(), Server, ACarlaRecorder::SetEpisode(), UCarlaEpisode::SetRecorder(), and FEpisodeSettings::TileStreamingDistance.
Here is the call graph for this function:| void FCarlaEngine::NotifyEndEpisode | ( | ) |
Definition at line 269 of file CarlaEngine.cpp.
References CurrentEpisode, FCarlaServer::NotifyEndEpisode(), and Server.
Here is the call graph for this function:| void FCarlaEngine::NotifyInitGame | ( | const UCarlaSettings & | Settings | ) |
Definition at line 77 of file CarlaEngine.cpp.
References FCarlaServer::AsyncRun(), bIsPrimaryServer, bIsRunning, bMapChanged, bNewConnection, bSynchronousMode, CurrentEpisode, carla::multigpu::DISABLE_ROS, carla::streaming::Server::DisableForROS(), carla::multigpu::ENABLE_ROS, carla::streaming::Server::EnableForROS(), FCarlaEngine_GetNumberOfThreadsForRPCServer(), FramesToProcess, FrameToProcessMutex, carla::multigpu::GET_TOKEN, GetCurrentEpisode(), UCarlaEpisode::GetFrameData(), carla::ros2::ROS2::GetInstance(), FCarlaServer::GetSecondaryServer(), FCarlaServer::GetStreamingServer(), carla::streaming::Server::GetToken(), carla::multigpu::IS_ENABLED_ROS, carla::streaming::Server::IsEnabledForROS(), carla::multigpu::LOAD_MAP, carla::log_info(), FCarlaStaticDelegates::OnEpisodeSettingsChange, OnEpisodeSettingsChanged(), OnEpisodeSettingsChangeHandle, OnPostTick(), OnPostTickHandle, OnPreTick(), OnPreTickHandle, UCarlaSettings::PrimaryIP, UCarlaSettings::PrimaryPort, FFrameData::Read(), UCarlaSettings::RPCPort, Secondary, UCarlaSettings::SecondaryPort, SecondaryServer, carla::multigpu::SEND_FRAME, Server, FWorldObserver::SetStream(), FCarlaServer::Start(), UCarlaSettings::StreamingPort, FCarlaServer::Tick(), WorldObserver, and carla::multigpu::YOU_ALIVE.
Here is the call graph for this function:
|
private |
Definition at line 380 of file CarlaEngine.cpp.
References FEpisodeSettings::ActorActiveDistance, FEpisodeSettings::bNoRenderingMode, FEpisodeSettings::bSubstepping, FEpisodeSettings::bSynchronousMode, bSynchronousMode, CurrentEpisode, CurrentSettings, FCarlaEngine_SetFixedDeltaSeconds(), FEpisodeSettings::FixedDeltaSeconds, carla::client::detail::Get(), UCarlaStatics::GetLargeMapManager(), FEpisodeSettings::MaxSubstepDeltaTime, FEpisodeSettings::MaxSubsteps, ALargeMapManager::SetActorStreamingDistance(), ALargeMapManager::SetLayerStreamingDistance(), and FEpisodeSettings::TileStreamingDistance.
Referenced by GetSecondaryServer(), NotifyInitGame(), and OnPreTick().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 331 of file CarlaEngine.cpp.
References bIsPrimaryServer, bMapChanged, bNewConnection, FWorldObserver::BroadcastTick(), FFrameData::Clear(), CurrentEpisode, GetCurrentEpisode(), FFrameData::GetFrameData(), UCarlaEpisode::GetFrameData(), UCarlaEpisode::GetRecorder(), UCarlaEpisode::GetSensorManager(), UCarlaLightSubsystem::IsUpdatePending(), FSensorManager::PostPhysTick(), ResetSimulationState(), SecondaryServer, ACarlaRecorder::Ticking(), WorldObserver, and FFrameData::Write().
Referenced by GetSecondaryServer(), and NotifyInitGame().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 275 of file CarlaEngine.cpp.
References UCarlaEpisode::ApplySettings(), bIsPrimaryServer, FEpisodeSettings::bSynchronousMode, bSynchronousMode, CurrentEpisode, CurrentSettings, FEpisodeSettings::FixedDeltaSeconds, FramesToProcess, FrameToProcessMutex, MappedId, OnEpisodeSettingsChanged(), FCarlaServer::RunSome(), SecondaryServer, Server, FCarlaServer::TickCueReceived(), UCarlaEpisode::TickTimers(), and UpdateFrameCounter().
Referenced by GetSecondaryServer(), and NotifyInitGame().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 81 of file CarlaEngine.h.
References FrameCounter, and carla::ros2::ROS2::GetInstance().
Referenced by NotifyBeginEpisode(), and FFrameData::SetFrameCounter().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 408 of file CarlaEngine.cpp.
References bMapChanged.
Referenced by GetSecondaryServer(), and OnPostTick().
Here is the caller graph for this function:
|
inline |
Definition at line 60 of file CarlaEngine.h.
References Recorder.
Referenced by UCarlaGameInstance::UCarlaGameInstance().
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 70 of file CarlaEngine.h.
References FrameCounter, and carla::ros2::ROS2::GetInstance().
Referenced by OnPreTick().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 128 of file CarlaEngine.h.
Referenced by NotifyBeginEpisode(), NotifyInitGame(), OnPostTick(), and OnPreTick().
|
private |
Definition at line 106 of file CarlaEngine.h.
Referenced by NotifyInitGame(), and ~FCarlaEngine().
|
private |
Definition at line 110 of file CarlaEngine.h.
Referenced by NotifyInitGame(), OnPostTick(), and ResetSimulationState().
|
private |
Definition at line 129 of file CarlaEngine.h.
Referenced by NotifyInitGame(), and OnPostTick().
|
private |
Definition at line 108 of file CarlaEngine.h.
Referenced by NotifyInitGame(), OnEpisodeSettingsChanged(), and OnPreTick().
|
private |
Definition at line 116 of file CarlaEngine.h.
Referenced by GetCurrentEpisode(), NotifyBeginEpisode(), NotifyEndEpisode(), NotifyInitGame(), OnEpisodeSettingsChanged(), OnPostTick(), and OnPreTick().
|
private |
Definition at line 118 of file CarlaEngine.h.
Referenced by NotifyBeginEpisode(), OnEpisodeSettingsChanged(), and OnPreTick().
|
static |
Definition at line 35 of file CarlaEngine.h.
Referenced by GetFrameCounter(), ResetFrameCounter(), and UpdateFrameCounter().
|
private |
Definition at line 136 of file CarlaEngine.h.
Referenced by NotifyInitGame(), and OnPreTick().
|
private |
Definition at line 137 of file CarlaEngine.h.
Referenced by NotifyInitGame(), and OnPreTick().
|
private |
Definition at line 131 of file CarlaEngine.h.
Referenced by OnPreTick().
|
private |
Definition at line 126 of file CarlaEngine.h.
Referenced by NotifyInitGame(), and ~FCarlaEngine().
|
private |
Definition at line 124 of file CarlaEngine.h.
Referenced by NotifyInitGame(), and ~FCarlaEngine().
|
private |
Definition at line 122 of file CarlaEngine.h.
Referenced by NotifyInitGame(), and ~FCarlaEngine().
|
private |
Definition at line 120 of file CarlaEngine.h.
Referenced by NotifyBeginEpisode(), and SetRecorder().
|
private |
Definition at line 134 of file CarlaEngine.h.
Referenced by NotifyInitGame().
|
private |
Definition at line 133 of file CarlaEngine.h.
Referenced by GetSecondaryServer(), NotifyInitGame(), OnPostTick(), and OnPreTick().
|
private |
Definition at line 112 of file CarlaEngine.h.
Referenced by GetServer(), NotifyBeginEpisode(), NotifyEndEpisode(), NotifyInitGame(), and OnPreTick().
|
private |
Definition at line 114 of file CarlaEngine.h.
Referenced by NotifyInitGame(), and OnPostTick().
1.8.13