basic_utils/env_wrapper.py
def reset(self):
        """
        Reset the environment.

        Return:
            history_normalized: the concatenated and normalized observations
            info: a dict containing the raw observations
        """
        ob = self.env.reset()
        self.timestep = 0
        for i in range(self.consec_frames):
            self.states.append(ob)
        history = np.concatenate(self.states, axis=-1)
        history_normalized = self._normalize_ob(history)
        history_normalized = np.append(history_normalized, [self.timestep])

        info = {"observation_raw": history}
        return history_normalized, info

        Reset the environment.

        Return:
            history_normalized: the concatenated and normalized observations
            info: a dict containing the raw observations
        
Reset the environment.
Return:
history_normalized: the concatenated and normalized observations
info: a dict containing the raw observations
Reset the environment . Return : history_normalized : the concatenated and normalized observations info : a dict containing the raw observations
def reset(self):
        ob = self.env.reset()
        self.timestep = 0
        for i in range(self.consec_frames):
            self.states.append(ob)
        history = np.concatenate(self.states, axis=-1)
        history_normalized = self._normalize_ob(history)
        history_normalized = np.append(history_normalized, [self.timestep])
        info = {"observation_raw": history}
        return history_normalized, info
def reset ( self ) : ob = self . env . reset ( ) self . timestep = 0 for i in range ( self . consec_frames ) : self . states . append ( ob ) history = np . concatenate ( self . states , axis = - 1 ) history_normalized = self . _normalize_ob ( history ) history_normalized = np . append ( history_normalized , [ self . timestep ] ) info = { "observation_raw" : history } return history_normalized , info
Reset the environment.
Reset the environment .
"""
        Reset the environment.

        Return:
            history_normalized: the concatenated and normalized observations
            info: a dict containing the raw observations
        """
self