tinkhireeva commited on
Commit
2b4b52a
·
verified ·
1 Parent(s): 7b2e21e

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
- # download assets from huggingface first
23
- snapshot_download(repo_id="LightwheelAI/leisaac_env", revision=None, cache_dir=None)
24
-
25
- # set environment variable for leisaac asset
26
- assets_root = Path(__file__).parent.parent / "assets"
 
 
 
 
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