The following modification was necessary to install the ff planner in linux (otherwise, the code is unpacked in the current working directory, and not in pddlgym_planners)
diff --git a/ff.py b/ff.py
index 1ef5b65..714c19e 100644
--- a/ff.py
+++ b/ff.py
@@ -79,7 +79,8 @@ class FF(PDDLPlanner):
else:
# Install FF directly from official website.
os.system("curl {} --output {}.tgz".format(FF_URL, loc))
- os.system("tar -xzvf {}.tgz".format(loc))
+ dirname = os.path.dirname(os.path.realpath(__file__))
+ os.system("cd {} && tar -xzvf {}.tgz".format(dirname,loc))
# Compile FF.
os.system("cd {} && make && cd -".format(loc))
assert os.path.exists(self._exec)
I run the code of the readme with python3 main2.py with the following directory structure:
Hi!
The following modification was necessary to install the ff planner in linux (otherwise, the code is unpacked in the current working directory, and not in pddlgym_planners)
I run the code of the readme with
python3 main2.py
with the following directory structure:Thanks for the repo!