def getReward(self):
        if self.env.glasSum >= 2: grip = 1000.0
        else: grip = 0.0
        if self.env.tableSum > 0: self.tableFlag = -1.0
        else: tableFlag = 0.0
        self.dist[3] = 0.0
        self.dist[8] = 0.0
        dis = ((self.dist[:3] ** 2).sum()+0.1)/100.0
        nig = 10.0/((self.dist[3:] ** 2).sum()+0.1)
        if self.env.stepCounter == self.epiLen: print(("Grip:", grip, "Dis:", dis, "Nig:", nig, "Table:", self.tableFlag))
        return (10 + grip + nig + dis + self.tableFlag) / float(self.epiLen) #-dis
        #else:
        #    return (25.0 - dis) / float(self.epiLen) + (grip / nig - float(self.env.tableSum)) * 0.1 #+self.grepRew (10.0-dis)/float(self.epiLen)+

#Learn to grasp a plate at a fixed location
dataset/ETHPy150Open pybrain/pybrain/pybrain/rl/environments/ode/tasks/ccrl.py/CCRLGlasTask.getReward/swapped operands of `/`