Skip to content

Commit ce55c57

Browse files
Merge pull request #64 from kevinzakka/go1-mj-fix
Minor unitree model fixes.
2 parents 60e17bc + 381822b commit ce55c57

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
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+
- Switch MuJoCo models of the Unitree Go1, Go2 and H1 to MuJoCo Menagerie.
910
- Description: Allegro Hand V3 (MJCF)
1011
- Description: ALOHA 2 (MJCF)
1112
- Description: Bitcraze Crazyflie 2.0 (MJCF)

robot_descriptions/go1_mj_description.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,18 @@
44
# SPDX-License-Identifier: Apache-2.0
55
# Copyright 2022 Stéphane Caron
66

7-
"""Go1 MJCF description."""
7+
"""Unitree Go1 MJCF description."""
88

99
from os import getenv as _getenv
1010
from os import path as _path
1111

1212
from ._cache import clone_to_cache as _clone_to_cache
1313

1414
REPOSITORY_PATH: str = _clone_to_cache(
15-
"unitree_mujoco",
15+
"mujoco_menagerie",
1616
commit=_getenv("ROBOT_DESCRIPTION_COMMIT", None),
1717
)
1818

19-
PACKAGE_PATH: str = _path.join(REPOSITORY_PATH, "data", "go1")
19+
PACKAGE_PATH: str = _path.join(REPOSITORY_PATH, "unitree_go1")
2020

21-
MJCF_PATH: str = _path.join(PACKAGE_PATH, "xml", "go1.xml")
22-
23-
URDF_PATH: str = _path.join(PACKAGE_PATH, "urdf", "go1.urdf")
21+
MJCF_PATH: str = _path.join(PACKAGE_PATH, "go1.xml")

robot_descriptions/go2_mj_description.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# SPDX-License-Identifier: Apache-2.0
55
# Copyright 2022 Stéphane Caron
66

7-
"""Go1 MJCF description."""
7+
"""Unitree Go2 MJCF description."""
88

99
from os import getenv as _getenv
1010
from os import path as _path

robot_descriptions/h1_mj_description.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44
# SPDX-License-Identifier: Apache-2.0
55
# Copyright 2022 Stéphane Caron
66

7-
"""Panda MJCF description."""
7+
"""Unitree H1 MJCF description."""
88

99
from os import getenv as _getenv
1010
from os import path as _path
1111

1212
from ._cache import clone_to_cache as _clone_to_cache
1313

1414
REPOSITORY_PATH: str = _clone_to_cache(
15-
"unitree_ros",
15+
"mujoco_menagerie",
1616
commit=_getenv("ROBOT_DESCRIPTION_COMMIT", None),
1717
)
1818

19-
PACKAGE_PATH: str = _path.join(REPOSITORY_PATH, "robots", "h1_description")
19+
PACKAGE_PATH: str = _path.join(REPOSITORY_PATH, "unitree_h1")
2020

21-
MJCF_PATH: str = _path.join(PACKAGE_PATH, "mjcf", "h1.xml")
21+
MJCF_PATH: str = _path.join(PACKAGE_PATH, "h1.xml")

0 commit comments

Comments
 (0)