Skip to content

UDiscreteObserver

class UDiscreteObserver : public UAbstractObserver

An observer that collects discrete observations about the environment state.

Note: This class is abstract and should be derived from to implement the CollectObservations and GetObservationSpace functions.

Dependencies: FDiscretePoint, FDiscreteSpace, UAbstractObserver

Inherits from: public UAbstractObserver

Subclassed by: UBlueprintDiscreteObserver, UDebugDiscreteObserver

Public Interface

Constructor:

UDiscreteObserver

inline UDiscreteObserver()

Attributes: inline

Source: Schola/Source/Schola/Public/Observers/AbstractObservers.h (line 307, column 1)

Public Functions:

GetObservationSpace

inline virtual FDiscreteSpace GetObservationSpace() const const

Get the DiscreteSpace bounding the outputs of this sensor.

Returns: The ObservationSpace bounding the outputs of this sensor.

Note: This function should be implemented by any derived classes

Returns: FDiscreteSpace

Attributes: const, inline, virtual

Source: Schola/Source/Schola/Public/Observers/AbstractObservers.h (line 314, column 24)

CollectObservations

inline virtual void CollectObservations(FDiscretePoint &OutObservations)

Use this sensor to collect observations about the environment state.

Note: This function should be implemented by any derived classes

Parameters:

  • OutObservations (FDiscretePoint &) – [out] DataPoint that will be updated with the outputs of this sensor.

Attributes: inline, virtual

Source: Schola/Source/Schola/Public/Observers/AbstractObservers.h (line 321, column 14)

CollectObservations

inline virtual void CollectObservations(TPoint &OutObservations)

Use this sensor to collect observations about the environment state.

Note: This function should be implemented by any derived classes.

Parameters:

  • OutObservations (TPoint &) – - DataPoint that will be updated with the outputs of this sensor.

Attributes: inline, virtual

Source: Schola/Source/Schola/Public/Observers/AbstractObservers.h (line 323, column 6)

FillObservationSpace

inline virtual void FillObservationSpace(TSpace &OutSpaceGroup) const const

Get the ObservationSpace bounding the outputs of this sensor.

Note: This function should be implemented by any derived classes.

Parameters:

  • OutSpace (TSpace &) – [out] The ObservationSpace bounding the outputs of this sensor.

Attributes: const, inline, virtual

Source: Schola/Source/Schola/Public/Observers/AbstractObservers.h (line 337, column 6)

GetId

virtual FString GetId() const const

Get the label of this Interactor.

Returns: the collected ID

Returns: FString

Attributes: const, virtual

Source: Schola/Source/Schola/Public/Observers/AbstractObservers.h (line 350, column 9)

Implementation: Schola/Source/Schola/Private/Observers/AbstractObservers.cpp (lines 57-77)

Public Members:

TArray<UObject *> Wrappers

TArray<UObject *> Wrappers

Wrappers for customizing the observations recorded by this observer.

Applied in order.

Source: Schola/Source/Schola/Public/Observers/AbstractObservers.h (line 305, column 8)

Used By: UBlueprintDiscreteObserver, UDebugDiscreteObserver

Source: Schola/Source/Schola/Public/Observers/AbstractObservers.h (line 297, column 1)