Skip to content

Commit

Permalink
add assert for fast downward planner in running once func
Browse files Browse the repository at this point in the history
  • Loading branch information
lf-zhao committed Apr 23, 2024
1 parent 0824ae7 commit bf4000d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions predicators/planning.py
Original file line number Diff line number Diff line change
Expand Up @@ -1215,6 +1215,9 @@ def run_task_plan_once(
raise PlanningFailure(
"Skeleton produced by A-star exceeds horizon!")
elif "fd" in CFG.sesame_task_planner: # pragma: no cover
# Run Fast Downward. See the instructions in the docstring of `_sesame_plan_with_fast_downward`
assert "FD_EXEC_PATH" in os.environ, \
"Please follow the instructions in the docstring of this method!"
fd_exec_path = os.environ["FD_EXEC_PATH"]
exec_str = os.path.join(fd_exec_path, "fast-downward.py")
timeout_cmd = "gtimeout" if sys.platform == "darwin" \
Expand Down

0 comments on commit bf4000d

Please sign in to comment.