def getReward(self):
        if 2 >= self.env.glasSum: grip = 1.0
        else: grip = 0.0
        if self.env.tableSum > 0: self.tableFlag = 10.0
        self.dist[3] = 0.0
        self.dist[8] = 0.0
        dis = sqrt((self.dist ** 2).sum())
        nig = (abs(self.dist[4]) + 1.0)
        if self.count == self.epiLen or self.count == self.epiLen / 5 or self.count == 2 * self.epiLen / 5 or self.count == 3 * self.epiLen / 5 or self.count == 4 * self.epiLen / 5:
            return 25.0 + grip / nig - dis - self.tableFlag #/nig
        else:
            return (25.0 - dis) / float(self.epiLen) + (grip / nig - float(self.env.tableSum)) * 0.1 #/nig

#Learn to grasp a glas at random locations
dataset/ETHPy150Open pybrain/pybrain/pybrain/rl/environments/ode/tasks/ccrl.py/CCRLGlasVarTask.getReward/swapped operands of `>=`