CARLA
Loading...
Searching...
No Matches
AAutowareGameModeBase Class Reference

Game mode for Autoware maps: when the world settings carry an MGRS data asset, the episode georeference is taken from it instead of the map's OpenDRIVE header. More...

#include <AutowareGameModeBase.h>

Inheritance diagram for AAutowareGameModeBase:

Public Member Functions

 AAutowareGameModeBase (const FObjectInitializer &ObjectInitializer)
Public Member Functions inherited from ACarlaGameModeBase
 ACarlaGameModeBase (const FObjectInitializer &ObjectInitializer)
void ApplyTextureToActor (AActor *Actor, UTexture2D *Texture, const carla::rpc::MaterialParameter &TextureParam)
void CheckForEmptyMeshes ()
UTexture2D * CreateUETexture (const carla::rpc::TextureColor &Texture)
UTexture2D * CreateUETexture (const carla::rpc::TextureFloatColor &Texture)
void DebugShowSignals (bool enable)
void EnableEnvironmentObjects (const TSet< uint64 > &EnvObjectIds, bool Enable)
void EnableOverlapEvents ()
AActor * FindActorByName (const FString &ActorName)
TArray< FBoundingBox > GetAllBBsOfLevel (uint8 TagQueried=0xFF) const
const UCarlaEpisode & GetCarlaEpisode () const
const TSet< uint64 > & GetDisabledEnvironmentObjects () const
 The registered environment objects disabled now, and a count of the changes to that set: Multi-GPU secondaries mirror it.
TArray< FEnvironmentObject > GetEnvironmentObjects (uint8 QueriedTag=0xFF) const
uint64 GetEnvironmentObjectsRegistrations () const
 How many times the environment objects were registered (on every map layer streamed in or out).
uint64 GetEnvironmentObjectsSerial () const
const FString GetFullMapPath () const
ALargeMapManager * GetLMManager () const
int32 GetLoadedMapLayers () const
 rpc::MapLayer bits of the layers loaded now.
const std::optional< carla::road::Map > & GetMap () const
TArray< FString > GetNamesOfAllActors ()
const FString GetRelativeMapPath () const
const TArray< FTransform > & GetSpawnPointsTransforms () const
ATrafficLightManager * GetTrafficLightManager ()
ULevel * GetULevelFromName (FString LevelName)
void LoadMapLayer (int32 MapLayers)
void OnLoadStreamLevel ()
void OnUnloadStreamLevel ()
void RegisterEnvironmentObjects ()
void UnLoadMapLayer (int32 MapLayers)

Protected Member Functions

void InitGame (const FString &MapName, const FString &Options, FString &ErrorMessage) override
virtual void LoadGeoReference () override
 Loads the episode georeference (parsing the map's OpenDRIVE by default) and stores the recommended spawn points.
Protected Member Functions inherited from ACarlaGameModeBase
void BeginPlay () override
void EndPlay (const EEndPlayReason::Type EndPlayReason) override
void InitGame (const FString &MapName, const FString &Options, FString &ErrorMessage) override
void RestartPlayer (AController *NewPlayer) override
void StoreSpawnPoints ()
void Tick (float DeltaSeconds) override

Additional Inherited Members

Public Attributes inherited from ACarlaGameModeBase
float IMUSensorGravity = 9.81f
 Gravitational acceleration used by IMU sensors.
FOnEpisodeInitialisedDelegate OnEpisodeInitialisedDelegate
Protected Attributes inherited from ACarlaGameModeBase
UCarlaEpisode * Episode = nullptr

Detailed Description

Game mode for Autoware maps: when the world settings carry an MGRS data asset, the episode georeference is taken from it instead of the map's OpenDRIVE header.

Ported from tier4/autoware-support.

Definition at line 21 of file AutowareGameModeBase.h.

Constructor & Destructor Documentation

◆ AAutowareGameModeBase()

AAutowareGameModeBase::AAutowareGameModeBase ( const FObjectInitializer & ObjectInitializer)

Definition at line 17 of file AutowareGameModeBase.cpp.

Member Function Documentation

◆ InitGame()

void AAutowareGameModeBase::InitGame ( const FString & MapName,
const FString & Options,
FString & ErrorMessage )
overrideprotected

Definition at line 22 of file AutowareGameModeBase.cpp.

◆ LoadGeoReference()

void AAutowareGameModeBase::LoadGeoReference ( )
overrideprotectedvirtual

Loads the episode georeference (parsing the map's OpenDRIVE by default) and stores the recommended spawn points.

Virtual so Autoware maps can take the georeference from an MGRS data asset instead (tier4 port).

Reimplemented from ACarlaGameModeBase.

Definition at line 27 of file AutowareGameModeBase.cpp.

References ACarlaGameModeBase::Episode, carla::geom::GeoProjection::Make(), UCarlaEpisode::MapGeoProjection, and ACarlaGameModeBase::StoreSpawnPoints().


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