Skip to content

[Bug Report] ViewSizeWrapper ignored with RGBImgPartialObsWrapper #419

@lpjiang97

Description

@lpjiang97

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

  • I have checked that there is no similar issue in the repo (required)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions