CARLA
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
UOpenDrive Class Reference

#include <OpenDrive.h>

+ Inheritance diagram for UOpenDrive:

Static Public Member Functions

static FString FindPathToXODRFile (const FString &InMapName)
 
static FString GetSavedXODRPath (const FString &MapName)
 Where a generated OpenDRIVE world stores its xodr: <ProjectSavedDir>/OpenDrive/<MapName>.xodr (read before any content dir), or the folder SetSavedXODRDirectory set.
 
static FString GetXODR (const UWorld *World)
 Return the OpenDrive XML associated to MapName, or empty if the file is not found.
 
static FString GetXODRByPath (FString XODRPath, FString MapName)
 Return the OpenDrive XML associated to MapName, or empty if the file is not found.
 
static UOpenDriveMap * LoadCurrentOpenDriveMap (const UObject *WorldContextObject)
 Load OpenDriveMap associated to the currently loaded map.
 
static UOpenDriveMap * LoadOpenDriveMap (const FString &MapName)
 Load OpenDriveMap associated to the given MapName.
 
static FString LoadXODR (const FString &MapName)
 
static FString LoadXODRFullPath (const FString &FullPath)
 
static void SetSavedXODRDirectory (const FString &Directory)
 Multi-GPU secondary: a folder of this process for the generated worlds the primary sends, so that servers sharing an installation never read each other's.
 

Detailed Description

Definition at line 18 of file Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/OpenDrive/OpenDrive.h.

Member Function Documentation

◆ FindPathToXODRFile()

FString UOpenDrive::FindPathToXODRFile ( const FString &  InMapName)
static

◆ GetSavedXODRPath()

FString UOpenDrive::GetSavedXODRPath ( const FString &  MapName)
static

Where a generated OpenDRIVE world stores its xodr: <ProjectSavedDir>/OpenDrive/<MapName>.xodr (read before any content dir), or the folder SetSavedXODRDirectory set.

Definition at line 22 of file Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/OpenDrive/OpenDrive.cpp.

References UOpenDrive_SavedXODRDirectory.

Referenced by FCarlaServer::FPimpl::BindActions(), FCarlaEngine_PrepareGeneratedWorld(), FindPathToXODRFile(), GetXODR(), UCarlaEpisode::LoadNewEpisode(), UCarlaEpisode::LoadNewOpendriveEpisode(), and FCarlaEngine::~FCarlaEngine().

◆ GetXODR()

FString UOpenDrive::GetXODR ( const UWorld *  World)
static

◆ GetXODRByPath()

FString UOpenDrive::GetXODRByPath ( FString  XODRPath,
FString  MapName 
)
static

Return the OpenDrive XML associated to MapName, or empty if the file is not found.

Definition at line 248 of file Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/OpenDrive/OpenDrive.cpp.

◆ LoadCurrentOpenDriveMap()

UOpenDriveMap * UOpenDrive::LoadCurrentOpenDriveMap ( const UObject *  WorldContextObject)
static

Load OpenDriveMap associated to the currently loaded map.

Return nullptr if no XODR can be found that matches the current map.

Definition at line 295 of file Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/OpenDrive/OpenDrive.cpp.

References LoadOpenDriveMap().

◆ LoadOpenDriveMap()

UOpenDriveMap * UOpenDrive::LoadOpenDriveMap ( const FString &  MapName)
static

Load OpenDriveMap associated to the given MapName.

Return nullptr if no XODR can be found with same MapName.

Definition at line 283 of file Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/OpenDrive/OpenDrive.cpp.

References UOpenDriveMap::Load(), and LoadXODR().

Referenced by LoadCurrentOpenDriveMap().

◆ LoadXODR()

FString UOpenDrive::LoadXODR ( const FString &  MapName)
static

◆ LoadXODRFullPath()

FString UOpenDrive::LoadXODRFullPath ( const FString &  FullPath)
static

◆ SetSavedXODRDirectory()

void UOpenDrive::SetSavedXODRDirectory ( const FString &  Directory)
static

Multi-GPU secondary: a folder of this process for the generated worlds the primary sends, so that servers sharing an installation never read each other's.

Set once, before any map loads.

Definition at line 29 of file Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/OpenDrive/OpenDrive.cpp.

References UOpenDrive_SavedXODRDirectory.

Referenced by FCarlaEngine::NotifyInitGame(), and FCarlaEngine::~FCarlaEngine().


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