primaryobjects / strips Goto Github PK
View Code? Open in Web Editor NEWAI Automated Planning with STRIPS and PDDL in Node.js
Home Page: https://www.npmjs.com/package/strips
AI Automated Planning with STRIPS and PDDL in Node.js
Home Page: https://www.npmjs.com/package/strips
Hello!
I was thinking about rewritting this project to ES6. Since a lot of part can be rewritten and some test could be added :D
Hey, I'm trying to run the graph.js example. The documentation only says I have to run node --harmony graph
but it throw errors after installing the npm dependecies. ¿Could you please explain me if I'm doing something wrong or what dependencies versions do I have to have to run this example correctly?
Thanks in advance.
Hi, your library looks great. Can you please tell us what PDDL specification you support (1.2, 2.1, 3.1 ...?).
Thank you!
If you try to install and run strips today you'll also get the latest version of pegjs; they've chenged the name of the function "peg.buildParser" to "peg.generate", so you'll have to change it manually in strips.js:32 for the whole thing to work without errors.
It would be great for beginners like me to have some instructions on how to run the system.
I'm really interested in AI and am on lecture 5 of this series http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-034-artificial-intelligence-fall-2010/lecture-videos/
I'm thinking it'd be fun to try a stock market AI using node.js. Can you guys give me some high level concepts that the program would probably use to accomplish the goal of predicting stocks performance?
I was thinking you could do market size based on google searches and then look at where the search trend is expected to head...
Also, there's something called "sentiment analysis."
Could you guys give me some guidance and direction here? I feel like a breadth first search, going in every direction.
Hello,
I'm trying to study PDDL and planning technologies. I was trying to use your example "magicworld" and I could not write in domain a new definition for "move". My idea for "move" is a new precondition using "OR" operator for border, like:
to change
:precondition (and (at ?p ?l1) (border ?l1 ?l2) (not (guarded ?l2)))
for
:precondition (and (at ?p ?l1) (or (border ?l1 ?l2) (border ?l2 ?l1)) (not (guarded ?l2)))
However, I did not find anything about "OR" operator in PDDL yet. Then, I thought in DeMorgan's Law, and I tried:
:precondition (and (at ?p ?l1) (not (and (not (border ?l1 ?l2) ) (not (border ?l2 ?l1) ))) (not (guarded ?l2)))
But, I obtained stranges results:
- Solution found in 1 steps!
1. move npc town castle
The expected result was:
- Solution found in 2 steps!
1. move npc town field
2. move npc field castle
I fork your project and I put my change in a directory "mymagicworld"
Forgive me the inconvenience and thanks for any help!
Does strip support quantifiers?
I am getting the following error
undefined:1483
throw peg$buildStructuredError(
^
peg$SyntaxError: Expected "(", ")", ":", ";", "and", "not", [\n\r\t ], [a-zA-Z0-9\-], or end of input but "?" found.
at peg$buildStructuredError (eval at compile (/home/bora/finitech/planner/strips/node_modules/pegjs/lib/compiler/index.js:67:29), <anonymous>:342:14)
at Object.peg$parse [as parse] (eval at compile (/home/bora/finitech/planner/strips/node_modules/pegjs/lib/compiler/index.js:67:29), <anonymous>:1483:13)
at /home/bora/finitech/planner/strips/node_modules/strips/strips.js:35:33
at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:61:3) {
message: 'Expected "(", ")", ":", ";", "and", "not", [\\n\\r\\t ], [a-zA-Z0-9\\-], or end of input but "?" found.',
expected: [
{ type: 'literal', text: '(', ignoreCase: false },
{ type: 'literal', text: ')', ignoreCase: false },
{
type: 'class',
parts: [Array],
inverted: false,
ignoreCase: false
},
{ type: 'literal', text: ';', ignoreCase: false },
{ type: 'literal', text: 'and', ignoreCase: false },
{ type: 'literal', text: 'not', ignoreCase: false },
{ type: 'literal', text: '(', ignoreCase: false },
{ type: 'literal', text: ')', ignoreCase: false },
{
type: 'class',
parts: [Array],
inverted: false,
ignoreCase: false
},
{ type: 'literal', text: ';', ignoreCase: false },
{
type: 'class',
parts: [Array],
inverted: false,
ignoreCase: false
},
{
type: 'class',
parts: [Array],
inverted: false,
ignoreCase: false
},
{ type: 'literal', text: ';', ignoreCase: false },
{ type: 'literal', text: '(', ignoreCase: false },
{ type: 'literal', text: ')', ignoreCase: false },
{
type: 'class',
parts: [Array],
inverted: false,
ignoreCase: false
},
{ type: 'literal', text: ';', ignoreCase: false },
{ type: 'literal', text: ':', ignoreCase: false },
{ type: 'end' }
],
found: '?',
location: {
start: { offset: 4082, line: 155, column: 18 },
end: { offset: 4083, line: 155, column: 19 }
},
name: 'SyntaxError'
}
where line 155 is:
(:goal (and
(exists (?ps - park) (and ;; <<<< line 155
(IsAt Car ?ps)
))
))
I would be happy to provide the files as well if needed.
Regards,
Bora
/cc @theodor1289
This is fascinating! Could you please elaborate the anomaly solution more? I don't understand:
What the x represents
What makes an anomaly
Thank you!
mutex
, implement the algorithm GraphPlan to solve a planning graph by correcting and completing the method named solve()
and associated methods for marking mutexes.graphplan.js
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.