Skip to content

Commit 864ecef

Browse files
stephane-caronStéphane Caron
authored andcommitted
Add NAO description
1 parent 5d2e5ca commit 864ecef

File tree

5 files changed

+58
-0
lines changed

5 files changed

+58
-0
lines changed

CHANGELOG.md

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

77
### Added
88

9+
- Description: NAO
910
- Description: Robonaut 2
1011
- Description: Valkyrie
1112
- Loader: MuJoCo

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ Available robot descriptions ([gallery](https://github.com/robot-descriptions/aw
126126
| Laikago | UNITREE Robotics | MJCF, URDF | `laikago_description` |
127127
| Mini Cheetah | MIT | URDF | `mini_cheetah_description` |
128128
| Minitaur | Ghost Robotics | URDF | `minitaur_description` |
129+
| NAO | SoftBank Robotics | URDF | `nao_description` |
129130
| Panda | Franka Emika | MJCF | `panda_mj_description` |
130131
| Panda | Franka Emika | URDF | `panda_description` |
131132
| Pepper | SoftBank Robotics | URDF | `pepper_description` |

robot_descriptions/_descriptions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ def has_urdf(self) -> bool:
102102
"laikago_description": Description(Format.URDF),
103103
"mini_cheetah_description": Description(Format.URDF),
104104
"minitaur_description": Description(Format.URDF),
105+
"nao_description": Description(Format.URDF),
105106
"panda_description": Description(Format.URDF),
106107
"panda_mj_description": Description(Format.MJCF),
107108
"pepper_description": Description(Format.URDF),

robot_descriptions/_repositories.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ class Repository:
121121
commit="2665e9bc0f476e5f505ff929d758ed36f8618fa8",
122122
cache_path="mujoco_menagerie",
123123
),
124+
"nao_robot": Repository(
125+
url="https://github.com/ros-naoqi/nao_robot.git",
126+
commit="67476469a1371b00b17538eb6ea336367ece7d44",
127+
cache_path="nao_robot",
128+
),
124129
"nasa-urdf-robots": Repository(
125130
url="https://github.com/gkjohnson/nasa-urdf-robots.git",
126131
commit="54cdeb1dbfb529b79ae3185a53e24fce26e1b74b",
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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+
NAO 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("nao_robot")
27+
28+
PACKAGE_PATH: str = _path.join(REPOSITORY_PATH, "nao_description")
29+
30+
URDF_PATH: str = _path.join(
31+
PACKAGE_PATH, "urdf", "naoV50_generated_urdf", "nao.urdf"
32+
)
33+
34+
# Description-specific paths
35+
36+
URDF_PATH_V32: str = _path.join(
37+
PACKAGE_PATH, "urdf", "naoV32_generated_urdf", "nao.urdf"
38+
)
39+
40+
URDF_PATH_V33: str = _path.join(
41+
PACKAGE_PATH, "urdf", "naoV33_generated_urdf", "nao.urdf"
42+
)
43+
44+
URDF_PATH_V40: str = _path.join(
45+
PACKAGE_PATH, "urdf", "naoV40_generated_urdf", "nao.urdf"
46+
)
47+
48+
URDF_PATH_V50: str = _path.join(
49+
PACKAGE_PATH, "urdf", "naoV50_generated_urdf", "nao.urdf"
50+
)

0 commit comments

Comments
 (0)