Navigation
API > API/Plugins > API/Plugins/LearningAgentsTraining
The Learning Agents GymsManager centralizes the start and reset of training for multiple gym templates.
| Name | ALearningAgentsGymsManager |
| Type | class |
| Header File | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Public/LearningAgentsGymsManager.h |
| Include Path | #include "LearningAgentsGymsManager.h" |
Syntax
UCLASS (MinimalAPI, ClassGroup=(LearningAgents), Blueprintable)
class ALearningAgentsGymsManager : public AActor
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → AActor → ALearningAgentsGymsManager
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ALearningAgentsGymsManager() |
LearningAgentsGymsManager.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| GymsSpacing | float | The distance between each parallel gym when spawned. | LearningAgentsGymsManager.h |
|
| RandomSeed | int32 | The random seed to initialize the random stream used by the GymsManager. | LearningAgentsGymsManager.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| GymTemplates | TArray< FSpawnGymInfo > | LearningAgentsGymsManager.h |
|
|
| RandomStream | TSharedPtr< FRandomStream > | LearningAgentsGymsManager.h | ||
| SpawnedGyms | TArray< TObjectPtr< ALearningAgentsGymBase > > | LearningAgentsGymsManager.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 GetGymsCount() |
Get the number of gyms managed by the GymsManager. | LearningAgentsGymsManager.h |
|
void Start() |
Spawns and initializes gym instances. | LearningAgentsGymsManager.h |
|