ROS 2 GameMode which have Clock publisher and ROS 2 services to interact with ROS 2.
More...
#include <RRROS2GameMode.h>
ROS 2 GameMode which have Clock publisher and ROS 2 services to interact with ROS 2.
- See also
- AGameMode
-
GameMode and GameState
UCLASS(Config = RapyutaSimSettings)
◆ ARRROS2GameMode()
ARRROS2GameMode::ARRROS2GameMode |
( |
| ) |
|
◆ GetFixedTimeStep()
virtual float ARRROS2GameMode::GetFixedTimeStep |
( |
| ) |
const |
|
virtual |
◆ GetSpawnableNativeEntityClassPath()
FString ARRROS2GameMode::GetSpawnableNativeEntityClassPath |
( |
const FString & |
InEntityModelName | ) |
const |
|
inline |
◆ GetTargetRTF()
virtual float ARRROS2GameMode::GetTargetRTF |
( |
| ) |
const |
|
virtual |
◆ InitGame()
virtual void ARRROS2GameMode::InitGame |
( |
const FString & |
InMapName, |
|
|
const FString & |
InOptions, |
|
|
FString & |
OutErrorMessage |
|
) |
| |
|
overrideprotectedvirtual |
Initialize Game.
- Parameters
-
InMapName | |
InOptions | |
OutErrorMessage | |
- See also
- InitGame
◆ InitROS2()
void ARRROS2GameMode::InitROS2 |
( |
| ) |
|
|
private |
◆ InitSim()
virtual void ARRROS2GameMode::InitSim |
( |
| ) |
|
|
protectedvirtual |
◆ PrintSimConfig()
virtual void ARRROS2GameMode::PrintSimConfig |
( |
| ) |
const |
|
virtual |
Print GameMode's user configs in INI.
Reimplemented in ARRGameMode.
◆ SetFixedTimeStep()
virtual void ARRROS2GameMode::SetFixedTimeStep |
( |
const float |
InStepSize | ) |
|
|
virtual |
Set timestep by FApp::SetFixedDeltaTime.
- Parameters
-
InFrequency | game time update frequency, timestep become 1/frequency. |
- Attention
- FApp::SetFixedDeltaTime take arg as double but InFreqency is float to be able to access from BP.
UFUNCTION(BlueprintCallable)
◆ SetTargetRTF()
virtual void ARRROS2GameMode::SetTargetRTF |
( |
const float |
InTargetRTF | ) |
|
|
virtual |
◆ StartPlay()
virtual void ARRROS2GameMode::StartPlay |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ BPSpawnableClassNames
TArray<FString> ARRROS2GameMode::BPSpawnableClassNames |
|
protected |
Blueprint class names (also used as their entity model names) to be registered as spawnable entity types.
Eg: {"BP_TurtlebotBurger", "BP_TurtlebotBurgerVehicle"}
UPROPERTY(config)
◆ ClockPublisher
◆ MainROS2Node
UROS2NodeComponent* ARRROS2GameMode::MainROS2Node = nullptr |
◆ MainROS2NodeName
FString ARRROS2GameMode::MainROS2NodeName = TEXT("UEROS2Node") |
◆ MainROS2SimStateClient
◆ MainSimState
Provide ROS 2 implementation of sim-wide operations like get/set actor state, spawn/delete actor, attach/detach actor.
UPROPERTY(BlueprintReadOnly)
◆ NativeSpawnableClassPaths
TMap<FString , FString > ARRROS2GameMode::NativeSpawnableClassPaths |
|
protected |
Asset paths of classes to be registered as spawnable entity types.
Eg: {{"TurtlebotBurger", "/Script/RapyutaSimulationPlugins.TurtlebotBurger"]}
UPROPERTY(config)
◆ OnROS2Initialized
FRROnROS2Initialized ARRROS2GameMode::OnROS2Initialized |
◆ ROS2SimStateClientClass
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/rapyutasimulationplugins/checkouts/devel/Source/RapyutaSimulationPlugins/Public/Core/RRROS2GameMode.h