EnvHub: fetch assets from LightwheelAI/leisaac_env into repo root
Browse files
envs/bi_so101_clean_toytable_2objects.py
CHANGED
|
@@ -19,11 +19,15 @@ def make_env(n_envs: int = 1, use_async_envs: bool = False):
|
|
| 19 |
ManagerBasedRLEnv or DirectRLEnv inherit from gym.Env implemented in IsaacLab
|
| 20 |
"""
|
| 21 |
|
| 22 |
-
#
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
os.environ["LEISAAC_ASSETS_ROOT"] = str(assets_root)
|
| 28 |
|
| 29 |
from isaaclab.app import AppLauncher
|
|
|
|
| 19 |
ManagerBasedRLEnv or DirectRLEnv inherit from gym.Env implemented in IsaacLab
|
| 20 |
"""
|
| 21 |
|
| 22 |
+
# Scene/robot assets live on the upstream Hub repo; materialize them next to this script so
|
| 23 |
+
# thin forks (e.g. kd-forge/leisaac_env with only envs/*.py) still resolve LEISAAC_ASSETS_ROOT.
|
| 24 |
+
repo_root = Path(__file__).resolve().parent.parent
|
| 25 |
+
assets_root = repo_root / "assets"
|
| 26 |
+
snapshot_download(
|
| 27 |
+
repo_id="LightwheelAI/leisaac_env",
|
| 28 |
+
local_dir=str(repo_root),
|
| 29 |
+
allow_patterns=["assets/**"],
|
| 30 |
+
)
|
| 31 |
os.environ["LEISAAC_ASSETS_ROOT"] = str(assets_root)
|
| 32 |
|
| 33 |
from isaaclab.app import AppLauncher
|