Skip to content

GymEnv

Full path: schola.gym.env.GymEnv

A Gym Environment that wraps a Schola Environment.

GymEnv(simulator, protocol, verbosity = 0)

Parameters

  • simulator (BaseSimulator) - Simulator managing the Unreal (or other) process lifecycle.

  • protocol (BaseRLProtocol) - gRPC (or other) protocol used to talk to the running simulation.

  • verbosity (int, default: 0) - Reserved verbosity level for future logging hooks.

Methods

init

__init__(simulator, protocol, verbosity = 0)

Parameters

  • simulator (BaseSimulator)

  • protocol (BaseRLProtocol)

  • verbosity (int)


close

close(**kwargs)

reset

reset(seed = None, options = None)

Parameters

  • seed (int)

  • options (Dict)


step

step(action)

Take one environment step for the single agent.

Parameters

  • action (Any) - Action for the agent, matching action_space.