Describe the bug
When wrapped after the RGBImgPartialObsWrapper, the agent_view_size set in ViewSizeWrapper is ignored.
Code example
env = gym.make("MiniGrid-Empty-8x8-v0")
env = RGBImgPartialObsWrapper(ViewSizeWrapper(env, agent_view_size=5))
env = ImgObsWrapper(env)
obs, info = env.reset(seed=10)
print(env.agent_view_size) # returns 5
plt.imshow(obs)
The image plotted shows a view size of 7.
System Info
minigrid was pip installed.
- Cent OS with Python 3.10
Checklist