Skip to content

Commit 5940ca8

Browse files
stephane-caronStéphane Caron
authored andcommitted
Add MJCF description for JVRC-1
1 parent ceb14f5 commit 5940ca8

File tree

5 files changed

+43
-3
lines changed

5 files changed

+43
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ All notable changes to this project will be documented in this file.
66

77
### New robot descriptions
88

9-
This release adds 1 robot description:
9+
This release adds 2 robot descriptions:
1010

1111
- Aliengo MJCF
12+
- JVRC-1 MJCF
1213

1314
### Added
1415

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ Available robot descriptions ([gallery](https://github.com/robot-descriptions/aw
6767
| Name | Maker | Submodule |
6868
|-----------------------|--------------------| ------------------------------|
6969
| A1 | UNITREE Robotics | `a1_description` |
70-
| Aliengo | UNITREE Robotics | `aliengo_description` |
7170
| Aliengo (MJCF) | UNITREE Robotics | `aliengo_mj_description` |
71+
| Aliengo (URDF) | UNITREE Robotics | `aliengo_description` |
7272
| Allegro Hand | Wonik Robotics | `allegro_hand_description` |
7373
| ANYmal B | ANYbotics | `anymal_b_description` |
7474
| ANYmal C | ANYbotics | `anymal_c_description` |
@@ -84,7 +84,8 @@ Available robot descriptions ([gallery](https://github.com/robot-descriptions/aw
8484
| HyQ | IIT | `hyq_description` |
8585
| iCub | IIT | `icub_description` |
8686
| iiwa | KUKA | `iiwa_description` |
87-
| JVRC-1 | AIST | `jvrc_description` |
87+
| JVRC-1 (MJCF) | AIST | `jvrc_mj_description` |
88+
| JVRC-1 (URDF) | AIST | `jvrc_description` |
8889
| Laikago | UNITREE Robotics | `laikago_description` |
8990
| Mini Cheetah | MIT | `mini_cheetah_description` |
9091
| Minitaur | Ghost Robotics | `minitaur_description` |

robot_descriptions/_description_names.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"icub_description",
4242
"iiwa_description",
4343
"jvrc_description",
44+
"jvrc_mj_description",
4445
"laikago_description",
4546
"mini_cheetah_description",
4647
"minitaur_description",

robot_descriptions/_repositories.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ class Repository:
100100
commit="v1.1.0",
101101
cache_path="stephane-caron/jvrc_description",
102102
),
103+
"jvrc_mj_description": Repository(
104+
url="https://github.com/isri-aist/jvrc_mj_description.git",
105+
commit="0f0ce7daefdd66c54e0909a6bf2c22154844f5f3",
106+
cache_path="isri-aist/jvrc_mj_description",
107+
),
103108
"mini_cheetah_urdf": Repository(
104109
url="https://github.com/Derek-TH-Wang/mini_cheetah_urdf.git",
105110
commit="1988bceb26e81f28594a16e7d5e6abe5cbb27ace",
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/usr/bin/env python3
2+
# -*- coding: utf-8 -*-
3+
#
4+
# Copyright 2022 Stéphane Caron
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
18+
"""
19+
JVRC-1 MJCF description.
20+
"""
21+
22+
from os import path as _path
23+
24+
from ._cache import clone_to_cache as _clone_to_cache
25+
26+
REPOSITORY_PATH: str = _clone_to_cache("jvrc_mj_description")
27+
28+
PACKAGE_PATH: str = _path.join(REPOSITORY_PATH)
29+
30+
MESHES_PATH: str = _path.join(PACKAGE_PATH, "meshes")
31+
32+
MJCF_PATH: str = _path.join(PACKAGE_PATH, "xml", "jvrc1.xml")

0 commit comments

Comments
 (0)