Navigation
API > API/Plugins > API/Plugins/LearningAgentsTraining
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- ULearningAgentsManagerComponent
- ULearningAgentsRecorder
References
| Module | LearningAgentsTraining |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Public/LearningAgentsRecorder.h |
| Include | #include "LearningAgentsRecorder.h" |
Syntax
UCLASS&40;BlueprintType, Blueprintable&41;
class ULearningAgentsRecorder : public ULearningAgentsManagerComponent
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 observations and actions of the added agents to the internal buffer. | ||
| void | AppendRecordingFromFile
(
const FFilePath& File |
Append to the current recording object from a file. | |
| void | AppendRecordingToAsset
(
ULearningAgentsRecording* RecordingAsset |
Appends the current recording object to the given recording asset | |
| void | BeginRecording
(
bool bReinitializeRecording |
Recording Process | |
| void | EndRecording () |
Ends the recording of the observations and actions of each agent and stores them in the current recording object. | |
| 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. | |
| void | LoadRecordingFromAsset
(
ULearningAgentsRecording* RecordingAsset |
Loads the current recording object from the given recording asset | |
| void | LoadRecordingFromFile
(
const FFilePath& File |
Load / Save | |
| void | SaveRecordingToAsset
(
ULearningAgentsRecording* RecordingAsset |
Saves the current recording object to the given recording asset | |
| void | SaveRecordingToFile
(
const FFilePath& File |
Saves the current recording object to a file | |
| void | SetupRecorder
(
ULearningAgentsInteractor* InInteractor, |
Initializes this object and runs the setup functions for the underlying data storage. | |
| void | UseRecordingAsset
(
ULearningAgentsRecording* RecordingAsset |
Uses the given recording asset. New recordings will be appended to this. |
Overridden from ULearningAgentsManagerComponent
| Type | Name | Description | |
|---|---|---|---|
| void | OnAgentsRemoved
(
const TArray< int32 >& AgentIds |
Called whenever agents are removed from the parent ALearningAgentsManager object. | |
| void | OnAgentsReset
(
const TArray< int32 >& AgentIds |
Called whenever agents are reset on the parent ALearningAgentsManager object. |
Overridden from UActorComponent
| Type | Name | Description | |
|---|---|---|---|
| void | EndPlay
(
const EEndPlayReason::Type EndPlayReason |
Will automatically call EndRecording if recording is still in-progress when play is ending. |