Skip to content

Commit b3152db

Browse files
lvjonokstephane-caron
authored andcommitted
feat: add skydio_x2 quadrotor
1 parent e85c4c2 commit b3152db

File tree

4 files changed

+49
-0
lines changed

4 files changed

+49
-0
lines changed

robot_descriptions/_descriptions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ def has_urdf(self) -> bool:
105105
"romeo_description": Description(Format.URDF),
106106
"shadow_hand_mj_description": Description(Format.MJCF),
107107
"simple_humanoid_description": Description(Format.URDF),
108+
"skydio_x2_description": Description(Format.URDF),
109+
"skydio_x2_mj_description": Description(Format.MJCF),
108110
"solo_description": Description(Format.URDF),
109111
"spryped_description": Description(Format.URDF),
110112
"stretch_description": Description(Format.URDF),

robot_descriptions/_repositories.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,4 +247,9 @@ class Repository:
247247
commit="3bc5251b7255641d275de8c6b949e13bf1a608ea",
248248
cache_path="upkie_description",
249249
),
250+
"skydio_x2_description": Repository(
251+
url="https://github.com/lvjonok/skydio_x2_description.git",
252+
commit="9a6a057a055babaf47119fac42c361fffc189128",
253+
cache_path="skydio_x2_description",
254+
)
250255
}
Lines changed: 21 additions & 0 deletions
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 Stéphane Caron
6+
7+
"""Skydio X2 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+
"skydio_x2_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", "skydio_x2.urdf")
Lines changed: 21 additions & 0 deletions
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 2022 Stéphane Caron
6+
7+
"""Skydio X2 MJCF 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+
"mujoco_menagerie",
16+
commit=_getenv("ROBOT_DESCRIPTION_COMMIT", None),
17+
)
18+
19+
PACKAGE_PATH: str = _path.join(REPOSITORY_PATH, "skydio_x2")
20+
21+
MJCF_PATH: str = _path.join(PACKAGE_PATH, "x2.xml")

0 commit comments

Comments
 (0)