def get_viewer(self): if self.viewer is None: self.viewer = MjViewer(init_width=25, init_height=25) self.viewer.start() self.viewer.set_model(self.model) return self.viewer
def get_viewer(self): if self.viewer is None: self.viewer = MjViewer() self.viewer.start() self.viewer.set_model(self.model) return self.viewer
def _setup_renderer(self): self.viewer = MjViewer(visible=True, init_width=self._imSz, init_height=self._imSz) self.viewer.start() self.viewer.set_model(self.model)