Class AInferenceController
- class AInferenceController : public AController, public IInferenceAgent
-
A controller that implements the IInferenceAgent interface, to control a Pawn with a Brain/Policy.
Public Functions
- inline virtual APawn *GetControlledPawn() override
-
Get the controlled pawn of the agent.
- Returns:
-
A pointer to the controlled pawn.
- inline virtual UInteractionManager *GetInteractionManager() override
-
Get the interaction manager for the agent.
- Returns:
-
A pointer to the interaction manager.
- inline virtual UAbstractBrain *GetBrain() override
-
Get the brain of the agent.
- Returns:
-
A pointer to the brain.
- inline virtual UAbstractPolicy *GetPolicy() override
-
Get the policy of the agent.
- Returns:
-
A pointer to the policy.
- inline virtual TArray<UAbstractObserver*> GetAllObservers() override
-
Get all observers of the agent.
- Returns:
-
An array of pointers to the observers.
- inline virtual TArray<UActuator*> GetAllActuators() override
-
Get all actuators of the agent.
- Returns:
-
An array of pointers to the actuators.
- inline virtual EAgentStatus GetStatus() override
-
Get the status of the agent.
- Returns:
-
The status of the agent.
- inline virtual void SetStatus(EAgentStatus NewStatus) override
-
Set the status of the agent.
- Parameters:
-
NewStatus – [in] The new status to set.
Public Members
- UInteractionManager *InteractionManager = CreateDefaultSubobject<UInteractionManager>(TEXT(“InteractionManager”))
-
Object defining how the agent interacts with the environment.
- UAbstractPolicy *Policy
-
Object defining an asynchronous function f:Observations->Actions used to make decisions for the agent.
- UAbstractBrain *Brain
-
Object defining how decision requests are synchronized.
- TArray<UAbstractObserver*> Observers
-
List of observers that collect observations for the agent.
- TArray<UActuator*> Actuators
-
List of actuators that execute actions for the agent.
- FThinkTickFunction ThinkTickFunction = FThinkTickFunction(this)
- FActTickFunction ActTickFunction = FActTickFunction(this)