Skip to content

Commit

Permalink
Update viewer.py to work with MuJoCo 2.3.7.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinzakka committed Aug 3, 2023
1 parent f9d074f commit a0e13d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion robopianist/viewer/viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@
_NEXT_LABELING_MODE = user_input.KEY_F7
_PRINT_CAMERA = user_input.KEY_F11
_VISUALIZATION_FLAGS = user_input.Range(
[ord(functions.mjVISSTRING[i][2]) for i in range(0, mujoco.mjtVisFlag.mjNVISFLAG)]
[
ord(functions.mjVISSTRING[i][2]) if functions.mjVISSTRING[i][2] else 0
for i in range(0, mujoco.mjtVisFlag.mjNVISFLAG)
]
)
_GEOM_GROUPS = user_input.Range(
[i + ord("0") for i in range(min(_NUM_GROUP_KEYS, mujoco.mjNGROUP))]
Expand Down

0 comments on commit a0e13d4

Please sign in to comment.