Skip to content

Commit 5628da0

Browse files
WIP: New format for description module
1 parent b407f3c commit 5628da0

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

robot_descriptions/a1_description.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,19 @@
66

77
"""A1 description."""
88

9-
from os import getenv as _getenv
10-
from os import path as _path
9+
import os
1110

1211
from ._cache import clone_to_cache as _clone_to_cache
1312

1413
REPOSITORY_PATH: str = _clone_to_cache(
1514
"unitree_ros",
16-
commit=_getenv("ROBOT_DESCRIPTION_COMMIT", None),
15+
commit=(
16+
os.environ.pop("ROBOT_DESCRIPTION_COMMIT")
17+
if "ROBOT_DESCRIPTION_COMMIT" in os.environ
18+
else None
19+
),
1720
)
1821

19-
PACKAGE_PATH: str = _path.join(REPOSITORY_PATH, "robots", "a1_description")
22+
PACKAGE_PATH: str = os.path.join(REPOSITORY_PATH, "robots", "a1_description")
2023

21-
URDF_PATH: str = _path.join(PACKAGE_PATH, "urdf", "a1.urdf")
24+
URDF_PATH: str = os.path.join(PACKAGE_PATH, "urdf", "a1.urdf")

0 commit comments

Comments
 (0)