Adding support for non parameterized predicates and negative preconditions #4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What is this
This will add support for non parameterized predicates in pddl meaning that you can hardcode a value in a predicate, useful in preconditions and effects of actions for example.
How it works
Predicates are in the form of:
(<predicate_name> <argument_1> ... <argument_n>)For example:
(in_room ?r)Where
?is used to mark the argument as a parameter.By removing the
?, the argument becomes an hardcoded value. For example:(in_room kitchen)Commit 97aacd8 introduce this feature by checking if the argument is present in the parameters list and adding the
?accordingly, when creating the predicate string.Commit 4403ad9 simply adds support for negative preconditions in pddl.