Simple and easily configurable grid world environments for reinforcement learning
The changes in this release allow for compatibility with the latest Gym release v0.26. For more information on the API changes in Gym v0.26 see the release notes in https://github.com/openai/gym/releases.
Previous Gym versions such as v0.22, v0.23, v0.24, and v0.25 are no longer compatible.
The aim of this version is primarily bug fixing, if you find that this does not work, please make an issue or put a message on the Gym discord server in the gym-minigrid channel (https://discord.gg/nHg2JRN489).
If you are interested in working on gym-minigrid then message PseudoRnd or Rodridelaz on discord.
Env.step
function returns 5 values instead of 4 previously (observations, reward, termination, truncation, info)
. . @salemlEnv.reset
function returns two values (obs and info)
. @rodrigodelazcanowindow.py
, benchmark.py
and manual_control.py
under test_scripts.py
.@salemlThis release is compatible with Gym versions, v0.22, v0.23, v0.24 and v0.25.
Incompatible Gym version with v0.21 due to Env.reset(seed)
The aim of this version is primarily bug fixing, if you find that this does not work, please make an issue or put a message on the Gym discord server in the gym-minigrid channel (https://discord.gg/nHg2JRN489).
If you are interested in working on gym-minigrid then message me on discord, PseudoRnd
benchmark.py
and manual_control.py
to gym_minigrid
folder @rodrigodelazcanoMissionSpace
that is similar to the Gym Text
space to specify the space for all environments @rodrigodelazcanobenchmark.py
and manual_control.py
to work @rodrigodelazcano“render.mode”
to “render_mode”
and “render.fps”
to “render_fps”
@saleml #194DictObservationSpaceWrapper
for changing the mission text to an embedding array. @saleml #194from XYZ import *
and from .XYZ import ABC
in favor of absolute imports. This could cause issues for users that use from gym_minigrid import *
@pseudo-rnd-thoughts #201gym.make
@pseudo-rnd-thoughts #202
BlockedUnlockPickup
-> BlockedUnlockPickupEnv
KeyCorridor
-> KeyCorridorEnv
LockedRoom
-> LockedRoomEnv
and Room
-> LockedRoom
(this is as multiroom also contains a Room to prevent conflict changed both of their names)Room
-> MultiRoom
in multiroom.pyplayground_v0.py
-> playground
and PlaygroundV0
-> PlaygroundEnv
Unlock
-> UnlockEnv
UnlockPickup
-> UnlockPickupEnv
# Old
import gym_minigrid
import gym
env = gym.make('MiniGrid-PutNear-6x6-N2-v0')
# or
import gym
env = gym.make('gym_minigrid:MiniGrid-PutNear-6x6-N2-v0')
# New
import gym
env = gym.make('MiniGrid-PutNear-6x6-N2-v0')
FlatObsWrapper
to contain “,” and increase the numCharCodes=28
@saleml #207