We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7f72a2 commit 188a27eCopy full SHA for 188a27e
robot_descriptions/a1_description.py
@@ -6,19 +6,16 @@
6
7
"""A1 description."""
8
9
-import os
+from os import getenv as _getenv
10
+from os import path as _path
11
12
from ._cache import clone_to_cache as _clone_to_cache
13
14
REPOSITORY_PATH: str = _clone_to_cache(
15
"unitree_ros",
- commit=(
16
- os.environ.pop("ROBOT_DESCRIPTION_COMMIT")
17
- if "ROBOT_DESCRIPTION_COMMIT" in os.environ
18
- else None
19
- ),
+ commit=_getenv("ROBOT_DESCRIPTION_COMMIT", None),
20
)
21
22
-PACKAGE_PATH: str = os.path.join(REPOSITORY_PATH, "robots", "a1_description")
+PACKAGE_PATH: str = _path.join(REPOSITORY_PATH, "robots", "a1_description")
23
24
-URDF_PATH: str = os.path.join(PACKAGE_PATH, "urdf", "a1.urdf")
+URDF_PATH: str = _path.join(PACKAGE_PATH, "urdf", "a1.urdf")
0 commit comments