Template Class TImitationScholaEnvironment
Template Class TImitationScholaEnvironment
- Defined in File ImitationEnvironmentInterface.h
Inheritance Relationships
Base Types
-
public TScriptInterface< T > -
public IImitationScholaEnvironment(Class IImitationScholaEnvironment)
template <typename T>class TImitationScholaEnvironment : public TScriptInterface<T>, public IImitationScholaEnvironmentSource: Source/Schola/Imitation/Public/Environment/ImitationEnvironmentInterface.h
Dependencies: FImitationAgentState, FInitialAgentState, FInteractionDefinition, IImitationScholaEnvironment, IMultiAgentImitationScholaEnvironment
Template wrapper that adapts Blueprint-implementable environment interfaces to IImitationScholaEnvironment.
This template bridges Blueprint-exposed environment implementations with the type-erased IImitationScholaEnvironment interface for polymorphic usage.
Template Parameters:
T – The Blueprint interface type (e.g., IMultiAgentImitationScholaEnvironment)
Public Functions
| Symbol | Details |
|---|---|
~TImitationScholaEnvironment | Default destructor. |
TImitationScholaEnvironment | Constructs the environment wrapper from a UObject implementing the interface. |
InitializeEnvironment | Initialize the environment and retrieve agent definitions. |
Reset | Reset the environment to its initial state. |
Step | Execute one step of the environment with expert demonstrations. |
SetEnvironmentOptions | Configure environment options. |
SeedEnvironment | Set the random seed for the environment. |
~TImitationScholaEnvironment
~TImitationScholaEnvironment() = defaultDefault destructor.
Source: Source/Schola/Imitation/Public/Environment/ImitationEnvironmentInterface.h
TImitationScholaEnvironment
inline TImitationScholaEnvironment(UObject *InObject)Constructs the environment wrapper from a UObject implementing the interface.
Parameters
InObject – [in] The UObject that implements the environment interface
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | InObject | UObject * | The UObject that implements the environment interface |
Attributes: inline
Source: Source/Schola/Imitation/Public/Environment/ImitationEnvironmentInterface.h
InitializeEnvironment
inline virtual void InitializeEnvironment( TMap<FString, FInteractionDefinition> &OutDefinition) overrideInitialize the environment and retrieve agent definitions.
Parameters
OutAgentDefinitions – [out] Map of agent names to their interaction definitions
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | OutAgentDefinitions | TMap< FString, FInteractionDefinition > & | Map of agent names to their interaction definitions |
Attributes: inline, virtual
Source: Source/Schola/Imitation/Public/Environment/ImitationEnvironmentInterface.h
Reset
inline virtual voidReset(TMap<FString, FInitialAgentState> &OutAgentState) overrideReset the environment to its initial state.
Parameters
OutAgentState – [out] Map of agent names to their initial states
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | OutAgentState | TMap< FString, FInitialAgentState > & | Map of agent names to their initial states |
Attributes: inline, virtual
Source: Source/Schola/Imitation/Public/Environment/ImitationEnvironmentInterface.h
Step
inline virtual voidStep(TMap<FString, FImitationAgentState> &OutAgentStates) overrideExecute one step of the environment with expert demonstrations.
Parameters
OutAgentStates – [out] Map of agent names to their imitation states
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | OutAgentStates | TMap< FString, FImitationAgentState > & | Map of agent names to their imitation states |
Attributes: inline, virtual
Source: Source/Schola/Imitation/Public/Environment/ImitationEnvironmentInterface.h
SetEnvironmentOptions
inline virtual voidSetEnvironmentOptions(const TMap<FString, FString> &Options) overrideConfigure environment options.
Parameters
Options – [in] Map of option names to their string values
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | Options | const TMap< FString, FString > & | Map of option names to their string values |
Attributes: inline, virtual
Source: Source/Schola/Imitation/Public/Environment/ImitationEnvironmentInterface.h
SeedEnvironment
inline virtual void SeedEnvironment(int Seed) overrideSet the random seed for the environment.
Parameters
Seed – [in] The random seed value
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | Seed | int | The random seed value |
Attributes: inline, virtual
Source: Source/Schola/Imitation/Public/Environment/ImitationEnvironmentInterface.h