-
-
Notifications
You must be signed in to change notification settings - Fork 615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible bug when generating non-square DoorKey environments. #427
Comments
Could you provide an example image for a given seed with and without the fix |
Here is an example.
|
Ahh, that makes sense. Could you make a PR with this fix? |
rbankosegger
pushed a commit
to rbankosegger/Minigrid
that referenced
this issue
Apr 22, 2024
7 tasks
Here it is: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Consider the lines
From:
https://github.com/Farama-Foundation/Minigrid/blame/617e4908e20fd08e4e135421cd47d52018a3148c/minigrid/envs/doorkey.py#L94
The variable
doorIdx
determines the y-coordinate of the door,the sampling of which should depend on the grid height, not its width.
In situations where width > height, the door might be placed outside of the grid dimension.
Suggested fix:
Replace by
The text was updated successfully, but these errors were encountered: