ForwardView#

class curiosity_gym.core.agentpov.ForwardView(pov_length: int, pov_width: int, env_size: tuple[int, int], xray: bool = False)#

Agent point-of-view observing grid cells in front of the agent.

Parameters:
  • pov_length (int) – Length of the visible field in front of the agent.

  • pov_width (int) – Width of the visible field in front of the agent.

  • env_size (tuple[int, int]) – Number of (horizontal, vertical) cells in the grid environment where the pov class is used.

  • xray (bool) – Whether the agent can observe cells behind walls and closed doors.

../_images/ForwardView_2_3.gif

Example of ForwardView with a length of 2 and a width of 3 without xray.#

Methods

is_visible

Check if grid cell at given position is visible by the agent.

transform_action

Transform given action so that it is compatible with the grid environment.

transform_obs

Transform environment state to agent observation.