Browse Source

renamed playground env

main
sp 2 months ago
parent
commit
e19db89556
  1. 4
      notebooks/Playground.ipynb
  2. 12
      notebooks/environments/Minigrid/minigrid/__init__.py
  3. 0
      notebooks/environments/Minigrid/minigrid/envs/Playground.py
  4. 4
      notebooks/environments/Minigrid/minigrid/envs/__init__.py

4
notebooks/GSW_Playground.ipynb → notebooks/Playground.ipynb

@ -281,8 +281,8 @@
" return [1.0] * 7\n", " return [1.0] * 7\n",
"\n", "\n",
"def main():\n", "def main():\n",
" # Edit 'environments/Minigrid/minigrid/envs/GSW_Playground.py' to alter the environment\n",
" env = \"MiniGrid-GSW-v0\"\n",
" # Edit 'environments/Minigrid/minigrid/envs/Playground.py' to alter the environment\n",
" env = \"MiniGrid-Playground-v0\"\n",
"\n", "\n",
" # TODO Change the safety specification\n", " # TODO Change the safety specification\n",
" formula = \"Pmax=? [G !AgentIsOnLava]\"\n", " formula = \"Pmax=? [G !AgentIsOnLava]\"\n",

12
notebooks/environments/Minigrid/minigrid/__init__.py

@ -22,11 +22,11 @@ except Exception: # nosec
def register_minigrid_envs(): def register_minigrid_envs():
# GSW Playground
# Playground
# ---------------------------------------- # ----------------------------------------
register( register(
id="MiniGrid-GSW-v0",
id="MiniGrid-Playground-v0",
entry_point="minigrid.envs:Playground", entry_point="minigrid.envs:Playground",
kwargs={}, kwargs={},
) )
@ -812,10 +812,10 @@ def register_minigrid_envs():
# Playground # Playground
# ---------------------------------------- # ----------------------------------------
register(
id="MiniGrid-Playground-v0",
entry_point="minigrid.envs:PlaygroundEnv",
)
#register(
# id="MiniGrid-Playground-v0",
# entry_point="minigrid.envs:PlaygroundEnv",
#)
# PutNear # PutNear
# ---------------------------------------- # ----------------------------------------

0
notebooks/environments/Minigrid/minigrid/envs/GSW_Playground.py → notebooks/environments/Minigrid/minigrid/envs/Playground.py

4
notebooks/environments/Minigrid/minigrid/envs/__init__.py

@ -15,7 +15,7 @@ from minigrid.envs.lavagap import LavaGapEnv
from minigrid.envs.lavafaulty import LavaFaultyEnv from minigrid.envs.lavafaulty import LavaFaultyEnv
from minigrid.envs.windycity import WindyCityEnv, WindyCityAdvEnv, WindyCity2Env, WindyCitySmallAdv from minigrid.envs.windycity import WindyCityEnv, WindyCityAdvEnv, WindyCity2Env, WindyCitySmallAdv
from minigrid.envs.lavaslippery import LavaSlipperyEnv1, LavaSlipperyCliff, LavaSlipperyHill, LavaSlipperyMaze from minigrid.envs.lavaslippery import LavaSlipperyEnv1, LavaSlipperyCliff, LavaSlipperyHill, LavaSlipperyMaze
from minigrid.envs.GSW_Playground import Playground
from minigrid.envs.Playground import Playground
from minigrid.envs.adversary_debug import AdversaryDebug from minigrid.envs.adversary_debug import AdversaryDebug
from minigrid.envs.adversary_simple import AdversarySimple from minigrid.envs.adversary_simple import AdversarySimple
from minigrid.envs.adversarydoorpickup import AdversaryDoorPickup from minigrid.envs.adversarydoorpickup import AdversaryDoorPickup
@ -30,7 +30,7 @@ from minigrid.envs.obstructedmaze import (
ObstructedMaze_Full, ObstructedMaze_Full,
ObstructedMazeEnv, ObstructedMazeEnv,
) )
from minigrid.envs.playground import PlaygroundEnv
#from minigrid.envs.playground import PlaygroundEnv
from minigrid.envs.putnear import PutNearEnv from minigrid.envs.putnear import PutNearEnv
from minigrid.envs.redbluedoors import RedBlueDoorEnv from minigrid.envs.redbluedoors import RedBlueDoorEnv
from minigrid.envs.unlock import UnlockEnv from minigrid.envs.unlock import UnlockEnv