Skip to content

Commit 39bfe8e

Browse files
Merge pull request #82 from kevinzakka/unitree-g1
Add unitree g1 MJCF.
2 parents 087bbe2 + 93a1bd4 commit 39bfe8e

File tree

5 files changed

+25
-1
lines changed

5 files changed

+25
-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 (MJCF) (thanks to @kevinzakka)
1011
- Description: Unitree G1 (URDF) (thanks to @lvjonok)
1112

1213
### Changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ The DOF column denotes the number of actuated degrees of freedom.
210210
| `atlas_v4_description` | Atlas v4 | Boston Dynamics | 30 | URDF |
211211
| `draco3_description` | Draco3 | Apptronik | 25 | URDF |
212212
| `ergocub_description` | ergoCub | IIT | 57 | URDF |
213+
| `g1_mj_description` | G1 | UNITREE Robotics | 37 | MJCF |
213214
| `h1_description` | H1 | UNITREE Robotics | 25 | URDF |
214215
| `h1_mj_description` | H1 | UNITREE Robotics | 25 | MJCF |
215216
| `icub_description` | iCub | IIT | 32 | URDF |

robot_descriptions/_descriptions.py

+1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ def has_urdf(self) -> bool:
7777
"fanuc_m710ic_description": Description(Format.URDF),
7878
"fetch_description": Description(Format.URDF),
7979
"finger_edu_description": Description(Format.URDF),
80+
"g1_mj_description": Description(Format.MJCF),
8081
"gen2_description": Description(Format.URDF),
8182
"gen3_description": Description(Format.URDF),
8283
"gen3_mj_description": Description(Format.MJCF),

robot_descriptions/_repositories.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class Repository:
152152
),
153153
"mujoco_menagerie": Repository(
154154
url="https://github.com/deepmind/mujoco_menagerie.git",
155-
commit="915d92c60858c3649e04af2ae93ac2c51fe18c24",
155+
commit="95659f93be58e9e5600bcd1bc9c2379b4aa07fc6",
156156
cache_path="mujoco_menagerie",
157157
),
158158
"nao_robot": Repository(
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/env python3
2+
# -*- coding: utf-8 -*-
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
# Copyright 2022 Stéphane Caron
6+
7+
"""G1 MJCF description."""
8+
9+
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+
"mujoco_menagerie",
16+
commit=_getenv("ROBOT_DESCRIPTION_COMMIT", None),
17+
)
18+
19+
PACKAGE_PATH: str = _path.join(REPOSITORY_PATH, "unitree_g1")
20+
21+
MJCF_PATH: str = _path.join(PACKAGE_PATH, "g1.xml")

0 commit comments

Comments
 (0)