GymObservationConversion

class maze.core.wrappers.maze_gym_env_wrapper.GymObservationConversion(env: gymnasium.Env)

A dummy conversion interface asserting that the observation is packed into a dictionary space.

Parameters:

env – Gymnasium environment.

maze_to_space(maze_state: Any) Any

(overrides ObservationConversionInterface)

Converts core environment state to agent observation.

space() gymnasium.spaces.Space

(overrides ObservationConversionInterface)

Returns respective gym observation space.

space_to_maze(observation: Dict[str, numpy.ndarray]) Any

(overrides ObservationConversionInterface)

Converts agent observation to core environment state.

(This is most like not possible for most observation observation_conversion)