Skip to content

Commit 55841d2

Browse files
stephane-caronStéphane Caron
authored andcommitted
WIP: Update robot descriptions to new syntax
1 parent 2110085 commit 55841d2

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

robot_descriptions/a1_description.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,15 @@
1919
A1 description.
2020
"""
2121

22+
from os import getenv as _getenv
2223
from os import path as _path
2324

2425
from ._cache import clone_to_cache as _clone_to_cache
2526

26-
REPOSITORY_PATH: str = _clone_to_cache("unitree_ros")
27+
REPOSITORY_PATH: str = _clone_to_cache(
28+
"unitree_ros",
29+
commit=_getenv("ROBOT_DESCRIPTION_COMMIT", None),
30+
)
2731

2832
PACKAGE_PATH: str = _path.join(REPOSITORY_PATH, "robots", "a1_description")
2933

robot_descriptions/a1_mj_description.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,15 @@
1919
A1 MJCF description.
2020
"""
2121

22+
from os import getenv as _getenv
2223
from os import path as _path
2324

2425
from ._cache import clone_to_cache as _clone_to_cache
2526

26-
REPOSITORY_PATH: str = _clone_to_cache("unitree_mujoco")
27+
REPOSITORY_PATH: str = _clone_to_cache(
28+
"unitree_mujoco",
29+
commit=_getenv("ROBOT_DESCRIPTION_COMMIT", None),
30+
)
2731

2832
PACKAGE_PATH: str = _path.join(REPOSITORY_PATH, "data", "a1")
2933

robot_descriptions/aliengo_description.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,15 @@
1919
Aliengo description.
2020
"""
2121

22+
from os import getenv as _getenv
2223
from os import path as _path
2324

2425
from ._cache import clone_to_cache as _clone_to_cache
2526

26-
REPOSITORY_PATH: str = _clone_to_cache("unitree_mujoco")
27+
REPOSITORY_PATH: str = _clone_to_cache(
28+
"unitree_mujoco",
29+
commit=_getenv("ROBOT_DESCRIPTION_COMMIT", None),
30+
)
2731

2832
PACKAGE_PATH: str = _path.join(REPOSITORY_PATH, "data", "aliengo")
2933

robot_descriptions/allegro_hand_description.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,15 @@
1919
Allegro Hand description.
2020
"""
2121

22+
from os import getenv as _getenv
2223
from os import path as _path
2324

2425
from ._cache import clone_to_cache as _clone_to_cache
2526

26-
REPOSITORY_PATH: str = _clone_to_cache("drake")
27+
REPOSITORY_PATH: str = _clone_to_cache(
28+
"drake",
29+
commit=_getenv("ROBOT_DESCRIPTION_COMMIT", None),
30+
)
2731

2832
PACKAGE_PATH: str = _path.join(
2933
REPOSITORY_PATH, "manipulation", "models", "allegro_hand_description"

0 commit comments

Comments
 (0)