CARLA
Static Public Member Functions | List of all members
UOpenDrive Class Reference

#include <OpenDrive.h>

+ Inheritance diagram for UOpenDrive:
+ Collaboration diagram for UOpenDrive:

Static Public Member Functions

static FString FindPathToXODRFile (const FString &InMapName)
 
static FString GetXODR (const UWorld *World)
 Return the OpenDrive XML associated to MapName, or empty if the file is not found. More...
 
static FString GetXODRByPath (FString XODRPath, FString MapName)
 Return the OpenDrive XML associated to MapName, or empty if the file is not found. More...
 
static UOpenDriveMapLoadCurrentOpenDriveMap (const UObject *WorldContextObject)
 Load OpenDriveMap associated to the currently loaded map. More...
 
static UOpenDriveMapLoadOpenDriveMap (const FString &MapName)
 Load OpenDriveMap associated to the given MapName. More...
 
static FString LoadXODR (const FString &MapName)
 

Detailed Description

Definition at line 16 of file Unreal/CarlaUE4/Plugins/Carla/Source/Carla/OpenDrive/OpenDrive.h.

Member Function Documentation

◆ FindPathToXODRFile()

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

Definition at line 17 of file Unreal/CarlaUE4/Plugins/Carla/Source/Carla/OpenDrive/OpenDrive.cpp.

References carla::client::detail::Get().

Referenced by LoadXODR().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetXODR()

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

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

Definition at line 58 of file Unreal/CarlaUE4/Plugins/Carla/Source/Carla/OpenDrive/OpenDrive.cpp.

References carla::client::detail::Get(), ACarlaGameModeBase::GetFullMapPath(), and UCarlaStatics::GetGameMode().

Referenced by AOpenDriveGenerator::BeginPlay(), FCarlaServer::FPimpl::BindActions(), ATrafficLightManager::MatchTrafficLightActorsWithOpenDriveSignals(), and ACarlaGameModeBase::ParseOpenDrive().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ 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 123 of file Unreal/CarlaUE4/Plugins/Carla/Source/Carla/OpenDrive/OpenDrive.cpp.

References carla::client::detail::Get().

+ Here is the call graph for this function:

◆ 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 170 of file Unreal/CarlaUE4/Plugins/Carla/Source/Carla/OpenDrive/OpenDrive.cpp.

References LoadOpenDriveMap().

+ Here is the call graph for this function:

◆ 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 158 of file Unreal/CarlaUE4/Plugins/Carla/Source/Carla/OpenDrive/OpenDrive.cpp.

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

Referenced by LoadCurrentOpenDriveMap().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadXODR()

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

Definition at line 101 of file Unreal/CarlaUE4/Plugins/Carla/Source/Carla/OpenDrive/OpenDrive.cpp.

References FindPathToXODRFile().

Referenced by AOpenDriveActor::BuildRoutes(), LoadOpenDriveMap(), and ULoadAssetMaterialsCommandlet::ULoadAssetMaterialsCommandlet().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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