Calculates the reward signal given the physics state. Args: physics: A Physics object. Returns: A float
(self, physics)
| 275 | |
| 276 | @abc.abstractmethod |
| 277 | def get_reward(self, physics): |
| 278 | """Calculates the reward signal given the physics state. |
| 279 | |
| 280 | Args: |
| 281 | physics: A Physics object. |
| 282 | |
| 283 | Returns: |
| 284 | A float |
| 285 | """ |
| 286 | raise NotImplementedError |
| 287 | |
| 288 | def should_terminate_episode(self, physics): # pylint: disable=unused-argument |
| 289 | """Determines whether the episode should terminate given the physics state. |