Skip to content

Commit c2cfd7f

Browse files
Merge pull request #175 from TonyZYT2000/main
Add Unitree H1_2 description
2 parents b002730 + 771462a commit c2cfd7f

File tree

8 files changed

+49
-3
lines changed

8 files changed

+49
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ All notable changes to this project will be documented in this file.
1212
- Description: RBY1 Mobile Manipulatior (URDF) (thanks to @uynitsuj)
1313
- Description: YAM (MJCF) (thanks to @uynitsuj)
1414
- Description: YAM (URDF) (thanks to @uynitsuj)
15+
- Description: Unitree H1_2 (URDF) (thanks to @TonyZYT2000)
16+
- Description: Unitree H1_2 (MJCF) (thanks to @TonyZYT2000)
1517

1618
## [1.19.0] - 2025-07-03
1719

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,8 @@ The DOF column denotes the number of actuated degrees of freedom.
245245
| `gr1_description` | GR-1 | Fourier | URDF | [GPL-3.0](https://github.com/FFTAI/Wiki-GRx-Models/blob/351245ac8fa4bf6f4b0c41556e1e6976a438bcef/LICENSE) |
246246
| `h1_description` | H1 | UNITREE Robotics | URDF | BSD-3-Clause |
247247
| `h1_mj_description` | H1 | UNITREE Robotics | MJCF | BSD-3-Clause |
248+
| `h1_2_description` | H1_2 | UNITREE Robotics | URDF | BSD-3-Clause |
249+
| `h1_2_mj_description` | H1_2 | UNITREE Robotics | MJCF | BSD-3-Clause |
248250
| `icub_description` | iCub | IIT | URDF | CC-BY-SA-4.0 ✖️ |
249251
| `jaxon_description` | JAXON | JSK | URDF | CC-BY-SA-4.0 ✖️ |
250252
| `jvrc_description` | JVRC-1 | AIST | URDF | BSD-2-Clause |

robot_descriptions/_descriptions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ def has_urdf(self) -> bool:
131131
"gr1_description": Description(Format.URDF, tags={"humanoid"}),
132132
"h1_description": Description(Format.URDF, tags={"humanoid"}),
133133
"h1_mj_description": Description(Format.MJCF, tags={"humanoid"}),
134+
"h1_2_description": Description(Format.URDF, tags={"humanoid"}),
135+
"h1_2_mj_description": Description(Format.MJCF, tags={"humanoid"}),
134136
"hyq_description": Description(Format.URDF, tags={"quadruped"}),
135137
"icub_description": Description(Format.URDF, tags={"humanoid"}),
136138
"iiwa7_description": Description(Format.URDF, tags={"arm"}),

robot_descriptions/_repositories.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ class Repository:
325325
),
326326
"unitree_ros": Repository(
327327
url="https://github.com/unitreerobotics/unitree_ros.git",
328-
commit="8bca7f8907bf6feceac80809ae67e4b379ab9cfc",
328+
commit="267182b8521c8d6a631bab1fe63836873237a525",
329329
cache_path="unitree_ros",
330330
),
331331
"upkie_description": Repository(

robot_descriptions/g1_description.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515

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

18-
URDF_PATH: str = _path.join(PACKAGE_PATH, "g1.urdf")
18+
URDF_PATH: str = _path.join(PACKAGE_PATH, "g1_29dof.urdf")
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+
6+
"""H1_2 description."""
7+
8+
from os import getenv as _getenv
9+
from os import path as _path
10+
11+
from ._cache import clone_to_cache as _clone_to_cache
12+
13+
REPOSITORY_PATH: str = _clone_to_cache(
14+
"unitree_ros",
15+
commit=_getenv("ROBOT_DESCRIPTION_COMMIT", None),
16+
)
17+
18+
PACKAGE_PATH: str = _path.join(REPOSITORY_PATH, "robots", "h1_2_description")
19+
20+
URDF_PATH: str = _path.join(PACKAGE_PATH, "h1_2.urdf")
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+
6+
"""Unitree H1_2 MJCF description."""
7+
8+
from os import getenv as _getenv
9+
from os import path as _path
10+
11+
from ._cache import clone_to_cache as _clone_to_cache
12+
13+
REPOSITORY_PATH: str = _clone_to_cache(
14+
"unitree_ros",
15+
commit=_getenv("ROBOT_DESCRIPTION_COMMIT", None),
16+
)
17+
18+
PACKAGE_PATH: str = _path.join(REPOSITORY_PATH, "robots", "h1_2_description")
19+
20+
MJCF_PATH: str = _path.join(PACKAGE_PATH, "h1_2.xml")

robot_descriptions/h1_description.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# SPDX-License-Identifier: Apache-2.0
55
# Copyright 2022 Stéphane Caron
66

7-
"""Go2 description."""
7+
"""H1 description."""
88

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

0 commit comments

Comments
 (0)