From 524bbf352ee1ad381c7d1597f506046bf311bdd4 Mon Sep 17 00:00:00 2001 From: Hongyi Zhou Date: Thu, 27 Oct 2022 02:01:51 +0200 Subject: [PATCH] delete the replanning times counter --- fancy_gym/black_box/black_box_wrapper.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fancy_gym/black_box/black_box_wrapper.py b/fancy_gym/black_box/black_box_wrapper.py index 6ba6cd9..0cd4ae6 100644 --- a/fancy_gym/black_box/black_box_wrapper.py +++ b/fancy_gym/black_box/black_box_wrapper.py @@ -187,9 +187,8 @@ class BlackBoxWrapper(gym.ObservationWrapper): if self.render_kwargs: self.env.render(**self.render_kwargs) - if done or (self.replan_counts < self.max_replan_times - and self.replanning_schedule(self.current_pos, self.current_vel, obs, c_action, - t + 1 + self.current_traj_steps)): + if done or self.replanning_schedule(self.current_pos, self.current_vel, obs, c_action, + t + 1 + self.current_traj_steps): if self.desired_conditioning: self.condition_pos = pos self.condition_vel = vel