Navigation
API > API/Plugins > API/Plugins/LearningAgents
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- ULearningAgentsManagerListener
- ULearningAgentsController
References
| Module | LearningAgents |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsController.h |
| Include | #include "LearningAgentsController.h" |
Syntax
UCLASS (Abstract, HideDropDown, BlueprintType, Blueprintable)
class ULearningAgentsController : public ULearningAgentsManagerListener
Remarks
A controller is an object that can be used to construct actions from observations - essentially a hand-made Policy. This can be useful for making a learning agents system that uses 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.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TObjectPtr< ULearningAgentsInteractor > | Interactor | The agent interactor this controller is associated with. |
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 | EvaluateAgentController
(
FLearningAgentsActionObjectElement& OutActionObjectElement, |
This callback should be overridden by the Controller and produces an Action Object Element from an Observation Object Element. | |
| void | EvaluateAgentControllers
(
TArray< FLearningAgentsActionObjectElement >& OutActionObjectElements, |
This callback can be overridden by the Controller and produces an array of Action Object Elements, from an array of Observation Object Elements. | |
| void | Call this function when it is time to evaluate the controller and produce the actions for the agents. | ||
| ULearningAgentsInteractor * | GetInteractor
(
const TSubclassOf< ULearningAgentsInteractor > InteractorClass |
Gets the agent interactor associated with this component. | |
| ULearningAgentsController * | MakeController
(
ULearningAgentsManager*& InManager, |
Constructs a new controller for the given agent interactor. | |
| void | Calls GatherObservations, followed by EvaluateController, followed by PerformActions | ||
| void | SetupController
(
ULearningAgentsManager*& InManager, |
Initializes this object to be used with the given agent interactor. |