Skip to content

AImitationPlayerControllerBase

Base class for imitation learning player controllers.

Provides common functionality for capturing Enhanced Input actions and converting them to the Schola action space format. Both single-agent and multi-agent imitation controllers inherit from this class.

This class is not meant to be used directly - use AImitationPlayerController for single-agent scenarios or AMultiAgentImitationPlayerController for multi-agent scenarios.

Subclassed by AImitationPlayerController, AMultiAgentImitationPlayerController

class AImitationPlayerControllerBase : public APlayerController

Methods

AImitationPlayerControllerBase

AImitationPlayerControllerBase()

UEnhancedPlayerInput

class UEnhancedPlayerInput *GetEnhancedPlayerInput() const

Get the Enhanced Player Input subsystem for this controller.


BuildActionSpaceFromIMC

bool BuildActionSpaceFromIMC(UInputMappingContext *MappingContext,
FInstancedStruct &OutActionSpace)

Build action space from an Input Mapping Context.

Parameters

  • MappingContext (UInputMappingContext)

  • OutActionSpace (FInstancedStruct)


BuildActionSpaceFromIMC

inline bool BuildActionSpaceFromIMC(UInputMappingContext *MappingContext,
TInstancedStruct<FSpace> &OutActionSpace)

Type-safe wrapper for BuildActionSpaceFromIMC.

Parameters

  • MappingContext (UInputMappingContext)

  • OutActionSpace (TInstancedStruct<FSpace>)


PollActionsFromIMC

bool PollActionsFromIMC(UInputMappingContext *MappingContext,
FInstancedStruct &OutActions)

Poll current action values from an Input Mapping Context.

Parameters

  • MappingContext (UInputMappingContext)

  • OutActions (FInstancedStruct)


PollActionsFromIMC

inline bool PollActionsFromIMC(UInputMappingContext *MappingContext,
TInstancedStruct<FPoint> &OutActions)

Type-safe wrapper for PollActionsFromIMC.

Parameters

  • MappingContext (UInputMappingContext)

  • OutActions (TInstancedStruct<FPoint>)

Source: Source/ScholaImitation/Public/Environment/ImitationPlayerControllerBase.h