added ogail script and splitting up feasability on next line to avoid calculating it unnecessarily (though it might be fine as is)
This commit is contained in:
@@ -249,9 +249,9 @@ class SafeOptionsEnv(OptionsEnv):
|
||||
if d:
|
||||
break
|
||||
|
||||
if self.abort_unsafe_collision_method is not None and \
|
||||
not feasible(self.env, plan[k:], method=self.abort_unsafe_collision_method):
|
||||
break
|
||||
if self.abort_unsafe_collision_method is not None:
|
||||
if not feasible(self.env, plan[k:], method=self.abort_unsafe_collision_method):
|
||||
break
|
||||
|
||||
n_steps = k + 1
|
||||
return observations, actions, rewards, env_done, plan_done, infos, n_steps
|
||||
|
||||
Reference in New Issue
Block a user