mirror of
https://github.com/wassname/kair_algorithms_draft.git
synced 2026-10-29 13:10:50 +08:00
Fix episode unreset bug (#62)
This commit is contained in:
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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user