SmallReward.step#

SmallReward.step(action: Action, front_object: Self | None = None, walkable: bool = False) float#

Determine whether agent is walking over the grid object.

Parameters:
  • action (Action) – Action taken in a grid environment by the RL agent.

  • front_object (GridObject | None, optional) – Grid object currently in front of the RL agent, by default None.

  • walkable (bool, optional) – Wheter the agent can move over the cell in front, by default False.

Returns:

Returns SmallReward.reward if agent is moving over small reward object, 0 otherwise.

Return type:

float