Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about the variables declared in derived predicates #14

Closed
nvannaprathip opened this issue Dec 8, 2016 · 1 comment
Closed
Labels

Comments

@nvannaprathip
Copy link

I tested with the following example and the parser say that ?x is undefined.

(:derived  (TEST_5 ?z)  (TEST_4 ?x ?y)    )

The question is the number of variables declared in derived predicate (TEST_5 ?z) must be exactly the same as variables used in the basic predicate (TEST_4 ?x ?y) ?

I am very new to PDDL, I tried to apply the :derived in my project. And I saw the example from http://www.sciencedirect.com/science/article/pii/S0004370205000810 and test with your parser. The test result is not as I thought. However, please help advising that. Thank you very much.

@pellierd
Copy link
Owner

pellierd commented Dec 8, 2016

All the variables used in the body of the derived predicates have to be bound.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants