Navigation
API > API/Plugins > API/Plugins/MLAdapter
Allows an agent to sense information about the game world or itself.
| Name | UMLAdapterSensor |
| Type | class |
| Header File | /Engine/Plugins/AI/MLAdapter/Source/MLAdapter/Public/Sensors/MLAdapterSensor.h |
| Include Path | #include "Sensors/MLAdapterSensor.h" |
Syntax
UCLASS (Abstract, Blueprintable, EditInlineNew)
class UMLAdapterSensor : public UMLAdapterAgentElement
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UMLAdapterAgentElement → UMLAdapterSensor
Derived Classes
UMLAdapterSensor derived class hierarchy
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UMLAdapterSensor
(
const FObjectInitializer& ObjectInitializer |
Sensors/MLAdapterSensor.h |
Structs
| Name | Remarks |
|---|---|
| FTicksOrSeconds |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AccumulatedSeconds | float | Sensors/MLAdapterSensor.h | ||
| AccumulatedTicks | int32 | Sensors/MLAdapterSensor.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool ConfigureForAgent
(
UMLAdapterAgent& Agent |
True if config was successful. | Sensors/MLAdapterSensor.h | |
const UMLAdapterAgent & GetAgent() |
Sensors/MLAdapterSensor.h | ||
FMLAdapter::FAgentID GetAgentID() |
AIGym leftovers. Potentially to be removed. | Sensors/MLAdapterSensor.h | |
virtual void GetObservations
(
FMLAdapterMemoryWriter& Ar |
Sensors/MLAdapterSensor.h | ||
bool IsConfiguredForAgent
(
const UMLAdapterAgent& Agent |
Sensors/MLAdapterSensor.h | ||
bool IsPolling() |
Sensors/MLAdapterSensor.h | ||
| Sensors/MLAdapterSensor.h | |||
void Sense
(
const float DeltaTime |
Called for every sense, regardless of whether it's a polling-type or not. | Sensors/MLAdapterSensor.h |
Overridden from UMLAdapterAgentElement
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Called before actuator's destruction. | Sensors/MLAdapterSensor.h | ||
virtual void OnAvatarSet
(
AActor* Avatar |
Sensors/MLAdapterSensor.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PostInitProperties() |
Sensors/MLAdapterSensor.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ClearPawn
(
APawn& InPawn |
Clean up any references to the Pawn or its components. | Sensors/MLAdapterSensor.h | |
virtual void SenseImpl
(
const float DeltaTime |
Called from Sense based on TickPolicy. | Sensors/MLAdapterSensor.h |