Skip to content

Commit

Permalink
improve doc
Browse files Browse the repository at this point in the history
  • Loading branch information
younik committed Nov 19, 2024
1 parent 6eab54b commit 5801c3a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion minigrid/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -882,9 +882,10 @@ def step(self, action):

return obs, reward, terminated, truncated, info


class MoveActionWrapper(Wrapper):
"""
Wrapper to change the action space to move actions, intead of turn.
Wrapper to change the action space to move actions, instead of turn.
Thus, the action space, become a Discrete(8) space, where the actions are:
0: Move right
Expand All @@ -895,6 +896,9 @@ class MoveActionWrapper(Wrapper):
5: drop
5: toggle
7: done
Note:
This wrapper is mostly useful with full observation, as the partial observation is rotated depending on the agent direction.
"""

def __init__(self, env):
Expand Down

0 comments on commit 5801c3a

Please sign in to comment.