|
| 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 | +Robonaut 2 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("nasa-urdf-robots") |
| 27 | + |
| 28 | +PACKAGE_PATH: str = _path.join(REPOSITORY_PATH, "r2_description") |
| 29 | + |
| 30 | +URDF_PATH: str = _path.join( |
| 31 | + PACKAGE_PATH, "robots", "r2c_sim_full_control.urdf.urdf" |
| 32 | +) |
| 33 | + |
| 34 | +# Description-specific paths |
| 35 | + |
| 36 | +URDF_PATH_B: str = _path.join(PACKAGE_PATH, "robots", "r2b.urdf") |
| 37 | +URDF_PATH_C1: str = _path.join(PACKAGE_PATH, "robots", "r2c1.urdf") |
| 38 | +URDF_PATH_C5: str = _path.join(PACKAGE_PATH, "robots", "r2c5.urdf") |
| 39 | +URDF_PATH_C6: str = _path.join(PACKAGE_PATH, "robots", "r2c6.urdf") |
| 40 | + |
| 41 | +URDF_PATH_B_CONTROL: str = _path.join( |
| 42 | + PACKAGE_PATH, "robots", "r2b_control.urdf" |
| 43 | +) |
| 44 | +URDF_PATH_C1_CONTROL: str = _path.join( |
| 45 | + PACKAGE_PATH, "robots", "r2c1_control.urdf" |
| 46 | +) |
| 47 | +URDF_PATH_C5_CONTROL: str = _path.join( |
| 48 | + PACKAGE_PATH, "robots", "r2c5_control.urdf" |
| 49 | +) |
| 50 | +URDF_PATH_C6_CONTROL: str = _path.join( |
| 51 | + PACKAGE_PATH, "robots", "r2c6_control.urdf" |
| 52 | +) |
| 53 | + |
| 54 | +URDF_PATH_B_DYNAMICS: str = _path.join( |
| 55 | + PACKAGE_PATH, "robots", "r2b_dynamics.urdf" |
| 56 | +) |
| 57 | +URDF_PATH_C1_DYNAMICS: str = _path.join( |
| 58 | + PACKAGE_PATH, "robots", "r2c1_dynamics.urdf" |
| 59 | +) |
| 60 | +URDF_PATH_C5_DYNAMICS: str = _path.join( |
| 61 | + PACKAGE_PATH, "robots", "r2c5_dynamics.urdf" |
| 62 | +) |
| 63 | +URDF_PATH_C6_DYNAMICS: str = _path.join( |
| 64 | + PACKAGE_PATH, "robots", "r2c6_dynamics.urdf" |
| 65 | +) |
| 66 | + |
| 67 | +URDF_PATH_C_SIM_FULL_CONTROL: str = _path.join( |
| 68 | + PACKAGE_PATH, "robots", "r2c_sim_full_control.urdf" |
| 69 | +) |
| 70 | +URDF_PATH_C_SIM_FULL_DYNAMICS: str = _path.join( |
| 71 | + PACKAGE_PATH, "robots", "r2c_sim_full_dynamics.urdf" |
| 72 | +) |
| 73 | +URDF_PATH_C_SIM_LEGS_CONTROL: str = _path.join( |
| 74 | + PACKAGE_PATH, "robots", "r2c_sim_legs_control.urdf" |
| 75 | +) |
| 76 | +URDF_PATH_C_SIM_LEGS_DYNAMICS: str = _path.join( |
| 77 | + PACKAGE_PATH, "robots", "r2c_sim_legs_dynamics.urdf" |
| 78 | +) |
| 79 | +URDF_PATH_C_SIM_UPPERBODY_CONTROL: str = _path.join( |
| 80 | + PACKAGE_PATH, "robots", "r2c_sim_upperbody_control.urdf" |
| 81 | +) |
| 82 | +URDF_PATH_C_SIM_UPPERBODY_DYNAMICS: str = _path.join( |
| 83 | + PACKAGE_PATH, "robots", "r2c_sim_upperbody_dynamics.urdf" |
| 84 | +) |
0 commit comments