Class IInferenceAgent
- class IInferenceAgent
-
Subclassed by AInferenceController, AInferencePawn, UBTTask_AgentStep, UInferenceComponent
Public Functions
- inline virtual APawn *GetControlledPawn()
-
Get the controlled pawn of the agent.
- Returns:
-
A pointer to a controlled pawn object.
- inline virtual UInteractionManager *GetInteractionManager()
-
Get the interaction manager for collecting actuators and observations.
- Returns:
-
A pointer to an interaction manager object.
- inline virtual UAbstractBrain *GetBrain()
-
Get the brain of the agent.
- Returns:
-
A pointer to a brain object.
- inline virtual UAbstractPolicy *GetPolicy()
-
Get the policy of the agent.
- Returns:
-
A pointer to a policy object.
- inline virtual TArray<UAbstractObserver*> GetAllObservers()
-
Get both the observers attached to the controlled pawn and the observers attached to the agent.
- Returns:
-
An array of observer objects.
- inline virtual TArray<UActuator*> GetAllActuators()
-
Get both the actuators attached to the controlled pawn and the actuators attached to the agent.
- Returns:
-
An array of actuator objects.
- inline virtual EAgentStatus GetStatus()
-
Get the status of the agent.
- Returns:
-
The status of the agent.
- inline virtual void SetStatus(EAgentStatus NewStatus)
-
Set the status of the agent.
- Parameters:
-
NewStatus – The new status to set.
- TArray<UAbstractObserver*> GetObserversFromPawn()
-
Get all observers attached to a pawn.
- Returns:
-
An array of observer objects.
- TArray<UActuator*> GetActuatorsFromPawn()
-
Get all actuators attached to a pawn.
- Returns:
-
An array of actuator objects.
- bool Initialize()
-
Initialize this agent after play has begun.
- Returns:
-
True if initialization was successful, false otherwise.
- void Think()
-
Update the state of the agent.
This checks if the agent is done, what its reward should be, and does any observation collection before requesting a decision.
- virtual void SetupDefaultTicking(FThinkTickFunction &OutThinkTickFunction, FActTickFunction &OutActTickFunction, AActor *InTargetActor = nullptr)
-
Register default tick functions for Think and Act.