Sets the state of the environment at the start of each episode. Called by `control.Environment` at the start of each episode *within* `physics.reset_context()` (see the documentation for `base.Physics`). Args: physics: Instance of `Physics`.
(self, physics)
| 276 | |
| 277 | @abc.abstractmethod |
| 278 | def initialize_episode(self, physics): |
| 279 | """Sets the state of the environment at the start of each episode. |
| 280 | |
| 281 | Called by `control.Environment` at the start of each episode *within* |
| 282 | `physics.reset_context()` (see the documentation for `base.Physics`). |
| 283 | |
| 284 | Args: |
| 285 | physics: Instance of `Physics`. |
| 286 | """ |
| 287 | |
| 288 | @abc.abstractmethod |
| 289 | def before_step(self, action, physics): |