Skip to content

Commit 087bbe2

Browse files
Merge pull request #83 from lvjonok/master
Add Unitree G1 URDF
2 parents d0dc260 + bfd696b commit 087bbe2

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
@@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file.
77
### Added
88

99
- Description: KUKA iiwa 7 (URDF)
10+
- Description: Unitree G1 (URDF) (thanks to @lvjonok)
1011

1112
### Changed
1213

README.md

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

226227
### Mobile manipulators
227228

robot_descriptions/_descriptions.py

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ def has_urdf(self) -> bool:
8383
"ginger_description": Description(Format.URDF),
8484
"go1_description": Description(Format.URDF),
8585
"go1_mj_description": Description(Format.MJCF),
86+
"g1_description": Description(Format.URDF),
8687
"h1_description": Description(Format.URDF),
8788
"h1_mj_description": Description(Format.MJCF),
8889
"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)