Farama-Foundation / Minigrid

Simple and easily configurable grid world environments for reinforcement learning
https://minigrid.farama.org/
Other
2.13k stars 611 forks source link

RGBImgObsWrapper returns partial observable environment #162

Closed souradip-chakraborty closed 3 years ago

souradip-chakraborty commented 3 years ago

!pip install gym-minigrid

from gym_minigrid.wrappers import * env = gym.make('MiniGrid-GoToDoor-6x6-v0') env = RGBImgObsWrapper(env) # Get pixel observations obs = env.reset() # This now produces an RGB tensor only a1 = env.render('rgb_array') plt.imshow(a1)

However, it is returning a partial observable view only. Is it possible to get the whole observation ?

maximecb commented 3 years ago

The observation should be fully observable, but you should get the observation via obs['image']