Skip to content

Commit 2cca706

Browse files
MuJoCo example: try mj_description suffix rather than description
1 parent ba1b7b9 commit 2cca706

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ All notable changes to this project will be documented in this file.
88

99
- Description: Kinova Gen3
1010

11+
### Changed
12+
13+
- MuJoCo examples: try ``mj_description`` suffix rather than ``description``
14+
1115
## [0.6.0] - 2022/09/28
1216

1317
### Added

examples/load_in_mujoco.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@
3333
try:
3434
model = load_robot_description(args.name)
3535
except ModuleNotFoundError:
36-
model = load_robot_description(f"{args.name}_description")
36+
model = load_robot_description(f"{args.name}_mj_description")
3737

3838
print(f"Robot successfully loaded with model={model}")

examples/show_in_mujoco.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
try:
4444
model = load_robot_description(args.name)
4545
except ModuleNotFoundError:
46-
model = load_robot_description(f"{args.name}_description")
46+
model = load_robot_description(f"{args.name}_mj_description")
4747

4848
data = mujoco.MjData(model)
4949
viewer = mujoco_viewer.MujocoViewer(model, data)

0 commit comments

Comments
 (0)