From d0b74b003614b54612a3a2afba16800fb0e67092 Mon Sep 17 00:00:00 2001 From: Jaeyoung Lee <jaeyoung.lee@uwaterloo.ca> Date: Thu, 24 Jan 2019 13:29:59 -0500 Subject: [PATCH] Bugfix in EpisodicEnvBase (related to initiation_condition of maneuvers) --- env/env_base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/env/env_base.py b/env/env_base.py index 4a8b9a5..3786c34 100644 --- a/env/env_base.py +++ b/env/env_base.py @@ -176,8 +176,8 @@ class EpisodicEnvBase(GymCompliantEnvBase): if not self._LTL_preconditions_enable: return False - for LTL_precondition in self._LTL_preconditions: - if LTL_precondition.result == Parser.FALSE: + for LTL in self._LTL_preconditions: + if LTL.enabled and (LTL.result == Parser.FALSE): return True return False -- GitLab