Go to the documentation of this file.
19 #include "Engine/EngineTypes.h"
21 #include "GameFramework/GameMode.h"
35 #include "RRROS2GameMode.generated.h"
83 UROS2NodeComponent* MainROS2Node =
nullptr;
94 FString MainROS2NodeName = TEXT(
"UEROS2Node");
140 TSubclassOf<URRROS2SimulationStateClient> ROS2SimStateClientClass = URRROS2SimulationStateClient::StaticClass();
165 virtual void SetFixedTimeStep(
const float InStepSize);
184 virtual float GetFixedTimeStep()
const;
203 virtual void SetTargetRTF(
const float InTargetRTF);
222 virtual float GetTargetRTF()
const;
232 virtual void PrintSimConfig()
const;
246 return NativeSpawnableClassPaths.FindRef(InEntityModelName);
272 virtual void InitGame(
const FString& InMapName,
const FString& InOptions, FString& OutErrorMessage)
override;
284 virtual void InitSim();
294 virtual void StartPlay()
override;
Provide ROS 2 interface implementations to interact with UE4.
Definition: SimulationState.h:173
Clock publisher class. Get elapsed time by UGameplayStatics.
Definition: RRROS2ClockPublisher.h:48
ROS 2 GameMode which have Clock publisher and ROS 2 services to interact with ROS 2.
Definition: RRROS2GameMode.h:64
FString GetSpawnableNativeEntityClassPath(const FString &InEntityModelName) const
Get corresponding class path of a native entity model from NativeSpawnableClassPaths.
Definition: RRROS2GameMode.h:242
CustomTimeStep class which uses fixed time step and and limit RTF(Real Time Factor)
SimulationState class provides ROS 2 interface implementation to interact with UE4.
RRROS2SimulationStateClient class provides ROS 2 service interfaces to interact with UE4.
TArray< FString > BPSpawnableClassNames
Blueprint class names (also used as their entity model names) to be registered as spawnable entity ty...
Definition: RRROS2GameMode.h:307
DECLARE_MULTICAST_DELEGATE(FRROnROS2Initialized)
TMap< FString, FString > NativeSpawnableClassPaths
Asset paths of classes to be registered as spawnable entity types.
Definition: RRROS2GameMode.h:320
Provide ROS 2 interfaces to interact with UE4. This provide only ROS 2 interfaces and implementation ...
Definition: RRROS2SimulationStateClient.h:78
FRROnROS2Initialized OnROS2Initialized
Delegate signalling ROS 2 having been initialized with MainROS2Node, MainROS2SimStateClient,...
Definition: RRROS2GameMode.h:146