For some observations, the sensing of the FullSensor with added noise might result in an observation to be outside the observation space. This caused the environment to trigger a terminated statement.
After adding the noise, the observation should be clipped by the limits of the observation space.
|
observation[mask_item] = np.random.normal( |
|
np.array(value), self._variance |
|
).astype("float32") |