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

Method apply

dm_control/viewer/renderer.py:268–276  ·  view source on GitHub ↗

Applies the modifications introduced by performing the move operation.

(self, paused)

Source from the content-addressed store, hash-verified

266
267 @contextlib.contextmanager
268 def apply(self, paused):
269 """Applies the modifications introduced by performing the move operation."""
270 mujoco.mjv_applyPerturbPose(self._model.ptr, self._data.ptr,
271 self._perturb.ptr, int(paused))
272 if not paused:
273 mujoco.mjv_applyPerturbForce(self._model.ptr, self._data.ptr,
274 self._perturb.ptr)
275 yield
276 self._data.xfrc_applied[self._perturb.select] = 0
277
278 @property
279 def ptr(self):

Calls

no outgoing calls