Navigation
API > API/Plugins > API/Plugins/LearningAgentsTraining
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- ULearningAgentsManagerListener
- ULearningAgentsRecorder
References
| Module | LearningAgentsTraining |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Public/LearningAgentsRecorder.h |
| Include | #include "LearningAgentsRecorder.h" |
Syntax
UCLASS (BlueprintType, Blueprintable, Meta=(BlueprintSpawnableComponent))
class ULearningAgentsRecorder : public ULearningAgentsManagerListener
Remarks
A component that can be used to create recordings of training data for imitation learning.
Constructors
| Type | Name | Description | |
|---|---|---|---|
| -- Setup -- | |||
ULearningAgentsRecorder
(
FVTableHelper& Helper |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | While recording, adds the current buffered observations and actions of the added agents to the internal buffer. | ||
| void | -- Recording Process -- | ||
| void | EndRecording () |
Ends the recording of the observations and actions of each agent and stores them in the current recording object. | |
| void | Ends the recording of the observations and actions of each agent and discards them. | ||
| const ULearningAgentsRecording * | Gets the current recording object. Note: this may be empty until EndRecording has been called. | ||
| bool | IsRecording () |
Returns true if recording is active; Otherwise, false. | |
| ULearningAgentsRecorder * | MakeRecorder
(
ULearningAgentsManager*& InManager, |
Constructs this object and runs the setup functions for the underlying data storage. | |
| void | OnAgentsRemoved_Implementation
(
const TArray< int32 >& AgentIds |
||
| void | OnAgentsReset_Implementation
(
const TArray< int32 >& AgentIds |
||
| void | SetupRecorder
(
ULearningAgentsManager*& InManager, |
Initializes this object and runs the setup functions for the underlying data storage. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
Will automatically call EndRecording if recording is still in-progress when the object is destroyed. |