Skip to content

Commit fd7db24

Browse files
stephane-caronStéphane Caron
authored andcommitted
Add Kinova Jaco Gen3 description
1 parent 2bc9431 commit fd7db24

File tree

6 files changed

+41
-4
lines changed

6 files changed

+41
-4
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: Gen3
910
- Description: TriFingerEdu
1011

1112
### Changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,9 @@ The DOF column denotes the number of actuated degrees of freedom.
127127
| Name | Robot | Maker | DOF | Format |
128128
|-------------------------------|-----------------------|--------------------------|-----|------------|
129129
| `edo_description` | e.DO | Comau | 6 | URDF |
130-
| `gen2_description` | Gen2 | Kinova | 6 | URDF |
131-
| `gen3_mj_description` | Gen3 | Kinova | 7 | MJCF |
130+
| `gen2_description` | Gen2 (Jaco) | Kinova | 6 | URDF |
131+
| `gen3_description` | Gen3 (Jaco) | Kinova | 6 | URDF |
132+
| `gen3_mj_description` | Gen3 (Jaco) | Kinova | 7 | MJCF |
132133
| `iiwa_description` | iiwa | KUKA | 7 | URDF |
133134
| `panda_description` | Panda | Franka Emika | 8 | URDF |
134135
| `panda_mj_description` | Panda | Franka Emika | 8 | MJCF |

robot_descriptions/_descriptions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def has_urdf(self) -> bool:
8484
"fetch_description": Description(Format.URDF),
8585
"finger_edu_description": Description(Format.URDF),
8686
"gen2_description": Description(Format.URDF),
87+
"gen3_description": Description(Format.URDF),
8788
"gen3_mj_description": Description(Format.MJCF),
8889
"ginger_description": Description(Format.URDF),
8990
"go1_description": Description(Format.URDF),

robot_descriptions/gen2_description.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# See the License for the specific language governing permissions and
1616
# limitations under the License.
1717

18-
"""Gen2 description."""
18+
"""Kinova Jaco Gen2 description."""
1919

2020
from os import getenv as _getenv
2121
from os import path as _path
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
"""Kinova Jaco Gen3 description."""
19+
20+
from os import getenv as _getenv
21+
from os import path as _path
22+
23+
from ._cache import clone_to_cache as _clone_to_cache
24+
25+
REPOSITORY_PATH: str = _clone_to_cache(
26+
"differentiable-robot-model",
27+
commit=_getenv("ROBOT_DESCRIPTION_COMMIT", None),
28+
)
29+
30+
PACKAGE_PATH: str = _path.join(
31+
REPOSITORY_PATH, "diff_robot_data", "kinova_description"
32+
)
33+
34+
URDF_PATH: str = _path.join(PACKAGE_PATH, "urdf", "jaco.urdf")

robot_descriptions/gen3_mj_description.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# See the License for the specific language governing permissions and
1616
# limitations under the License.
1717

18-
"""Gen3 description."""
18+
"""Kinova Jaco Gen3 description."""
1919

2020
from os import getenv as _getenv
2121
from os import path as _path

0 commit comments

Comments
 (0)