Restarts the episode, resetting environment, model, and data.
(self)
| 288 | self._on_reload(zoom_to_scene=zoom_to_scene) |
| 289 | |
| 290 | def _restart_runtime(self): |
| 291 | """Restarts the episode, resetting environment, model, and data.""" |
| 292 | if self._runtime: |
| 293 | self._runtime.stop() |
| 294 | self._load_environment(zoom_to_scene=False) |
| 295 | |
| 296 | if self._policy: |
| 297 | if hasattr(self._policy, 'reset'): |
| 298 | self._policy.reset() |
| 299 | |
| 300 | def _advance_simulation(self): |
| 301 | if self._runtime: |