From 5801c3a6c8b4e111353d1541705f0d3808721b24 Mon Sep 17 00:00:00 2001 From: Omar Younis Date: Tue, 19 Nov 2024 10:33:02 +0100 Subject: [PATCH] improve doc --- minigrid/wrappers.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/minigrid/wrappers.py b/minigrid/wrappers.py index 49a3b80df..2f78d5448 100644 --- a/minigrid/wrappers.py +++ b/minigrid/wrappers.py @@ -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 @@ -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):