Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unitree g1 MJCF. #82

Merged
merged 4 commits into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 (MJCF) (thanks to @kevinzakka)
- 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 @@ -210,6 +210,7 @@ The DOF column denotes the number of actuated degrees of freedom.
| `atlas_v4_description` | Atlas v4 | Boston Dynamics | 30 | URDF |
| `draco3_description` | Draco3 | Apptronik | 25 | URDF |
| `ergocub_description` | ergoCub | IIT | 57 | URDF |
| `g1_mj_description` | G1 | UNITREE Robotics | 37 | MJCF |
| `h1_description` | H1 | UNITREE Robotics | 25 | URDF |
| `h1_mj_description` | H1 | UNITREE Robotics | 25 | MJCF |
| `icub_description` | iCub | IIT | 32 | URDF |
Expand Down
1 change: 1 addition & 0 deletions robot_descriptions/_descriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def has_urdf(self) -> bool:
"fanuc_m710ic_description": Description(Format.URDF),
"fetch_description": Description(Format.URDF),
"finger_edu_description": Description(Format.URDF),
"g1_mj_description": Description(Format.MJCF),
"gen2_description": Description(Format.URDF),
"gen3_description": Description(Format.URDF),
"gen3_mj_description": Description(Format.MJCF),
Expand Down
2 changes: 1 addition & 1 deletion robot_descriptions/_repositories.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class Repository:
),
"mujoco_menagerie": Repository(
url="https://github.com/deepmind/mujoco_menagerie.git",
commit="915d92c60858c3649e04af2ae93ac2c51fe18c24",
commit="95659f93be58e9e5600bcd1bc9c2379b4aa07fc6",
cache_path="mujoco_menagerie",
),
"nao_robot": Repository(
Expand Down
21 changes: 21 additions & 0 deletions robot_descriptions/g1_mj_description.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# SPDX-License-Identifier: Apache-2.0
# Copyright 2022 Stéphane Caron

"""G1 MJCF 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(
"mujoco_menagerie",
commit=_getenv("ROBOT_DESCRIPTION_COMMIT", None),
)

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

MJCF_PATH: str = _path.join(PACKAGE_PATH, "g1.xml")
Loading