Skip to content

Commit 3b6e3d4

Browse files
kevinzakkastephane-caron
authored andcommitted
Add xarm7 MJCF.
1 parent f3712f6 commit 3b6e3d4

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: UFACTORY xArm7 (MJCF) (thanks to @kevinzakka)
10+
711
## [1.9.0] - 2024-03-27
812

913
### Added

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ The DOF column denotes the number of actuated degrees of freedom.
148148
| `ur5_description` | UR5 | Universal Robots | 6 | URDF |
149149
| `ur5e_mj_description` | UR5e | Universal Robots | 6 | MJCF |
150150
| `viper_mj_description` | Viper | Trossen Robotics | 7 | MJCF |
151+
| `xarm7_mj_description` | xArm7 | UFACTORY | 7 | MJCF |
151152
| `z1_description` | Z1 | UNITREE Robotics | 6 | URDF |
152153

153154
### Bipeds

robot_descriptions/_descriptions.py

+1
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ def has_urdf(self) -> bool:
128128
"ur5e_mj_description": Description(Format.MJCF),
129129
"valkyrie_description": Description(Format.URDF),
130130
"viper_mj_description": Description(Format.MJCF),
131+
"xarm7_mj_description": Description(Format.MJCF),
131132
"yumi_description": Description(Format.URDF),
132133
"z1_description": Description(Format.URDF),
133134
"z1_mj_description": Description(Format.MJCF),
+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+
"""UFACTORY xArm7 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, "ufactory_xarm7")
19+
20+
MJCF_PATH: str = _path.join(PACKAGE_PATH, "xarm7.xml")

0 commit comments

Comments
 (0)