ronuchit / pddlgym_planners Goto Github PK
View Code? Open in Web Editor NEWPDDL planner interface for PDDLGym.
License: MIT License
PDDL planner interface for PDDLGym.
License: MIT License
after i write ">>> ff_planner = FF()",then it show this:
sh: 1: cd: can't cd to /home/tridu33/rl/pddlgym_planners/FF-v2.3
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/tridu33/rl/pddlgym_planners/ff.py", line 24, in __init__
self._install_ff()
File "/home/tridu33/rl/pddlgym_planners/ff.py", line 82, in _install_ff
assert os.path.exists(self._exec)
AssertionError
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)
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:
.
├── frame1.png
├── frame2.png
├── main2.py
├── main.py
└── pddlgym_planners
├── FD
├── fd.py
├── ff.py
├── FF-v2.3
├── FF-v2.3.tgz
├── LICENSE.md
├── main2.py
├── pddl_planner.py
├── planner.py
├── __pycache__
├── README.md
├── setup.py
└── test.py
Thanks for the repo!
Hi, I am on ubuntu 20.04 with Python 3.8.5 and I tried running your test.py file.
I get this error, on my terminal. Do you have any advice for me?
Traceback (most recent call last):
File "/home/kevindo/Documents/pddlgym/test.py", line 5, in <module>
from pddlgym_planners.ff import FF # FastForward
File "/home/kevindo/Documents/pddlgym/pddlgym_planners/ff.py", line 8, in <module>
from pddlgym_planners.pddl_planner import PDDLPlanner
File "/home/kevindo/Documents/pddlgym/pddlgym_planners/pddl_planner.py", line 14, in <module>
from pddlgym_planners.FD.src.translate.translate import main as downward_translate
ModuleNotFoundError: No module named 'pddlgym_planners.FD'
Thank you!
Hi @tomsilver - when you get a chance, would you mind adding a setup.py
for this repo? I'm building something that uses PDDLGym (+ the planners). I want to create a Conda env file for PDDLGym like below. This requires that pddlgym_planners
have a setup.py
file like you do in the main pddlgym
to enable the pip install. Thanks!
name: pddlgym
channels:
- conda-forge
- anaconda
dependencies:
...
- pip:
- pddlgym
- git+https://github.com/ronuchit/pddlgym_planners.git
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.