This PR makes gym-minigrid compatible with the latest gym versions: v25, v24, v23, and v22. (NOT v21)
The changes are:
Revert to the old rendering API by removing render_mode argument and Renderer in the environment creation.
Replacing the Text space of the observation mission string by a custom space MissionSpace. This space allows to sample random mission strings from a list of placeholder options.
Please delete options that are not relevant.
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
Screenshots
Please attach before and after screenshots of the change if applicable.
Checklist:
[x] I have run the pre-commit checks with pre-commit run --all-files (see CONTRIBUTING.md instructions to set it up)
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
Description
This PR makes
gym-minigrid
compatible with the latestgym
versions: v25, v24, v23, and v22. (NOT v21)The changes are:
rendering API
by removingrender_mode
argument andRenderer
in the environment creation.Text
space of the observation mission string by a custom spaceMissionSpace
. This space allows to sample random mission strings from a list of placeholder options.Please delete options that are not relevant.
Screenshots
Please attach before and after screenshots of the change if applicable.
Checklist:
pre-commit
checks withpre-commit run --all-files
(seeCONTRIBUTING.md
instructions to set it up)