Skip to content

Commit 3dcc300

Browse files
Add Stretch RE1 description
1 parent ab198d1 commit 3dcc300

File tree

5 files changed

+40
-0
lines changed

5 files changed

+40
-0
lines changed

CHANGELOG.md

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

99
- Description: Rhea
10+
- Description: Stretch
1011
- Frame selector in URDF frame display example
1112
- README: Conda installation instructions
1213

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ The DOF column denotes the number of actuated degrees of freedom.
211211
| `pepper_description` | Pepper | SoftBank Robotics | 17 | URDF |
212212
| `pr2_description` | PR2 | Willow Garage | 32 | URDF |
213213
| `reachy_description` | Reachy | Pollen Robotics | 21 | URDF |
214+
| `stretch_description` | Stretch RE1 | Hello Robot | 14 | URDF |
214215
| `tiago_description` | TIAGo | PAL Robotics | 48 | URDF |
215216

216217
### Quadrupeds

robot_descriptions/_descriptions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ def has_urdf(self) -> bool:
114114
"simple_humanoid_description": Description(Format.URDF),
115115
"solo_description": Description(Format.URDF),
116116
"spryped_description": Description(Format.URDF),
117+
"stretch_description": Description(Format.URDF),
117118
"talos_description": Description(Format.URDF),
118119
"tiago_description": Description(Format.URDF),
119120
"upkie_description": Description(Format.URDF),

robot_descriptions/_repositories.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,11 @@ class Repository:
222222
commit="f360a6b78667a4d97c86cad465ef8f4c9512462b",
223223
cache_path="spryped",
224224
),
225+
"stretch_description": Repository(
226+
url="https://github.com/robot-descriptions/stretch_description.git",
227+
commit="d9a614f8572d5a73f78a7f358107233c40a78b13",
228+
cache_path="stretch_description",
229+
),
225230
"talos-data": Repository(
226231
url="https://github.com/stack-of-tasks/talos-data.git",
227232
commit="v2.0.0",
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 2023 Inria
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+
"""Stretch RE1 description."""
19+
20+
from os import getenv as _getenv
21+
from os import path as _path
22+
23+
from ._cache import clone_to_cache as _clone_to_cache
24+
25+
REPOSITORY_PATH: str = _clone_to_cache(
26+
"stretch_description",
27+
commit=_getenv("ROBOT_DESCRIPTION_COMMIT", None),
28+
)
29+
30+
PACKAGE_PATH: str = _path.join(REPOSITORY_PATH)
31+
32+
URDF_PATH: str = _path.join(PACKAGE_PATH, "urdf", "stretch.urdf")

0 commit comments

Comments
 (0)