8#include "ROSIntegration/Classes/ROSIntegrationGameInstance.h"
21#include "Engine/GameViewportClient.h"
22#include "Engine/Engine.h"
23#include "Engine/World.h"
27 return Cast<AAgrarsenseGameModeBase>(UGameplayStatics::GetGameMode(WorldContextObject));
32 return Cast<UAgrarsenseGameInstance>(UGameplayStatics::GetGameInstance(WorldContextObject));
37 return Cast<UROSIntegrationGameInstance>(UGameplayStatics::GetGameInstance(WorldContextObject));
49 return GameMode !=
nullptr ? GameMode->
GetROSHandle() :
nullptr;
67 return GameMode !=
nullptr ? GameMode->
GetSpectator() :
nullptr;
78 UWorld* World =
nullptr;
79 if (GEngine && GEngine->GameViewport)
81 World = GEngine->GameViewport->GetWorld();
ASimulationLevelManager * GetSimulationLevelManager()
ASpectator * GetSpectator()
AInstancedRendererManager * GetInstancedRenderer()
ALidarManager * GetLidarManager()
UROSHandler * GetROSHandle()
AWeather * GetWeatherActor()
static UAgrarsenseSettings * GetAgrarsenseSettings()
static USensorManager * GetSensorManager()
static ASpectator * GetSpectator(const UObject *WorldContextObject)
static UAgrarsenseSettings * GetAgrarsenseSettings()
static AAgrarsenseGameModeBase * GetGameMode(const UObject *WorldContextObject)
static AWeather * GetWeatherActor(const UObject *WorldContextObject)
static UROSIntegrationGameInstance * GetROSGameInstance(const UObject *WorldContextObject)
static ALidarManager * GetLidarManager(const UObject *WorldContextObject)
static UAgrarsenseGameInstance * GetGameInstance(const UObject *WorldContextObject)
static ASimulationLevelManager * GetSimulationLevelManager(const UObject *WorldContextObject)
static AInstancedRendererManager * GetInstancedRenderer(const UObject *WorldContextObject)
static UWorld * GetWorldStatic()
static UROSHandler * GetROSHandle(const UObject *WorldContextObject)
static USensorManager * Get()