forgot one "isAlive" to change

This commit is contained in:
Alexis David Jacq
2018-06-16 14:00:05 +02:00
committed by GitHub
parent 50b5edd7b5
commit 6adea4964f

View File

@@ -64,7 +64,7 @@ class WalkerBaseBulletEnv(MJCFBaseBulletEnv):
state = self.robot.calc_state() # also calculates self.joints_at_limit
self._alive = float(self.robot.alive_bonus(state[0]+self.robot.initial_z, self.robot.body_rpy[1])) # state[0] is body height above ground, body_rpy[1] is pitch
done = self._isAlive()
done = self._isDone()
if not np.isfinite(state).all():
print("~INF~", state)
done = True