Skip to content

Commit c8510a8

Browse files
Add ANYmal D description
1 parent 913d6ac commit c8510a8

File tree

5 files changed

+29
-0
lines changed

5 files changed

+29
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file.
88

99
- Description: AgileX PiPER (MJCF)
1010
- Description: AgileX PiPER (URDF)
11+
- Description: ANYmal D
1112
- Description: Robot Soccer Kit
1213
- Description: Robotiq 2F-85 (MJCF V4) (thanks to @peterdavidfagan)
1314
- CLI: Add `show_in_meshcat` command

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ The DOF column denotes the number of actuated degrees of freedom.
268268
| `anymal_b_mj_description` | ANYmal B | ANYbotics | 12 | MJCF |
269269
| `anymal_c_description` | ANYmal C | ANYbotics | 12 | URDF |
270270
| `anymal_c_mj_description` | ANYmal C | ANYbotics | 12 | MJCF |
271+
| `anymal_d_description` | ANYmal D | ANYbotics | 12 | URDF |
271272
| `b1_description` | B1 | UNITREE Robotics | 12 | URDF |
272273
| `b2_description` | B2 | UNITREE Robotics | 12 | URDF |
273274
| `spot_mj_description` | Spot | Boston Dynamics | 12 | MJCF |

robot_descriptions/_descriptions.py

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def has_urdf(self) -> bool:
5959
"anymal_b_mj_description": Description(Format.MJCF),
6060
"anymal_c_description": Description(Format.URDF),
6161
"anymal_c_mj_description": Description(Format.MJCF),
62+
"anymal_d_description": Description(Format.URDF),
6263
"atlas_drc_description": Description(Format.URDF),
6364
"atlas_v4_description": Description(Format.URDF),
6465
"b1_description": Description(Format.URDF),

robot_descriptions/_repositories.py

+5
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ class Repository:
3636
commit="f160b8f7fed840c47a6febe8e2bc78b32bf43a68",
3737
cache_path="anymal_c_simple_description",
3838
),
39+
"anymal_d_simple_description": Repository(
40+
url="https://github.com/ANYbotics/anymal_d_simple_description.git",
41+
commit="6adc14720aab583613975e5a9d6d4fa3cfcdd081",
42+
cache_path="anymal_d_simple_description",
43+
),
3944
"baxter_common": Repository(
4045
url="https://github.com/RethinkRobotics/baxter_common.git",
4146
commit="v1.2.0",
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/env python3
2+
# -*- coding: utf-8 -*-
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
# Copyright 2024 Inria
6+
7+
"""ANYmal D description."""
8+
9+
from os import getenv as _getenv
10+
from os import path as _path
11+
12+
from ._cache import clone_to_cache as _clone_to_cache
13+
14+
REPOSITORY_PATH: str = _clone_to_cache(
15+
"anymal_d_simple_description",
16+
commit=_getenv("ROBOT_DESCRIPTION_COMMIT", None),
17+
)
18+
19+
PACKAGE_PATH: str = _path.join(REPOSITORY_PATH)
20+
21+
URDF_PATH: str = _path.join(PACKAGE_PATH, "urdf", "anymal.urdf")

0 commit comments

Comments
 (0)