Skip to content

Commit 76c9b46

Browse files
Add ergoCub description
1 parent 2ce012f commit 76c9b46

File tree

5 files changed

+42
-0
lines changed

5 files changed

+42
-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: Draco3 (thanks to @shbang91)
10+
- Description: ergoCub
1011

1112
### Changed
1213

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ The DOF column denotes the number of actuated degrees of freedom.
182182
| `atlas_drc_description` | Atlas DRC (v3) | Boston Dynamics | 30 | URDF |
183183
| `atlas_v4_description` | Atlas v4 | Boston Dynamics | 30 | URDF |
184184
| `draco3_description` | Draco3 | Apptronik | 25 | URDF |
185+
| `ergocub_description` | ergoCub | IIT | 57 | URDF |
185186
| `icub_description` | iCub | IIT | 32 | URDF |
186187
| `jaxon_description` | JAXON | JSK | 38 | URDF |
187188
| `jvrc_description` | JVRC-1 | AIST | 34 | URDF |

robot_descriptions/_descriptions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ def has_urdf(self) -> bool:
7979
"double_pendulum_description": Description(Format.URDF),
8080
"draco3_description": Description(Format.URDF),
8181
"edo_description": Description(Format.URDF),
82+
"ergocub_description": Description(Format.URDF),
8283
"eve_r3_description": Description(Format.URDF),
8384
"fetch_description": Description(Format.URDF),
8485
"finger_edu_description": Description(Format.URDF),

robot_descriptions/_repositories.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ class Repository:
8787
commit="17b3f92f834746106d6a4befaab8eeab3ac248e6",
8888
cache_path="edo_sim", # match package name
8989
),
90+
"ergocub-software": Repository(
91+
url="https://github.com/icub-tech-iit/ergocub-software.git",
92+
commit="ac3f223dc2f183dea3f819369da0d58b59f1b2d3",
93+
cache_path="ergocub-software",
94+
),
9095
"example-robot-data": Repository(
9196
url="https://github.com/Gepetto/example-robot-data.git",
9297
commit="9ba565ca1491efa92ebac38cdd499e5b1c256bf1", # v4.0.3
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
"""ergoCub 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+
"ergocub-software",
27+
commit=_getenv("ROBOT_DESCRIPTION_COMMIT", None),
28+
)
29+
30+
PACKAGE_PATH: str = _path.join(REPOSITORY_PATH, "urdf", "ergoCub")
31+
32+
URDF_PATH: str = _path.join(
33+
PACKAGE_PATH, "robots", "ergoCubSN000", "model.urdf"
34+
)

0 commit comments

Comments
 (0)