CARLA
Loading...
Searching...
No Matches
Functions
CarlaEngine.cpp File Reference
#include "Carla/Game/CarlaEngine.h"
#include "Carla.h"
#include "Carla/ContentPacks/ContentPackManager.h"
#include "Carla/Game/CarlaEpisode.h"
#include "Carla/Game/CarlaGameModeBase.h"
#include "Carla/Game/CarlaStaticDelegates.h"
#include "Carla/Game/CarlaStatics.h"
#include "Carla/Lights/CarlaLightSubsystem.h"
#include "Carla/Recorder/CarlaRecorder.h"
#include "Carla/Settings/CarlaSettings.h"
#include "Carla/Settings/EpisodeSettings.h"
#include "Carla/MapGen/LargeMapManager.h"
#include "Carla/OpenDrive/OpenDrive.h"
#include "Carla/OpenDrive/OpenDriveGenerator.h"
#include "Carla/Traffic/TrafficLightManager.h"
#include "Carla/Actor/ActorData.h"
#include "Carla/Sensor/Sensor.h"
#include <util/disable-ue4-macros.h>
#include <carla/Logging.h>
#include <carla/MsgPack.h>
#include <carla/multigpu/primaryCommands.h>
#include <carla/multigpu/commands.h>
#include <carla/multigpu/frameGate.h>
#include <carla/multigpu/secondary.h>
#include <carla/multigpu/secondaryCommands.h>
#include <carla/ros2/ROS2.h>
#include <carla/ros2/middleware/Middleware.h>
#include <carla/ros2/middleware/MiddlewareConfig.h>
#include <carla/ros2/middleware/ActiveMiddleware.h>
#include <carla/streaming/EndPoint.h>
#include <carla/streaming/Server.h>
#include <util/enable-ue4-macros.h>
#include <util/ue-header-guard-begin.h>
#include "Engine/Engine.h"
#include "Engine/GameViewportClient.h"
#include "EngineUtils.h"
#include "GameFramework/WorldSettings.h"
#include "HAL/FileManager.h"
#include "HAL/IConsoleManager.h"
#include "HAL/PlatformProcess.h"
#include "HAL/PlatformTime.h"
#include "Misc/App.h"
#include "Misc/FileHelper.h"
#include "Misc/Paths.h"
#include "PhysicsEngine/PhysicsSettings.h"
#include "SceneInterface.h"
#include <util/ue-header-guard-end.h>
#include <cstdlib>
#include <cstring>
#include <optional>
#include <thread>

Go to the source code of this file.

Functions

static TAutoConsoleVariable< int32 > CVarCarlaMultiGpuVerifyFrames (TEXT("carla.MultiGpu.VerifyFrames"), 1, TEXT("does not parse completely with this build (1 = on, 0 = off)."), ECVF_Default)
 
static TOptional< double > FCarlaEngine_GetFixedDeltaSeconds ()
 
static uint32 FCarlaEngine_GetNumberOfThreadsForRPCServer ()
 
static bool FCarlaEngine_IsWorldTravelPending (const UWorld *World)
 Whether a travel to another map is scheduled for World: load_world() only schedules it, and the engine performs it at the start of the next engine frame, before ticking any world.
 
static void FCarlaEngine_PrepareGeneratedWorld (UWorld *World, const carla::multigpu::LoadMapExtras &Extras)
 Multi-GPU secondary: the world the primary generated from OpenDRIVE, where this server's OpenDriveMap reads it and with the same parameters, before the map opens; for any other map, no generated world of an earlier load.
 
static bool FCarlaEngine_SameSettings (const FEpisodeSettings &A, const FEpisodeSettings &B)
 
static void FCarlaEngine_SetFixedDeltaSeconds (TOptional< double > FixedDeltaSeconds)
 

Function Documentation

◆ CVarCarlaMultiGpuVerifyFrames()

static TAutoConsoleVariable< int32 > CVarCarlaMultiGpuVerifyFrames ( TEXT("carla.MultiGpu.VerifyFrames")  ,
1  ,
TEXT("does not parse completely with this build (1 = on, 0 = off).")  ,
ECVF_Default   
)
static

◆ FCarlaEngine_GetFixedDeltaSeconds()

static TOptional< double > FCarlaEngine_GetFixedDeltaSeconds ( )
static

Definition at line 85 of file CarlaEngine.cpp.

Referenced by FCarlaEngine::NotifyBeginEpisode().

◆ FCarlaEngine_GetNumberOfThreadsForRPCServer()

static uint32 FCarlaEngine_GetNumberOfThreadsForRPCServer ( )
static

Definition at line 71 of file CarlaEngine.cpp.

Referenced by FCarlaEngine::NotifyInitGame().

◆ FCarlaEngine_IsWorldTravelPending()

static bool FCarlaEngine_IsWorldTravelPending ( const UWorld *  World)
static

Whether a travel to another map is scheduled for World: load_world() only schedules it, and the engine performs it at the start of the next engine frame, before ticking any world.

Definition at line 99 of file CarlaEngine.cpp.

Referenced by FCarlaEngine::OnBeginFrame(), FCarlaEngine::OnPostTick(), FCarlaEngine::OnPreTick(), and FCarlaEngine::WaitForSecondaryEpisodes().

◆ FCarlaEngine_PrepareGeneratedWorld()

static void FCarlaEngine_PrepareGeneratedWorld ( UWorld *  World,
const carla::multigpu::LoadMapExtras &  Extras 
)
static

Multi-GPU secondary: the world the primary generated from OpenDRIVE, where this server's OpenDriveMap reads it and with the same parameters, before the map opens; for any other map, no generated world of an earlier load.

Definition at line 125 of file CarlaEngine.cpp.

References carla::multigpu::LoadMapExtras::generation_parameters, UCarlaStatics::GetGameInstance(), UOpenDrive::GetSavedXODRPath(), carla::multigpu::LoadMapExtras::opendrive, and UCarlaGameInstance::SetOpendriveGenerationParameters().

Referenced by FCarlaEngine::OnPreTick().

◆ FCarlaEngine_SameSettings()

static bool FCarlaEngine_SameSettings ( const FEpisodeSettings &  A,
const FEpisodeSettings &  B 
)
static

◆ FCarlaEngine_SetFixedDeltaSeconds()

static void FCarlaEngine_SetFixedDeltaSeconds ( TOptional< double >  FixedDeltaSeconds)
static

Definition at line 90 of file CarlaEngine.cpp.

Referenced by FCarlaEngine::OnEpisodeSettingsChanged().