Skip to content

Commit cb0b103

Browse files
committed
Add unitree g1.
1 parent d0dc260 commit cb0b103

File tree

5 files changed

+46
-10
lines changed

5 files changed

+46
-10
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

1112
### Changed
1213

README.md

+22-9
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,27 @@ robot_descriptions show solo_description
115115

116116
Available robot descriptions ([gallery](https://github.com/robot-descriptions/awesome-robot-descriptions#gallery)) are listed in the following categories:
117117

118-
- [Arms](#arms)
119-
- [Bipeds](#bipeds)
120-
- [Dual arms](#dual-arms)
121-
- [Drones](#drones)
122-
- [Educational](#educational)
123-
- [End effectors](#end-effectors)
124-
- [Humanoids](#humanoids)
125-
- [Mobile manipulators](#mobile-manipulators)
126-
- [Quadrupeds](#quadrupeds)
118+
- [Installation](#installation)
119+
- [PyPI](#pypi)
120+
- [Conda](#conda)
121+
- [Usage](#usage)
122+
- [Import as submodule](#import-as-submodule)
123+
- [Examples](#examples)
124+
- [Command line tool](#command-line-tool)
125+
- [Descriptions](#descriptions)
126+
- [Arms](#arms)
127+
- [Bipeds](#bipeds)
128+
- [Dual arms](#dual-arms)
129+
- [Drones](#drones)
130+
- [Educational](#educational)
131+
- [End effectors](#end-effectors)
132+
- [Humanoids](#humanoids)
133+
- [Mobile manipulators](#mobile-manipulators)
134+
- [Quadrupeds](#quadrupeds)
135+
- [Contributing](#contributing)
136+
- [Thanks](#thanks)
137+
- [Citation](#citation)
138+
- [See also](#see-also)
127139

128140
The DOF column denotes the number of actuated degrees of freedom.
129141

@@ -210,6 +222,7 @@ The DOF column denotes the number of actuated degrees of freedom.
210222
| `atlas_v4_description` | Atlas v4 | Boston Dynamics | 30 | URDF |
211223
| `draco3_description` | Draco3 | Apptronik | 25 | URDF |
212224
| `ergocub_description` | ergoCub | IIT | 57 | URDF |
225+
| `g1_mj_description` | G1 | UNITREE Robotics | 37 | MJCF |
213226
| `h1_description` | H1 | UNITREE Robotics | 25 | URDF |
214227
| `h1_mj_description` | H1 | UNITREE Robotics | 25 | MJCF |
215228
| `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="0a809cfd52f615ea4bb82ccf858787768f08699a",
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)