Fix episode unreset bug (#62)

This commit is contained in:
Whi Kwon authored and Donghyeon Kim committed 2019-05-30 22:39:44 +09:00
1 parent 47593785ad
commit 09b1f2e9a8
1 file changed
+3 -2
@@ -76,10 +76,11 @@ class OpenManipulatorReacherEnv(gym.Env):
if self.env_mode == "sim":
self.reward = self.compute_reward()
# TODO: Add termination condition
# if self.ros_interface.check_for_termination():
# self.done = True
# if self.ros_interface.check_for_termination():
# self.done = True
if self.ros_interface.check_for_success():
self.done = True
self.episode_steps = 0
obs = self.ros_interface.get_observation()