Skip to content

Commit a253ce6

Browse files
stephane-caronStéphane Caron
authored andcommitted
Add Z1 description
1 parent 93e22e2 commit a253ce6

File tree

4 files changed

+33
-0
lines changed

4 files changed

+33
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file.
77
### Added
88

99
- Description: B1
10+
- Description: Z1
1011

1112
### Changed
1213

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ The DOF column denotes the number of actuated degrees of freedom.
133133
| `ur3_description` | UR3 | Universal Robots | 6 | URDF |
134134
| `ur5_description` | UR5 | Universal Robots | 6 | URDF |
135135
| `ur5e_mj_description` | UR5e | Universal Robots | 6 | MJCF |
136+
| `z1_description` | Z1 | UNITREE Robotics | 6 | URDF |
136137

137138
### Bipeds
138139

robot_descriptions/_descriptions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,5 @@ def has_urdf(self) -> bool:
132132
"ur5e_mj_description": Description(Format.MJCF),
133133
"valkyrie_description": Description(Format.URDF),
134134
"yumi_description": Description(Format.URDF),
135+
"z1_description": Description(Format.URDF),
135136
}

robot_descriptions/z1_description.py

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+
Z1 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", "z1_description")
29+
30+
URDF_PATH: str = _path.join(PACKAGE_PATH, "xacro", "z1.urdf")

0 commit comments

Comments
 (0)