Navigation
API > API/Plugins > API/Plugins/LearningAgentsTraining
A simple gym template class that uses a static mesh as its training floor.
| Name | ALearningAgentsGymSimple |
| Type | class |
| Header File | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Public/LearningAgentsGymSimple.h |
| Include Path | #include "LearningAgentsGymSimple.h" |
Syntax
UCLASS (MinimalAPI, ClassGroup=(LearningAgents), BlueprintType, Blueprintable)
class ALearningAgentsGymSimple : public ALearningAgentsGymBase
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → AActor → ALearningAgentsGymBase → ALearningAgentsGymSimple
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ALearningAgentsGymSimple() |
LearningAgentsGymSimple.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| SimpleGymFloor | TObjectPtr< UStaticMeshComponent > | LearningAgentsGymSimple.h |
|
Functions
Public
Overridden from ALearningAgentsGymBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FVector GenerateRandomLocationInGym () |
Generates a valid random point in the gym using the gym's random stream. | LearningAgentsGymSimple.h | |
virtual FRotator GenerateRandomRotationInGym() |
Generates a random rotator using the gym's random stream. | LearningAgentsGymSimple.h | |
virtual void GetGymExtents
(
FVector& OutMinExtents, |
Gets the gym max and min bounds. Must be overridden in a derived class. | LearningAgentsGymSimple.h | |
virtual FVector ProjectPointToGym
(
const FVector& InPoint |
Projects a point onto a valid location in the gym. Must be overridden in a derived class. | LearningAgentsGymSimple.h |