Skip to content

Class IStepper

Class IStepper

  • Defined in File StepperInterface.h

Inheritance Relationships

Derived Types

class IStepper

Source: Source/Schola/InferenceUtils/Public/Steppers/StepperInterface.h

Dependencies: IAgent, IPolicy

Interface for stepper implementations.

A stepper manages the observation-action loop by coordinating agents and policies. It collects observations from agents, passes them to a policy for inference, and applies the resulting actions back to the agents.

Subclassed by UPipelinedStepper, USimpleStepper


Public Functions

SymbolDetails
InitInitialize the stepper with a single agent and policy.
InitInitialize the stepper with multiple agents and a policy.

Init

inline virtual bool Init(const TScriptInterface<IAgent> &InAgent,
const TScriptInterface<IPolicy> &InPolicy)

Initialize the stepper with a single agent and policy.

Convenience method that wraps the agent in an array and calls the multi-agent Init.

Parameters

  • InAgent – [in] The agent to use for stepping

  • InPolicy – [in] The policy to use for inference

Returns:

true if initialization succeeded, false otherwise

#DirectionNameTypeDescription
1InAgentconst TScriptInterface< IAgent > &The agent to use for stepping
2InPolicyconst TScriptInterface< IPolicy > &The policy to use for inference

Attributes: inline, virtual

Source: Source/Schola/InferenceUtils/Public/Steppers/StepperInterface.h

Init

virtual bool Init(const TArray<TScriptInterface<IAgent>> &InAgents,
const TScriptInterface<IPolicy> &InPolicy) = 0

Initialize the stepper with multiple agents and a policy.

Sets up the stepper to manage multiple agents using a single shared policy. The policy must support batched inference for multiple agents.

Parameters

  • InAgents – [in] Array of agents to manage

  • InPolicy – [in] The policy to use for inference

Returns:

true if initialization succeeded, false otherwise

#DirectionNameTypeDescription
1InAgentconst TScriptInterface< IAgent > &The agent to use for stepping
2InPolicyconst TScriptInterface< IPolicy > &The policy to use for inference

Attributes: inline, virtual

Source: Source/Schola/InferenceUtils/Public/Steppers/StepperInterface.h