From 75219f2c4469294bceaff8f56c57af9d2e9a4c99 Mon Sep 17 00:00:00 2001 From: Kallinteris Andreas <30759571+Kallinteris-Andreas@users.noreply.github.com> Date: Wed, 30 Oct 2024 19:10:17 +0200 Subject: [PATCH 1/4] Update gen_envs_display.py --- docs/_scripts/gen_envs_display.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/_scripts/gen_envs_display.py b/docs/_scripts/gen_envs_display.py index 9904bfca..e0ce62c9 100644 --- a/docs/_scripts/gen_envs_display.py +++ b/docs/_scripts/gen_envs_display.py @@ -2,8 +2,11 @@ import re import gymnasium as gym +import gymnasium_robotics from tqdm import tqdm +gym.register_envs(gymnasium_robotics) + if __name__ == "__main__": """ python gen_envs_display From f43389eece7c41f3e1ada479080ff0425c353417 Mon Sep 17 00:00:00 2001 From: Kallinteris Andreas <30759571+Kallinteris-Andreas@users.noreply.github.com> Date: Wed, 30 Oct 2024 19:10:36 +0200 Subject: [PATCH 2/4] Update gen_gifs.py --- docs/_scripts/gen_gifs.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/_scripts/gen_gifs.py b/docs/_scripts/gen_gifs.py index 8d05c695..0af46e51 100644 --- a/docs/_scripts/gen_gifs.py +++ b/docs/_scripts/gen_gifs.py @@ -1,9 +1,12 @@ import os import gymnasium as gym +import gymnasium_robotics from PIL import Image from tqdm import tqdm +gym.register_envs(gymnasium_robotics) + # how many steps to record an env for LENGTH = 300 From 2075fb7f705135a6040c9642b51b684981143638 Mon Sep 17 00:00:00 2001 From: Kallinteris Andreas <30759571+Kallinteris-Andreas@users.noreply.github.com> Date: Wed, 30 Oct 2024 19:11:04 +0200 Subject: [PATCH 3/4] Update gen_mds.py --- docs/_scripts/gen_mds.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/_scripts/gen_mds.py b/docs/_scripts/gen_mds.py index 4960954b..77e730f7 100644 --- a/docs/_scripts/gen_mds.py +++ b/docs/_scripts/gen_mds.py @@ -7,12 +7,16 @@ from tqdm import tqdm import gymnasium as gym +import gymnasium_robotics from importlib import import_module from utils import trim import re +gym.register_envs(gymnasium_robotics) + + # REWRITE: generate md's for new environments that don't belong to Fetch or Shadow Hand # TODO: use same format for Fetch and Shadow Hand # The environment entrypoints have the following standard: `gymnasium_robotics.envs.env_type.env_name:EnvName` From 17ec8f34f7ec41b0512b3fbb7ca6feb8893df9f9 Mon Sep 17 00:00:00 2001 From: Kallinteris Andreas <30759571+Kallinteris-Andreas@users.noreply.github.com> Date: Wed, 30 Oct 2024 17:23:01 +0000 Subject: [PATCH 4/4] `pre-commit` --- docs/_scripts/gen_envs_display.py | 3 ++- docs/_scripts/gen_gifs.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/_scripts/gen_envs_display.py b/docs/_scripts/gen_envs_display.py index e0ce62c9..adb03a64 100644 --- a/docs/_scripts/gen_envs_display.py +++ b/docs/_scripts/gen_envs_display.py @@ -2,9 +2,10 @@ import re import gymnasium as gym -import gymnasium_robotics from tqdm import tqdm +import gymnasium_robotics + gym.register_envs(gymnasium_robotics) if __name__ == "__main__": diff --git a/docs/_scripts/gen_gifs.py b/docs/_scripts/gen_gifs.py index 0af46e51..4463f7fd 100644 --- a/docs/_scripts/gen_gifs.py +++ b/docs/_scripts/gen_gifs.py @@ -1,10 +1,11 @@ import os import gymnasium as gym -import gymnasium_robotics from PIL import Image from tqdm import tqdm +import gymnasium_robotics + gym.register_envs(gymnasium_robotics) # how many steps to record an env for