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

Method move

dm_control/viewer/renderer.py:478–484  ·  view source on GitHub ↗

Moves the camera around the scene.

(self, action, viewport_offset)

Source from the content-addressed store, hash-verified

476 self._camera.distance = distance
477
478 def move(self, action, viewport_offset):
479 """Moves the camera around the scene."""
480 # Not checking the validity of arguments on purpose. This method is designed
481 # to be called very often, so in order to avoid the overhead, all arguments
482 # are assumed to be valid.
483 mujoco.mjv_moveCamera(self._model.ptr, action, viewport_offset[0],
484 viewport_offset[1], self._scene.ptr, self._camera.ptr)
485
486 def new_perturbation(self, body_id):
487 """Creates a proxy that allows to manipulate the specified object."""

Callers 3

test_moving_cameraMethod · 0.80
on_moveMethod · 0.80
zoomMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_moving_cameraMethod · 0.64