Modifies colors according to the reward.
(self, physics)
| 77 | physics.set_control(action) |
| 78 | |
| 79 | def after_step(self, physics): |
| 80 | """Modifies colors according to the reward.""" |
| 81 | if self._visualize_reward: |
| 82 | reward = np.clip(self.get_reward(physics), 0.0, 1.0) |
| 83 | _set_reward_colors(physics, reward) |
| 84 | |
| 85 | @property |
| 86 | def visualize_reward(self): |
no test coverage detected