Navigation
API > API/Plugins > API/Plugins/LearningAgents
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- ULearningAgentsObservation
- UAngleArrayObservation
- UAngleObservation
- UAngularVelocityArrayObservation
- UAngularVelocityObservation
- UDirectionArrayObservation
- UDirectionObservation
- UEnumArrayObservation
- UEnumObservation
- UFloatArrayObservation
- UFloatObservation
- UPlanarDirectionArrayObservation
- UPlanarDirectionObservation
- UPlanarPositionArrayObservation
- UPlanarPositionObservation
- UPlanarVelocityArrayObservation
- UPlanarVelocityObservation
- UPositionArrayObservation
- UPositionObservation
- URotationArrayObservation
- URotationObservation
- UScalarAngularVelocityArrayObservation
- UScalarAngularVelocityObservation
- UScalarPositionArrayObservation
- UScalarPositionObservation
- UScalarVelocityArrayObservation
- UScalarVelocityObservation
- UTimeArrayObservation
- UTimeObservation
- UVectorArrayObservation
- UVectorObservation
- UVelocityArrayObservation
- UVelocityObservation
References
| Module | LearningAgents |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsObservations.h |
| Include | #include "LearningAgentsObservations.h" |
Syntax
UCLASS&40;Abstract, BlueprintType&41;
class ULearningAgentsObservation : public UObject
Remarks
For functions in this file, we are favoring having more verbose names such as "AddFloatObservation" vs simply "Add" in order to keep it easy to find the correct function in blueprints. The base class for all observations. Observations define the inputs to your agents.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TLearningArray< 1, uint64, TInlineAllocator< 32 > > | AgentIteration | Number of times this observation has been set for all agents | |
| TObjectPtr< ULearningAgentsInteractor > | Interactor | Reference to the Interactor this observation is associated with. | |
| FLinearColor | VisualLogColor | Color used to draw this observation in the visual log |
Functions
| Type | Name | Description | |
|---|---|---|---|
| uint64 | GetAgentIteration
(
const int32 AgentId |
Get the number of times an observation has been set for the given agent id. | |
| void | Init
(
const int32 MaxAgentNum |
Initialize the internal state for a given maximum number of agents | |
| void | OnAgentsAdded
(
const TArray< int32 >& AgentIds |
Called whenever agents are added to the associated ULearningAgentsInteractor object. | |
| void | OnAgentsRemoved
(
const TArray< int32 >& AgentIds |
Called whenever agents are removed from the associated ULearningAgentsInteractor object. | |
| void | OnAgentsReset
(
const TArray< int32 >& AgentIds |
Called whenever agents are reset on the associated ULearningAgentsInteractor object. | |
| void | VisualLog
(
const UE::Learning::FIndexSet Instances |
Describes this observation to the visual logger for debugging purposes. |