Skip to content

Commit 0942bed

Browse files
committed
changed return to tuple intead of 4d-matrix
1 parent 68ac962 commit 0942bed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mujoco_viewer/mujoco_viewer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def read_pixels(self, camid=None,depth=False):
301301
depth_img = np.zeros((shape[1], shape[0], 1), dtype=np.float32)
302302
mujoco.mjr_readPixels(img, None, self.viewport, self.ctx)
303303
mujoco.mjr_readPixels(None, depth_img, self.viewport, self.ctx)
304-
return np.dstack((np.flipud(img),np.flipud(depth_img)))
304+
return (np.flipud(img),np.flipud(depth_img))
305305
else:
306306
img = np.zeros((shape[1], shape[0], 3), dtype=np.uint8)
307307
mujoco.mjr_readPixels(img, None, self.viewport, self.ctx)

src/mujoco-python-viewer

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 19c95924c3f36bfcc6a8977dcf3649281d321984
1+
Subproject commit 68ac962f0fc78cfd3e08d51a49b737a003ab5393

0 commit comments

Comments
 (0)