Skip to content

Commit 3f37a1d

Browse files
Add Unitree B2 description
1 parent df5c76e commit 3f37a1d

File tree

5 files changed

+28
-1
lines changed

5 files changed

+28
-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: Unitree B2
10+
711
## [1.12.0] - 2024-08-08
812

913
### Added

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ The DOF column denotes the number of actuated degrees of freedom.
258258
| `anymal_c_description` | ANYmal C | ANYbotics | 12 | URDF |
259259
| `anymal_c_mj_description` | ANYmal C | ANYbotics | 12 | MJCF |
260260
| `b1_description` | B1 | UNITREE Robotics | 12 | URDF |
261+
| `b2_description` | B2 | UNITREE Robotics | 12 | URDF |
261262
| `spot_mj_description` | Spot | Boston Dynamics | 12 | MJCF |
262263
| `go1_description` | Go1 | UNITREE Robotics | 12 | URDF |
263264
| `go1_mj_description` | Go1 | UNITREE Robotics | 12 | MJCF |

robot_descriptions/_descriptions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def has_urdf(self) -> bool:
6262
"atlas_drc_description": Description(Format.URDF),
6363
"atlas_v4_description": Description(Format.URDF),
6464
"b1_description": Description(Format.URDF),
65+
"b2_description": Description(Format.URDF),
6566
"barrett_hand_description": Description(Format.URDF),
6667
"baxter_description": Description(Format.URDF),
6768
"bolt_description": Description(Format.URDF),

robot_descriptions/_repositories.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ class Repository:
252252
),
253253
"unitree_ros": Repository(
254254
url="https://github.com/unitreerobotics/unitree_ros.git",
255-
commit="6a7a9609cebd853062f2182f97dcfbdb711cd61a",
255+
commit="8bca7f8907bf6feceac80809ae67e4b379ab9cfc",
256256
cache_path="unitree_ros",
257257
),
258258
"upkie_description": Repository(
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 Inria
6+
7+
"""B2 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+
"unitree_ros",
16+
commit=_getenv("ROBOT_DESCRIPTION_COMMIT", None),
17+
)
18+
19+
PACKAGE_PATH: str = _path.join(REPOSITORY_PATH, "robots", "b2_description")
20+
21+
URDF_PATH: str = _path.join(PACKAGE_PATH, "urdf", "b2_description.urdf")

0 commit comments

Comments
 (0)