Comments (3)
Just to clarify my question.
In your README there is written:
PDDL4J is an open source library under LGPL license.
But in all the examples on your webpages and wiki (at least the ones that I've found), you use it as a "stand-alone solver".
Is it possible to use it in the following way?
// my code
// Select and initialize the planner
// Specify the "domain" and the "problem" to the planner
// Execute the planner and get the output
// my code
Thanks
from pddl4j.
To use PDDL4J as library just add the library to your classpath and add the option -javaagent to the JVM when you launch your program:
java -javaagent:pddl4j-version.jar .....
To call a planner directly in your code follow the example given on the wiki page.
The JVM option is used to get statistics on the memory used by the JVM during search. It is based on the instrument API proposed by java since SDK 1.5.
If you don't want to use the agent option, you have to write your own version of the planner by removing all the calls to the class fr.uga.pddl4j.util.MemoryAgent from the code of the planner you want to use. Have a look to the HSP planner for instance.
from pddl4j.
Thanks for your answer.
Actually I would like to integrate PDDL4J into another library and I don't want to "force" my users to use the option -javaagent
(given that some of them cannot use it, for instance the users that want to use my library on Android)
I'll try your second suggestion, but it seems quite "complex" for my purposes (I was looking for a Java library that allows me to parse and execute PDDL programs because I don't want to do it by myself).
Thanks
from pddl4j.
Related Issues (20)
- Parsing Problem without Domain results in Exception HOT 1
- NullPointerException goal is null HOT 1
- Apparent poor performance HOT 4
- Help -- solution output HOT 5
- Ho to solve problems with pddl 2.1? HOT 2
- java.lang.NullPointerException while extracting relevant fluent
- How to add a new heuristic? HOT 2
- Incorrect format displayed by the parsedProblem.toString function for HDDL domains HOT 2
- Abstract Task written incorrectly by parsedProblem.toString function for HDDL domains
- Instantiated action has wrong effects
- No plan found with HDDL although it exists
- No plan / very long computing time
- no main manifest attribute HOT 1
- ERROR Activate the default command line arguments
- unmatched arguments from index 2
- How write a custom Heuristic, State dependent? HOT 2
- [BUG] Negative effects are grounded as positive HOT 3
- Manager numeric-fluents
- Issue in build.gradle
- [SUGGESTION] If action has the same predicate in both positive and negative effects, remove the predicate from negative effects
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pddl4j.