UPositionObserver
class UPositionObserver : public UBoxObserverAn observer that tracks the position of an actor.
Dependencies
This type depends on:
Inherits from: public UBoxObserver
Public Interface
Public Functions:
GetObservationSpace
virtual FBoxSpace GetObservationSpace() const constGet the BoxSpace 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: FBoxSpace
Attributes: const, virtual
Source: Schola/Source/Schola/Public/Observers/PositionObserver.h (line 57, column 11)
Implementation: Schola/Source/Schola/Private/Observers/PositionObserver.cpp (lines 81-101)
CollectObservations
virtual void CollectObservations(FBoxPoint &OutObservations) overrideUse this sensor to collect observations about the environment state.
Note: This function should be implemented by any derived classes
Parameters:
OutObservations(FBoxPoint &) – [out] DataPoint that will be updated with the outputs of this sensor.
Attributes: virtual
Source: Schola/Source/Schola/Public/Observers/PositionObserver.h (line 59, column 14)
Implementation: Schola/Source/Schola/Private/Observers/PositionObserver.cpp (lines 7-47)
Public Members:
FBoxSpaceDimension XDimensionBounds
FBoxSpaceDimension XDimensionBoundsThe Min/Max value for the X dimension of the tracked position.
Source: Schola/Source/Schola/Public/Observers/PositionObserver.h (line 23, column 20)
FBoxSpaceDimension YDimensionBounds
FBoxSpaceDimension YDimensionBoundsThe Min/Max value for the Y dimension of the tracked position.
Source: Schola/Source/Schola/Public/Observers/PositionObserver.h (line 27, column 20)
FBoxSpaceDimension ZDimensionBounds
FBoxSpaceDimension ZDimensionBoundsThe Min/Max value for the Z dimension of the tracked position.
Source: Schola/Source/Schola/Public/Observers/PositionObserver.h (line 31, column 20)
bool bHasXDimensions
bool bHasXDimensions = = trueShould the observer track the X dimension of the position.
Source: Schola/Source/Schola/Public/Observers/PositionObserver.h (line 35, column 6)
bool bHasZDimensions
bool bHasZDimensions = = trueShould the observer track the Z dimension of the position.
Source: Schola/Source/Schola/Public/Observers/PositionObserver.h (line 39, column 6)
bool bHasYDimensions
bool bHasYDimensions = = trueShould the observer track the Y dimension of the position.
Source: Schola/Source/Schola/Public/Observers/PositionObserver.h (line 43, column 6)
AActor * TrackedActor
AActor * TrackedActorThe actor to track the position of.
If None, defaults to the owner of the observer.
Source: Schola/Source/Schola/Public/Observers/PositionObserver.h (line 47, column 8)
bool bTrackNonOwner
bool bTrackNonOwner = = falseShould the observer track the position of an actor other than the owner.
Source: Schola/Source/Schola/Public/Observers/PositionObserver.h (line 51, column 6)
TEnumAsByte<EFrameOfReference> PositionAdjustment
TEnumAsByte<EFrameOfReference> PositionAdjustment = = EFrameOfReference::WorldWhat frame of reference to use for this sensor: egocentric to the owning actor, relative to the owning actor, or world coordinates.
Source: Schola/Source/Schola/Public/Observers/PositionObserver.h (line 55, column 13)
Protected Interface
Protected Functions:
GenerateId
virtual FString GenerateId() const constReturns: FString
Attributes: const, virtual
Source: Schola/Source/Schola/Public/Observers/PositionObserver.h (line 18, column 9)
Implementation: Schola/Source/Schola/Private/Observers/PositionObserver.cpp (lines 49-79)
Source: Schola/Source/Schola/Public/Observers/PositionObserver.h (line 14, column 1)