forgot one "isAlive" to change
This commit is contained in:
committed by
GitHub
parent
50b5edd7b5
commit
6adea4964f
@@ -64,7 +64,7 @@ class WalkerBaseBulletEnv(MJCFBaseBulletEnv):
|
|||||||
state = self.robot.calc_state() # also calculates self.joints_at_limit
|
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
|
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():
|
if not np.isfinite(state).all():
|
||||||
print("~INF~", state)
|
print("~INF~", state)
|
||||||
done = True
|
done = True
|
||||||
|
|||||||
Reference in New Issue
Block a user