UPositionObserver
class UPositionObserver : public UBoxObserver
An 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 const
Get 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) override
Use 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 XDimensionBounds
The 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 YDimensionBounds
The 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 ZDimensionBounds
The 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 = = true
Should 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 = = true
Should 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 = = true
Should the observer track the Y dimension of the position.
Source: Schola/Source/Schola/Public/Observers/PositionObserver.h
(line 43, column 6)
AActor * TrackedActor
AActor * TrackedActor
The 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 = = false
Should 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::World
What 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 const
Returns: 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)