Actions
The action system determines the next state of the environment given the current state and an action.
COMPLETE_ACTION_SET = (noop, rotate_cw, rotate_ccw, forward, right, backward, left, pickup, open, done)
  
      module-attribute
  
    Complete action set for the environment. This set includes all the actions that can be taken by the agent, and does not mirror the Minigrid action set.
MINIGRID_ACTION_SET = (rotate_ccw, rotate_cw, forward, pickup, drop, toggle, done)
  
      module-attribute
  
    Default action set from Minigrid. See https://github.com/Farama-Foundation/Minigrid/blob/master/minigrid/core/actions.py
backward(state)
    
done(state)
    A placeholder action that does nothing, but is a signal to the environment that the episode is over. This action does not terminate the episode, unless the termination function explicitly checks for it (not default).
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| state | State | The current state. | required | 
Returns:
| Name | Type | Description | 
|---|---|---|
| State | State | The same state. | 
drop(state)
    
forward(state)
    
left(state)
    
noop(state)
    
open(state)
    
pickup(state)
    Picks up an item in front of the player and puts it in the pocket. Args: state (State): The current state. Returns: State: The new state with the player entity having the item in the pocket.