Navigation
API > API/Plugins > API/Plugins/LearningAgents
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- ULearningAgentsManagerComponent
- ULearningAgentsController
References
| Module | LearningAgents |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsController.h |
| Include | #include "LearningAgentsController.h" |
Syntax
UCLASS&40;Abstract, BlueprintType, Blueprintable&41;
class ULearningAgentsController : public ULearningAgentsManagerComponent
Remarks
A controller provides a method for injecting actions into the learning agents system from some other existing behavior, e.g. we may want to gather demonstrations from a human or AI behavior tree controlling our agent(s) for imitation learning purposes.
Constructors
| Type | Name | Description | |
|---|---|---|---|
| These constructors/destructors are needed to make forward declarations happy. | |||
ULearningAgentsController
(
FVTableHelper& Helper |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Call this function when it is time to gather all the actions for your agents. | ||
| ULearningAgentsInteractor * | GetInteractor
(
const TSubclassOf< ULearningAgentsInteractor > InteractorClass |
Gets the agent interactor associated with this component. | |
| void | Calls EncodeObservations, followed by EncodeActions, followed by DecodeActions | ||
| void | SetActions
(
const TArray< int32 >& AgentIds |
During this event, you should set the actions of your agents. | |
| void | SetupController
(
ULearningAgentsInteractor* InInteractor |
Initializes this object to be used with the given agent interactor. |