Skip to content

Commit 9a807b1

Browse files
Add ToddlerBot MJCF descriptions
1 parent 06f71e4 commit 9a807b1

File tree

5 files changed

+62
-0
lines changed

5 files changed

+62
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ All notable changes to this project will be documented in this file.
88

99
- Description: Aero Hand Open (MJCF)
1010
- Description: Aero Hand Open (URDF)
11+
- Description: ToddlerBot 2XC (MJDF)
12+
- Description: ToddlerBot 2XM (MJDF)
1113

1214
### Changed
1315

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,8 @@ The DOF column denotes the number of actuated degrees of freedom.
262262
| `talos_description` | TALOS | PAL Robotics | URDF | Apache-2.0 |
263263
| `talos_mj_description` | TALOS | PAL Robotics | MJCF | Apache-2.0 |
264264
| `toddlerbot_description` | ToddlerBot | Stanford University | URDF | MIT |
265+
| `toddlerbot_2xc_mj_description` | ToddlerBot 2XC | Stanford University | URDF | [MIT](https://github.com/google-deepmind/mujoco_menagerie/blob/bf756430b615819654b640f321c71ba5c3ebeef8/toddlerbot_2xc/LICENSE) |
266+
| `toddlerbot_2xm_mj_description` | ToddlerBot 2XM | Stanford University | URDF | [MIT](https://github.com/google-deepmind/mujoco_menagerie/blob/bf756430b615819654b640f321c71ba5c3ebeef8/toddlerbot_2xm/LICENSE) |
265267
| `valkyrie_description` | Valkyrie | NASA JSC Robotics | URDF | NASA-1.3 |
266268

267269
### Mobile manipulators

robot_descriptions/_descriptions.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,12 @@ def has_urdf(self) -> bool:
232232
Format.MJCF, tags={"mobile_manipulator"}
233233
),
234234
"toddlerbot_description": Description(Format.URDF, tags={"humanoid"}),
235+
"toddlerbot_2xc_mj_description": Description(
236+
Format.MJCF, tags={"humanoid"}
237+
),
238+
"toddlerbot_2xm_mj_description": Description(
239+
Format.MJCF, tags={"humanoid"}
240+
),
235241
"trifinger_edu_description": Description(
236242
Format.URDF, tags={"educational"}
237243
),
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/usr/bin/env python3
2+
# -*- coding: utf-8 -*-
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
"""ToddlerBot 2XC 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+
"mujoco_menagerie",
15+
commit=_getenv("ROBOT_DESCRIPTION_COMMIT", None),
16+
)
17+
18+
PACKAGE_PATH: str = _path.join(REPOSITORY_PATH, "toddlerbot_2xc")
19+
20+
MJCF_PATH: str = _path.join(PACKAGE_PATH, "toddlerbot_2xc.xml")
21+
22+
# Description-specific paths
23+
24+
MJCF_PATH_MJX: str = _path.join(PACKAGE_PATH, "toddlerbot_2xc_mjx.xml")
25+
26+
MJCF_PATH_POS: str = _path.join(PACKAGE_PATH, "toddlerbot_2xc_pos.xml")
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/usr/bin/env python3
2+
# -*- coding: utf-8 -*-
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
"""ToddlerBot 2XM 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+
"mujoco_menagerie",
15+
commit=_getenv("ROBOT_DESCRIPTION_COMMIT", None),
16+
)
17+
18+
PACKAGE_PATH: str = _path.join(REPOSITORY_PATH, "toddlerbot_2xm")
19+
20+
MJCF_PATH: str = _path.join(PACKAGE_PATH, "toddlerbot_2xm.xml")
21+
22+
# Description-specific paths
23+
24+
MJCF_PATH_MJX: str = _path.join(PACKAGE_PATH, "toddlerbot_2xm_mjx.xml")
25+
26+
MJCF_PATH_POS: str = _path.join(PACKAGE_PATH, "toddlerbot_2xm_pos.xml")

0 commit comments

Comments
 (0)