MCPcopy Create free account
hub / github.com/google-deepmind/dm_control / update

Method update

dm_control/mujoco/engine.py:810–821  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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."""

Callers 15

matricesMethod · 0.95
renderMethod · 0.95
selectMethod · 0.95
copy_intoMethod · 0.45
__dir__Method · 0.45
get_assetsMethod · 0.45
_download_into_fileFunction · 0.45
comic_reward_fnFunction · 0.45
initialize_episodeMethod · 0.45
after_compileMethod · 0.45
after_stepMethod · 0.45
datasets.pyFile · 0.45

Calls

no outgoing calls

Tested by 1