Skip to content

Commit 188a27e

Browse files
Revert A1 description to original
1 parent b7f72a2 commit 188a27e

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

robot_descriptions/a1_description.py

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

77
"""A1 description."""
88

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

1112
from ._cache import clone_to_cache as _clone_to_cache
1213

1314
REPOSITORY_PATH: str = _clone_to_cache(
1415
"unitree_ros",
15-
commit=(
16-
os.environ.pop("ROBOT_DESCRIPTION_COMMIT")
17-
if "ROBOT_DESCRIPTION_COMMIT" in os.environ
18-
else None
19-
),
16+
commit=_getenv("ROBOT_DESCRIPTION_COMMIT", None),
2017
)
2118

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

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

0 commit comments

Comments
 (0)