Comments (2)
Not sure which state you are referring to, parsers only read the input files to fill the internal structures, while the state change later during planning-time.
If your method is ever decomposed and its preconditions satisfied by the current state, the subtasks with free variables ground at this point replace the current task and the decomposition process continues.
If a subtask fails the planner backtracks and tries other unifications and methods to solve that task, undoing previous state changes.
This is easy to see in the Basic HDDL example where someone wants to trade a banjo for a kiwi or vice versa.
The swap
task tries the have_first
method, it fails, and without free variables to be unified differently it tries have_second
.
If a sequence of subtasks (which you called chain) was not possible this instance would have zero or two have
predicates at the final state, but it is working as expected so the problem is elsewhere.
The variable ?hero
remains free in your example, it should either be propagated through :task
variables or unified by :preconditions
.
This is probably the reason it fails, you can check for common mistakes with the Wise extension: ruby Hype.rb <domain> <problem> wise run
.
It should display something like this: method goto test_method never declared variable ?hero from (action_1 ?hero ?from ?to)
.
from hypertension.
Considering there was no feedback I will close this issue in a few days if nothing happens.
from hypertension.
Related Issues (7)
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 hypertension.