(self)
Returns the observation by concatenating the history buffer.
Returns the observation by concatenating the history buffer.
Returns the observation by concatenating the history buffer .
def get_observation(self) -> _ARRAY:
    """Returns the observation by concatenating the history buffer."""
    if self._append_history_axis:
      return np.stack(self._history_buffer, axis=-1)
    else:
      return np.concatenate(self._history_buffer)
def get_observation ( self ) -> _ARRAY : if self . _append_history_axis : return np . stack ( self . _history_buffer , axis = - 1 ) else : return np . concatenate ( self . _history_buffer )