Skip to content

Commit

Permalink
fixup! Fixed deprecated functions for Mujoco interface
Browse files Browse the repository at this point in the history
  • Loading branch information
studywolf committed Nov 19, 2023
1 parent cc35737 commit 0f6e476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion abr_control/interfaces/mujoco.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ def connect(self, joint_names=None, camera_id=-1):
if camera_id > -1:
self.viewer.cam.fixedcamid = camera_id
self.viewer.cam.type = mujoco.mjtCamera.mjCAMERA_FIXED
glfw.make_context_current(self.viewer.window)

if self.offscreen_render_params is not None:
self.offscreen = mujoco_viewer.MujocoViewer(
Expand All @@ -142,7 +143,6 @@ def connect(self, joint_names=None, camera_id=-1):
# set the default display to skip frames to speed things up
self.offscreen._render_every_frame = False

glfw.make_context_current(self.viewer.window)
print("MuJoCo session created")

def disconnect(self):
Expand Down

0 comments on commit 0f6e476

Please sign in to comment.