Skip to content

Commit

Permalink
Fix timeout, ProblemKind supported updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Alee08 committed Oct 27, 2023
1 parent c0c8903 commit 3dd4049
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def run(self):

setup(
name="up_fmap",
version="0.0.8",
version="0.0.9",
description="up_fmap",
author="Alejandro Torreño, Eva Onaindia and Oscar Sapena",
author_email="[email protected]",
Expand Down
6 changes: 2 additions & 4 deletions up_fmap/fmap_planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,7 @@ def supported_kind() -> "ProblemKind":
supported_kind.set_typing("FLAT_TYPING")
supported_kind.set_typing("HIERARCHICAL_TYPING")
supported_kind.set_conditions_kind("NEGATIVE_CONDITIONS")
supported_kind.set_conditions_kind("DISJUNCTIVE_CONDITIONS")
supported_kind.set_conditions_kind("EQUALITIES")
supported_kind.set_conditions_kind("EXISTENTIAL_CONDITIONS")
supported_kind.set_conditions_kind("UNIVERSAL_CONDITIONS")
supported_kind.set_effects_kind("CONDITIONAL_EFFECTS")
supported_kind.set_fluents_type("OBJECT_FLUENTS")
return supported_kind

Expand Down Expand Up @@ -206,6 +202,8 @@ def _solve(
plan = None

if timeout_occurred and retval != 0:
process.terminate()
process.wait()
return PlanGenerationResult(
PlanGenerationResultStatus.TIMEOUT,
plan=plan,
Expand Down

0 comments on commit 3dd4049

Please sign in to comment.