Skip to content
This repository has been archived by the owner on Mar 17, 2019. It is now read-only.

Commit

Permalink
Fix monitor start bug #120
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Hansen committed Apr 12, 2018
1 parent ea8c198 commit 1ed9399
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/gazebo_cartpole/gazebo_cartpole_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def run_episode(env, policy_grad, value_grad, sess):
outdir = '/tmp/gazebo_gym_experiments'
plotter = LivePlot(outdir)
import time
#env.monitor.start('cartpole-hill/', force=True)
env = gym.wrappers.Monitor(env, outdir, force=True)
policy_grad = policy_gradient()
value_grad = value_gradient()
sess = tf.InteractiveSession()
Expand All @@ -169,5 +169,4 @@ def run_episode(env, policy_grad, value_grad, sess):
reward = run_episode(env, policy_grad, value_grad, sess)
t += reward
print (t / 1000)
#env.monitor.close()
print ("END!")

0 comments on commit 1ed9399

Please sign in to comment.