Updates geometry used for rendering. Args: scene_option: A custom `wrapper.MjvOption` instance to use to render the scene instead of the default. If None, will use the default.
(self, scene_option=None)
| 808 | return image @ focal @ rotation @ translation |
| 809 | |
| 810 | def update(self, scene_option=None): |
| 811 | """Updates geometry used for rendering. |
| 812 | |
| 813 | Args: |
| 814 | scene_option: A custom `wrapper.MjvOption` instance to use to render |
| 815 | the scene instead of the default. If None, will use the default. |
| 816 | """ |
| 817 | scene_option = scene_option or self._scene_option |
| 818 | mujoco.mjv_updateScene(self._physics.model.ptr, self._physics.data.ptr, |
| 819 | scene_option.ptr, self._perturb.ptr, |
| 820 | self._render_camera.ptr, mujoco.mjtCatBit.mjCAT_ALL, |
| 821 | self._scene.ptr) |
| 822 | |
| 823 | def _render_on_gl_thread(self, depth, overlays): |
| 824 | """Performs only those rendering calls that require an OpenGL context.""" |
no outgoing calls