Skip to content

Commit ee93d29

Browse files
Merge branch 'shbang91-master'
2 parents df751a8 + 7ace7f3 commit ee93d29

File tree

6 files changed

+44
-1
lines changed

6 files changed

+44
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
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: Draco3 URDF
10+
711
### Changed
812

913
- CI: switch to ruff

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ The goal of this project is to facilitate loading and sharing of robot descripti
2121
4. **Listing:** Add the description metadata to the ``DESCRIPTIONS`` dictionary in ``_descriptions.py``.
2222
5. **Testing:** Check that all unit tests are successful by ``tox -e py``.
2323
6. **README:** Document the description's submodule name in the Descriptions section of the [README](README.md).
24-
7. **Changelog:** Write down the new model to the [changelog](CHANGELOG.md).
24+
7. **Changelog:** Write down the new model at the top of the [changelog](CHANGELOG.md).

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ The DOF column denotes the number of actuated degrees of freedom.
181181
|-------------------------------|-----------------------|--------------------------|-----|------------|
182182
| `atlas_drc_description` | Atlas DRC (v3) | Boston Dynamics | 30 | URDF |
183183
| `atlas_v4_description` | Atlas v4 | Boston Dynamics | 30 | URDF |
184+
| `draco3_description` | Draco3 | Apptronik | 25 | URDF |
184185
| `icub_description` | iCub | IIT | 32 | URDF |
185186
| `jaxon_description` | JAXON | JSK | 38 | URDF |
186187
| `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
@@ -77,6 +77,7 @@ def has_urdf(self) -> bool:
7777
"cassie_mj_description": Description(Format.MJCF),
7878
"cf2_description": Description(Format.URDF),
7979
"double_pendulum_description": Description(Format.URDF),
80+
"draco3_description": Description(Format.URDF),
8081
"edo_description": Description(Format.URDF),
8182
"eve_r3_description": Description(Format.URDF),
8283
"fetch_description": Description(Format.URDF),

robot_descriptions/_repositories.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ class Repository:
7272
commit="fcc3775453e4da6797cd4eacd3d8321d9906755a",
7373
cache_path="cassie_mj_description",
7474
),
75+
"draco3_description": Repository(
76+
url="https://github.com/shbang91/draco3_description.git",
77+
commit="7ac3d5e7967208cc895974e69a43ba3bbd6a7133",
78+
cache_path="draco3_description",
79+
),
7580
"drake": Repository(
7681
url="https://github.com/RobotLocomotion/drake.git",
7782
commit="v1.7.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 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+
"""Draco3 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+
"draco3_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", "draco3.urdf")

0 commit comments

Comments
 (0)