Skip to content

Commit

Permalink
Add global variables for location of PANDA components.
Browse files Browse the repository at this point in the history
When running under emacs, at least, I have not been able to reliably find
programs on the user's path, requiring some means of telling the
system where the binaries are.
  • Loading branch information
rpgoldman committed Nov 22, 2023
1 parent 44494f1 commit 03bc995
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions planners/panda.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@

(in-package :sift-pddl-planners)

(defvar *panda-pi-parser* "pandaPIparser")
(defvar *panda-pi-grounder* "pandaPIgrounder")
(defvar *panda-pi-engine* "pandaPIengine")


(defmethod run-planner (domain-file problem-file (planner-key (eql :panda))
&key planner-executable output-directory
verbose keep-temp
(panda-pi-parser "pandaPIparser")
(panda-pi-grounder "pandaPIgrounder")
(panda-pi-engine "pandaPIengine")
(panda-pi-parser *panda-pi-parser*)
(panda-pi-grounder *panda-pi-grounder*)
(panda-pi-engine *panda-pi-engine*)
(timeout-secs (* 10 60)) ; default to 10 minutes
&allow-other-keys)
(declare (ignore planner-executable) (type fixnum timeout-secs))
Expand All @@ -21,7 +25,7 @@
(if output-directory
(ensure-directories-exist output-directory)
(let ((new-pathname (merge-pathnames
(make-pathname `(:relative ,(symbol-name (gensym "panda-workdir"))))
(make-pathname :directory `(:relative ,(symbol-name (gensym "panda-workdir"))))
(uiop:temporary-directory))))
(ensure-directories-exist new-pathname))))
(*default-pathname-defaults* output-directory)
Expand Down

0 comments on commit 03bc995

Please sign in to comment.