Applies the modifications introduced by performing the move operation.
(self, paused)
| 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): |
no outgoing calls