Closed zidanwang2025 closed 1 year ago
Thank you for finding this, I got to replicate it and I'll fix it soon.
@zidanwang2025
UPDATE: the wrapper is actually correct. The issue is that the encoded observation doesn't include the agent, and the map is static. If you try your code with a dynamic environment like MiniGrid-Dynamic-Obstacles-5x5-v0
you'll find that the Symbolic observation is different.
However, I'll modify the wrapper to include the agent in order to have the complete state of the environment.
Thanks for the update!!
Describe the bug
The Minigrid environment fails to step when SymbolicObsWrapper is used.
Code example
The
count
I got from this code is 0. Whilenext_obs['direction']
changes,next_obs['image']
stays the same when env.step(action) is called. This does not happen whenRGBImgObsWrapper(env)
is used instead.System Info
minigrid
was installed using pip install minigrid.Checklist