Skip to content

Commit

Permalink
BUGFIX: Camera index 0 will be out of range if no camera is modelled.…
Browse files Browse the repository at this point in the history
… Defaulting to free camera
  • Loading branch information
vikashplus committed Mar 9, 2024
1 parent 3f74d12 commit 4898218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion robohive/renderer/mj_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def render_offscreen(self,
A numpy array of the pixels.
"""
if camera_id == None:
camera_id = 0
camera_id = -1
if self._renderer is None:
self.setup_renderer(self._sim.model.ptr, width=width, height=height)

Expand Down

0 comments on commit 4898218

Please sign in to comment.