fix distance reward calculation

This commit is contained in:
Bart Moyaers committed 2019-07-02 17:00:11 +02:00
1 parent 404575e9ba
commit 3bb842f650
1 file changed
+1 -1
@@ -403,7 +403,7 @@ class PyBulletDeepMimicEnv(Env):
if self.goal.is_hit:
return 1
else:
goalPos = self.goal.goal_data
goalPos = self.goal.world_pos
distanceSquared = sum([(x - y)**2 for (x, y) in zip(goalPos, linkPos)])
return math.exp(-4*distanceSquared)