Skip to content
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

Change the default screen size to 640 #340

Merged
merged 41 commits into from
Mar 27, 2023
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
d5d8b72
added docstrings to babyai goto
BolunDai0216 Jan 23, 2023
7467e0a
added placeholder docstrings to all babyai envs
BolunDai0216 Jan 23, 2023
f3c6acd
updated babyai registration
BolunDai0216 Jan 23, 2023
ca7c4ca
updated babyai docstrings for open, other, pickup, and putnext
BolunDai0216 Jan 23, 2023
acfdbdb
updated docstrings for unlock
BolunDai0216 Jan 30, 2023
adfe31b
added docstrings for synth
BolunDai0216 Jan 30, 2023
bbd6504
updated docstrings for synth
BolunDai0216 Jan 30, 2023
d1b8139
updated docstring
BolunDai0216 Feb 5, 2023
6e1d3b2
updated test
BolunDai0216 Feb 5, 2023
bd8b313
added documentation to some of the wrappers
BolunDai0216 Feb 6, 2023
6acfbb4
added documentation for the wrappers
BolunDai0216 Feb 6, 2023
fd6285e
passed pre-commit
BolunDai0216 Feb 6, 2023
c1e82c7
updated isort to 5.12.0
BolunDai0216 Feb 6, 2023
798b2fb
removed set_trace
BolunDai0216 Feb 6, 2023
6a141af
fixed generate website test error
BolunDai0216 Feb 6, 2023
86f9298
fixed generate website test error for non-str entry points
BolunDai0216 Feb 6, 2023
2444308
fixed generate website test error for non-str entry points in gen_env…
BolunDai0216 Feb 6, 2023
3c9271a
Merge branch 'Farama-Foundation:master' into master
BolunDai0216 Feb 19, 2023
5e90c82
fixed bug in reset() of DirectionObsWrapper and added documentation
BolunDai0216 Feb 19, 2023
a24b578
deleted unused import pdb
BolunDai0216 Feb 19, 2023
6beb137
renamed StateBonus to PositionBonus
BolunDai0216 Feb 19, 2023
2e8f4a3
renamed state bonus test to position bonus
BolunDai0216 Feb 19, 2023
abb1281
added tests to directionobs and symbolicobs
BolunDai0216 Feb 19, 2023
912afc4
updated doc for PositionBonus
BolunDai0216 Feb 20, 2023
7357521
Update wrappers.py
pseudo-rnd-thoughts Feb 20, 2023
bf3ae7a
Merge branch 'Farama-Foundation:master' into master
BolunDai0216 Feb 24, 2023
38b552e
ran pre-commit
BolunDai0216 Feb 24, 2023
7e30a98
removed used actions
BolunDai0216 Mar 12, 2023
2ecd9b6
Merge branch 'Farama-Foundation:master' into master
BolunDai0216 Mar 12, 2023
66ca7e5
Merge branch 'master' of https://github.com/BolunDai0216/Minigrid
BolunDai0216 Mar 12, 2023
3ce7b17
removed Actions in minigrid_env in favor or minigrid.core.actions.Act…
BolunDai0216 Mar 12, 2023
8072aca
Merge branch 'Farama-Foundation:master' into master
BolunDai0216 Mar 13, 2023
c601b71
fixed bug in SymbolicObsWrapper
BolunDai0216 Mar 13, 2023
bd16eac
Merge branch 'Farama-Foundation:master' into master
BolunDai0216 Mar 13, 2023
0b0eec0
added test for SymbolicObsWrapper
BolunDai0216 Mar 14, 2023
5f71d5c
Merge branch 'master' of https://github.com/BolunDai0216/Minigrid
BolunDai0216 Mar 14, 2023
b643bff
passed pre-commit
BolunDai0216 Mar 14, 2023
097e24a
resolved merge conflict
BolunDai0216 Mar 22, 2023
670fdbf
updated version number to 2.2.0
BolunDai0216 Mar 22, 2023
b3400e2
Merge branch 'Farama-Foundation:master' into master
BolunDai0216 Mar 25, 2023
68f032c
updated default screen size from 1 to 640
BolunDai0216 Mar 25, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions minigrid/minigrid_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(
see_through_walls: bool = False,
agent_view_size: int = 7,
render_mode: str | None = None,
screen_size: int | None = 1,
screen_size: int | None = 640,
highlight: bool = True,
tile_size: int = TILE_PIXELS,
agent_pov: bool = False,
Expand Down Expand Up @@ -197,7 +197,6 @@ def __str__(self):
output = ""

for j in range(self.grid.height):

for i in range(self.grid.width):
if i == self.agent_pos[0] and j == self.agent_pos[1]:
output += 2 * AGENT_DIR_TO_STR[self.agent_dir]
Expand Down Expand Up @@ -731,7 +730,6 @@ def get_frame(
return self.get_full_render(highlight, tile_size)

def render(self):

img = self.get_frame(self.highlight, self.tile_size, self.agent_pov)

if self.render_mode == "human":
Expand Down