Skip to content

Commit e8b3e72

Browse files
Add Dynamixel 2R MJCF description
1 parent c11dd19 commit e8b3e72

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44

55
## [Unreleased]
66

7+
### Added
8+
9+
- Description: Dynamixel 2R (MJCF)
10+
711
## [1.17.0] - 2025-05-08
812

913
### Added

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ The DOF column denotes the number of actuated degrees of freedom.
201201
| Name | Robot | DOF | Format |
202202
|-------------------------------|-----------------------|-----|------------|
203203
| `double_pendulum_description` | Double Pendulum | 2 | URDF |
204+
| `dynamixel_2r` | Dynamixel 2R | 1 | MJCF |
204205
| `finger_edu_description` | FingerEdu | 3 | URDF |
205206
| `simple_humanoid_description` | Simple Humanoid | 29 | URDF |
206207
| `trifinger_edu_description` | TriFingerEdu | 9 | URDF |

robot_descriptions/_descriptions.py

+1
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def has_urdf(self) -> bool:
9595
"double_pendulum_description": Description(
9696
Format.URDF, tags={"educational"}
9797
),
98+
"dynamixel_2r": Description(Format.MJCF, tags={"educational"}),
9899
"draco3_description": Description(Format.URDF, tags={"humanoid"}),
99100
"edo_description": Description(Format.URDF, tags={"arm"}),
100101
"elf2_description": Description(Format.URDF, tags={"humanoid"}),
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+
"""Dynamixel 2R 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, "dynamixel_2r")
19+
20+
MJCF_PATH: str = _path.join(PACKAGE_PATH, "dynamixel_2r.xml")

0 commit comments

Comments
 (0)