def getObservation(self):
        """ inold, seeold, black, seenew, innew """
        res = zeros(5)
        if self.env.perseus == self.env.goal:
            res[4] = 1
        elif self.env.perseus == self.env.initPos[0]:
            res[0] = 1
        elif self.env.perseus[1] == 3:
            if random() > 0.7:
                res[self.env.perseusDir] = 1
            else:
                res[(self.env.perseusDir + 2) % 4] = 1
        else:
            res[(self.env.perseusDir + 2) % 4] = 1
        return res
dataset/ETHPy150Open pybrain/pybrain/pybrain/rl/environments/mazes/tasks/shuttle.py/ShuttleDocking.getObservation/original