Skip to content

Commit 60f7b15

Browse files
Merge pull request #173 from ManifoldFR/manifoldfr/add-mj-humanoid
Add MuJoCo Humanoid MJCF description (and deepmind/mujoco to repository list)
2 parents c99c332 + 2ffbf27 commit 60f7b15

File tree

5 files changed

+30
-0
lines changed

5 files changed

+30
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
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
- Description RBY1 Mobile Manipulatior (URDF) (thanks to @uynitsuj)
88
- Description YAM (MJCF) (thanks to @uynitsuj)
99
- Description YAM (URDF) (thanks to @uynitsuj)
10+
- Description MuJoCo Humanoid (MJCF) (thanks to @ManifoldFR)
1011

1112
## [1.19.0] - 2025-07-03
1213

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ The DOF column denotes the number of actuated degrees of freedom.
204204
| `double_pendulum_description` | Double Pendulum | 2 | URDF |
205205
| `dynamixel_2r_mj_description` | Dynamixel 2R | 2 | MJCF |
206206
| `finger_edu_description` | FingerEdu | 3 | URDF |
207+
| `mujoco_humanoid_description` | MuJoCo Humanoid | 27 | MJCF |
207208
| `simple_humanoid_description` | Simple Humanoid | 29 | URDF |
208209
| `trifinger_edu_description` | TriFingerEdu | 9 | URDF |
209210

robot_descriptions/_descriptions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ def has_urdf(self) -> bool:
151151
),
152152
"mini_cheetah_description": Description(Format.URDF, tags={"quadruped"}),
153153
"minitaur_description": Description(Format.URDF, tags={"quadruped"}),
154+
"mujoco_humanoid_description": Description(
155+
Format.MJCF, tags={"educational", "humanoid"}
156+
),
154157
"n1_description": Description(Format.URDF, tags={"humanoid"}),
155158
"n1_mj_description": Description(Format.MJCF, tags={"humanoid"}),
156159
"nextage_description": Description(Format.URDF, tags={"dual_arm"}),

robot_descriptions/_repositories.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,11 @@ class Repository:
203203
commit="66384c6b8581c811a7b1eb63bcf4fa944fa43602",
204204
cache_path="mujoco_menagerie",
205205
),
206+
"mujoco": Repository(
207+
url="https://github.com/google-deepmind/mujoco.git",
208+
commit="ad0dc0de5e10a075a2c65be629e9a8d557d383a6",
209+
cache_path="mujoco",
210+
),
206211
"nao_robot": Repository(
207212
url="https://github.com/ros-naoqi/nao_robot.git",
208213
commit="67476469a1371b00b17538eb6ea336367ece7d44",
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env python3
2+
# -*- coding: utf-8 -*-
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
# Copyright 2025 Inria
6+
7+
"""MJCF description for the MuJoCo humanoid."""
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", commit=_getenv("ROBOT_DESCRIPTION_COMMIT", None)
16+
)
17+
18+
PACKAGE_PATH: str = _path.join(REPOSITORY_PATH, "model", "humanoid")
19+
20+
MJCF_PATH: str = _path.join(PACKAGE_PATH, "humanoid.xml")

0 commit comments

Comments
 (0)