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 b407f3c commit 5628da0Copy full SHA for 5628da0
robot_descriptions/a1_description.py
@@ -6,16 +6,19 @@
6
7
"""A1 description."""
8
9
-from os import getenv as _getenv
10
-from os import path as _path
+import os
11
12
from ._cache import clone_to_cache as _clone_to_cache
13
14
REPOSITORY_PATH: str = _clone_to_cache(
15
"unitree_ros",
16
- commit=_getenv("ROBOT_DESCRIPTION_COMMIT", None),
+ commit=(
+ os.environ.pop("ROBOT_DESCRIPTION_COMMIT")
17
+ if "ROBOT_DESCRIPTION_COMMIT" in os.environ
18
+ else None
19
+ ),
20
)
21
-PACKAGE_PATH: str = _path.join(REPOSITORY_PATH, "robots", "a1_description")
22
+PACKAGE_PATH: str = os.path.join(REPOSITORY_PATH, "robots", "a1_description")
23
-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