Skip to content

Commit 5d2e5ca

Browse files
stephane-caronStéphane Caron
authored andcommitted
Add Robonaut 2 description
1 parent 8cdb20d commit 5d2e5ca

File tree

4 files changed

+87
-0
lines changed

4 files changed

+87
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ All notable changes to this project will be documented in this file.
66

77
### Added
88

9+
- Description: Robonaut 2
910
- Description: Valkyrie
1011
- Loader: MuJoCo
1112
- Unit tests to check that MuJoCo loads all MJCF descriptions successfully

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ Available robot descriptions ([gallery](https://github.com/robot-descriptions/aw
133133
| Poppy Torso | Poppy Project | URDF | `poppy_torso_description` |
134134
| PR2 | Willow Garage | URDF | `pr2_description` |
135135
| Reachy | Pollen Robotics | URDF | `reachy_description` |
136+
| Robonaut 2 | NASA JSC Robotics | URDF | `r2_description` |
136137
| Robotiq 2F-85 | Robotiq | MJCF | `robotiq_2f85_mj_description` |
137138
| Robotiq 2F-85 | Robotiq | URDF | `robotiq_2f85_description` |
138139
| Romeo | Aldebaran Robotics | URDF | `romeo_description` |

robot_descriptions/_descriptions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ def has_urdf(self) -> bool:
108108
"poppy_ergo_jr_description": Description(Format.URDF),
109109
"poppy_torso_description": Description(Format.URDF),
110110
"pr2_description": Description(Format.URDF),
111+
"r2_description": Description(Format.URDF),
111112
"reachy_description": Description(Format.URDF),
112113
"robotiq_2f85_description": Description(Format.URDF),
113114
"robotiq_2f85_mj_description": Description(Format.MJCF),
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
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+
Robonaut 2 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("nasa-urdf-robots")
27+
28+
PACKAGE_PATH: str = _path.join(REPOSITORY_PATH, "r2_description")
29+
30+
URDF_PATH: str = _path.join(
31+
PACKAGE_PATH, "robots", "r2c_sim_full_control.urdf.urdf"
32+
)
33+
34+
# Description-specific paths
35+
36+
URDF_PATH_B: str = _path.join(PACKAGE_PATH, "robots", "r2b.urdf")
37+
URDF_PATH_C1: str = _path.join(PACKAGE_PATH, "robots", "r2c1.urdf")
38+
URDF_PATH_C5: str = _path.join(PACKAGE_PATH, "robots", "r2c5.urdf")
39+
URDF_PATH_C6: str = _path.join(PACKAGE_PATH, "robots", "r2c6.urdf")
40+
41+
URDF_PATH_B_CONTROL: str = _path.join(
42+
PACKAGE_PATH, "robots", "r2b_control.urdf"
43+
)
44+
URDF_PATH_C1_CONTROL: str = _path.join(
45+
PACKAGE_PATH, "robots", "r2c1_control.urdf"
46+
)
47+
URDF_PATH_C5_CONTROL: str = _path.join(
48+
PACKAGE_PATH, "robots", "r2c5_control.urdf"
49+
)
50+
URDF_PATH_C6_CONTROL: str = _path.join(
51+
PACKAGE_PATH, "robots", "r2c6_control.urdf"
52+
)
53+
54+
URDF_PATH_B_DYNAMICS: str = _path.join(
55+
PACKAGE_PATH, "robots", "r2b_dynamics.urdf"
56+
)
57+
URDF_PATH_C1_DYNAMICS: str = _path.join(
58+
PACKAGE_PATH, "robots", "r2c1_dynamics.urdf"
59+
)
60+
URDF_PATH_C5_DYNAMICS: str = _path.join(
61+
PACKAGE_PATH, "robots", "r2c5_dynamics.urdf"
62+
)
63+
URDF_PATH_C6_DYNAMICS: str = _path.join(
64+
PACKAGE_PATH, "robots", "r2c6_dynamics.urdf"
65+
)
66+
67+
URDF_PATH_C_SIM_FULL_CONTROL: str = _path.join(
68+
PACKAGE_PATH, "robots", "r2c_sim_full_control.urdf"
69+
)
70+
URDF_PATH_C_SIM_FULL_DYNAMICS: str = _path.join(
71+
PACKAGE_PATH, "robots", "r2c_sim_full_dynamics.urdf"
72+
)
73+
URDF_PATH_C_SIM_LEGS_CONTROL: str = _path.join(
74+
PACKAGE_PATH, "robots", "r2c_sim_legs_control.urdf"
75+
)
76+
URDF_PATH_C_SIM_LEGS_DYNAMICS: str = _path.join(
77+
PACKAGE_PATH, "robots", "r2c_sim_legs_dynamics.urdf"
78+
)
79+
URDF_PATH_C_SIM_UPPERBODY_CONTROL: str = _path.join(
80+
PACKAGE_PATH, "robots", "r2c_sim_upperbody_control.urdf"
81+
)
82+
URDF_PATH_C_SIM_UPPERBODY_DYNAMICS: str = _path.join(
83+
PACKAGE_PATH, "robots", "r2c_sim_upperbody_dynamics.urdf"
84+
)

0 commit comments

Comments
 (0)