UE4U4MLSensor_AIPerception

When applied to a player controller will create an AIPerception component for that player and plug it into the AIPerceptionSystem.

Windows
MacOS
Linux

Inheritance Hierarchy

U4MLSensor

UE4U4MLSensor_AIPerception

References

Module

UE4ML

Header

/Engine/Plugins/AI/UE4ML/Source/UE4ML/Public/Sensors/4MLSensor_AIPerception.h

Include

#include "Sensors/4MLSensor_AIPerception.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)(Blueprintable)
class UE4U4MLSensor_AIPerception : public U4MLSensor

Remarks

When applied to a player controller will create an AIPerception component for that player and plug it into the AIPerceptionSystem. The sensor will report information gathered by the perception system on the behalf of this agent.

that the world needs to be configured to allow AI Systems to be created

Variables

Name Description

Protected variable UProperty

bool

 

bSenseOnlyChanges

When set to true will only gather perception "delta" meaning consecutive updates will consist of new perception information.

Protected variable

uint32: 1

 

bVectorMode

Protected variable

TArray< FTarget...

 

CachedTargets

Protected variable

float

 

MaxStimulusAge

Protected variable UProperty

UAIPerceptionCo...

 

PerceptionComponent

Protected variable

float

 

PeripheralVisionAngleDegrees

Protected variable

ESortType

 

TargetsSortType

Protected variable

uint16

 

TargetsToSenseCount

Functions

Name Description

Protected function Virtual

void

 

Configure

(
    const TMap< FName, FString >& Para...
)

Protected function Virtual Const

TSharedPtr< ...

 

ConstructSpaceDef()

Protected function Virtual

void

 

GetObservations

(
    F4MLMemoryWriter& Ar
)

Public function Virtual Const

void

 

GetViewPoint

(
    AActor& Avatar,
    FVector& POVLocation,
    FRotator& POVRotation
)

Protected function Virtual

void

 

OnAvatarSet

(
    AActor* Avatar
)

Protected function Const

float

 

Sanify

(
    const float DegreeAngles
)

Protected function Const

FRotator

 

Sanify

(
    const FRotator Rotator
)

Protected function Virtual

void

 

SenseImpl

(
    const float DeltaTime
)

Public function

 

U4MLSensor_AIPerception

(
    const FObjectInitializer& ObjectIn...
)

Protected function Virtual

void

 

UpdateSpaceDef()

Classes

Name

Description

Public struct

FTargetRecord

Enums

Name

Description

Public enum

ESortType

See Also

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss