Skip to content

Commit 9d13275

Browse files
Merge pull request #109 from kevinzakka/mujoco/pal-talos
Add PAL Talos MJCF description from Menagerie.
2 parents 09af184 + c246e88 commit 9d13275

File tree

5 files changed

+24
-1
lines changed

5 files changed

+24
-1
lines changed

Diff for: CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file.
88

99
- Description: Unitree B2
1010
- Description: Left and right LEAP hand (MJCF) (thanks to @kevinzakka)
11+
- Description: PAL Talos (MJCF) (thanks to @kevinzakka)
1112

1213
### Changed
1314

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ The DOF column denotes the number of actuated degrees of freedom.
229229
| `romeo_description` | Romeo | Aldebaran Robotics | 37 | URDF |
230230
| `sigmaban_description` | SigmaBan | Rhoban | 20 | URDF |
231231
| `talos_description` | TALOS | PAL Robotics | 32 | URDF |
232+
| `talos_mj_description` | TALOS | PAL Robotics | 32 | MJCF |
232233
| `valkyrie_description` | Valkyrie | NASA JSC Robotics | 59 | URDF |
233234

234235
### Mobile manipulators

Diff for: robot_descriptions/_descriptions.py

+1
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ def has_urdf(self) -> bool:
125125
"stretch_description": Description(Format.URDF),
126126
"stretch_mj_description": Description(Format.MJCF),
127127
"talos_description": Description(Format.URDF),
128+
"talos_mj_description": Description(Format.MJCF),
128129
"tiago_description": Description(Format.URDF),
129130
"trifinger_edu_description": Description(Format.URDF),
130131
"upkie_description": Description(Format.URDF),

Diff for: robot_descriptions/_repositories.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class Repository:
157157
),
158158
"mujoco_menagerie": Repository(
159159
url="https://github.com/deepmind/mujoco_menagerie.git",
160-
commit="f59b989dea80a523b0e0b0fbe550c664939c6376",
160+
commit="511be2a8bea4bf06ea4a1825c304a5b0cc6b67b1",
161161
cache_path="mujoco_menagerie",
162162
),
163163
"nao_robot": Repository(

Diff for: robot_descriptions/talos_mj_description.py

+20
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+
"""PAL Talos 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+
"mujoco_menagerie",
15+
commit=_getenv("ROBOT_DESCRIPTION_COMMIT", None),
16+
)
17+
18+
PACKAGE_PATH: str = _path.join(REPOSITORY_PATH, "pal_talos")
19+
20+
MJCF_PATH: str = _path.join(PACKAGE_PATH, "talos_position.xml")

0 commit comments

Comments
 (0)