Skip to content

Commit 6ad6c5a

Browse files
stephane-caronStéphane Caron
authored andcommitted
Add B1 description
1 parent 65f466c commit 6ad6c5a

File tree

4 files changed

+36
-0
lines changed

4 files changed

+36
-0
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: B1
10+
711
### Changed
812

913
- A1: use original URDF from Unitree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ The DOF column denotes the number of actuated degrees of freedom.
211211
|-------------------------------|-----------------------|--------------------------|-----|------------|
212212
| `a1_mj_description` | A1 | UNITREE Robotics | 12 | MJCF |
213213
| `a1_description` | A1 | UNITREE Robotics | 12 | URDF |
214+
| `b1_description` | B1 | UNITREE Robotics | 12 | URDF |
214215
| `aliengo_description` | Aliengo | UNITREE Robotics | 12 | MJCF, URDF |
215216
| `anymal_b_mj_description` | ANYmal B | ANYbotics | 12 | MJCF |
216217
| `anymal_b_description` | ANYmal B | ANYbotics | 12 | URDF |

robot_descriptions/_descriptions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def has_urdf(self) -> bool:
8181
"anymal_c_mj_description": Description(Format.MJCF),
8282
"atlas_drc_description": Description(Format.URDF),
8383
"atlas_v4_description": Description(Format.URDF),
84+
"b1_description": Description(Format.URDF),
8485
"barrett_hand_description": Description(Format.URDF),
8586
"baxter_description": Description(Format.URDF),
8687
"bolt_description": Description(Format.URDF),
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
"""
19+
B1 description.
20+
"""
21+
22+
from os import path as _path
23+
24+
from ._cache import clone_to_cache as _clone_to_cache
25+
26+
REPOSITORY_PATH: str = _clone_to_cache("unitree_ros")
27+
28+
PACKAGE_PATH: str = _path.join(REPOSITORY_PATH, "robots", "b1_description")
29+
30+
URDF_PATH: str = _path.join(PACKAGE_PATH, "urdf", "b1.urdf")

0 commit comments

Comments
 (0)