Skip to content

Commit

Permalink
Merge pull request #83 from lvjonok/master
Browse files Browse the repository at this point in the history
Add Unitree G1 URDF
  • Loading branch information
stephane-caron authored May 22, 2024
2 parents d0dc260 + bfd696b commit 087bbe2
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file.
### Added

- Description: KUKA iiwa 7 (URDF)
- Description: Unitree G1 (URDF) (thanks to @lvjonok)

### Changed

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ The DOF column denotes the number of actuated degrees of freedom.
| `sigmaban_description` | SigmaBan | Rhoban | 20 | URDF |
| `talos_description` | TALOS | PAL Robotics | 32 | URDF |
| `valkyrie_description` | Valkyrie | NASA JSC Robotics | 59 | URDF |
| `g1_description` | G1 | UNITREE Robotics | 37 | URDF |

### Mobile manipulators

Expand Down
1 change: 1 addition & 0 deletions robot_descriptions/_descriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def has_urdf(self) -> bool:
"ginger_description": Description(Format.URDF),
"go1_description": Description(Format.URDF),
"go1_mj_description": Description(Format.MJCF),
"g1_description": Description(Format.URDF),
"h1_description": Description(Format.URDF),
"h1_mj_description": Description(Format.MJCF),
"hyq_description": Description(Format.URDF),
Expand Down
2 changes: 1 addition & 1 deletion robot_descriptions/_repositories.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ class Repository:
),
"unitree_ros": Repository(
url="https://github.com/unitreerobotics/unitree_ros.git",
commit="e197ae10d301c41f17f61fe3a741925a033db1e8",
commit="6a7a9609cebd853062f2182f97dcfbdb711cd61a",
cache_path="unitree_ros",
),
"upkie_description": Repository(
Expand Down
18 changes: 18 additions & 0 deletions robot_descriptions/g1_description.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""G1 description."""

from os import getenv as _getenv
from os import path as _path

from ._cache import clone_to_cache as _clone_to_cache

REPOSITORY_PATH: str = _clone_to_cache(
"unitree_ros",
commit=_getenv("ROBOT_DESCRIPTION_COMMIT", None),
)

PACKAGE_PATH: str = _path.join(REPOSITORY_PATH, "robots", "g1_description")

URDF_PATH: str = _path.join(PACKAGE_PATH, "g1.urdf")

0 comments on commit 087bbe2

Please sign in to comment.