Skip to content

Commit 93a1bd4

Browse files
Merge branch 'main' into unitree-g1
2 parents e2d88ba + 087bbe2 commit 93a1bd4

File tree

5 files changed

+22
-1
lines changed

5 files changed

+22
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file.
88

99
- Description: KUKA iiwa 7 (URDF)
1010
- Description: Unitree G1 (MJCF) (thanks to @kevinzakka)
11+
- Description: Unitree G1 (URDF) (thanks to @lvjonok)
1112

1213
### Changed
1314

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ The DOF column denotes the number of actuated degrees of freedom.
223223
| `sigmaban_description` | SigmaBan | Rhoban | 20 | URDF |
224224
| `talos_description` | TALOS | PAL Robotics | 32 | URDF |
225225
| `valkyrie_description` | Valkyrie | NASA JSC Robotics | 59 | URDF |
226+
| `g1_description` | G1 | UNITREE Robotics | 37 | URDF |
226227

227228
### Mobile manipulators
228229

robot_descriptions/_descriptions.py

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def has_urdf(self) -> bool:
8484
"ginger_description": Description(Format.URDF),
8585
"go1_description": Description(Format.URDF),
8686
"go1_mj_description": Description(Format.MJCF),
87+
"g1_description": Description(Format.URDF),
8788
"h1_description": Description(Format.URDF),
8889
"h1_mj_description": Description(Format.MJCF),
8990
"hyq_description": Description(Format.URDF),

robot_descriptions/_repositories.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ class Repository:
247247
),
248248
"unitree_ros": Repository(
249249
url="https://github.com/unitreerobotics/unitree_ros.git",
250-
commit="e197ae10d301c41f17f61fe3a741925a033db1e8",
250+
commit="6a7a9609cebd853062f2182f97dcfbdb711cd61a",
251251
cache_path="unitree_ros",
252252
),
253253
"upkie_description": Repository(

robot_descriptions/g1_description.py

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env python3
2+
# -*- coding: utf-8 -*-
3+
4+
"""G1 description."""
5+
6+
from os import getenv as _getenv
7+
from os import path as _path
8+
9+
from ._cache import clone_to_cache as _clone_to_cache
10+
11+
REPOSITORY_PATH: str = _clone_to_cache(
12+
"unitree_ros",
13+
commit=_getenv("ROBOT_DESCRIPTION_COMMIT", None),
14+
)
15+
16+
PACKAGE_PATH: str = _path.join(REPOSITORY_PATH, "robots", "g1_description")
17+
18+
URDF_PATH: str = _path.join(PACKAGE_PATH, "g1.urdf")

0 commit comments

Comments
 (0)