How to get grounded predicates and functions #22
-
I'm using SMT to solve the planning task. to do so I need to the groudned predicates and functions to encode them into a SMt formula but there is no clear way on how to obtain such informaion. I have tried the following steps but it returns the lifted predicate/function:
I get a I hope if you can help me with this. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
It's undocumented, but you use this function to get an iterator over all possible arguments for a predicate / fluent! PDDL.jl/src/grounding/utils.jl Lines 3 to 13 in 8864418 This doesn't do any relevance checking though. If you want the list of all "planning-relevant-ground-predicates", you can construct a GraphPlan-style planning graph using this function, and then access the |
Beta Was this translation helpful? Give feedback.
-
Hopefully this resolved your issue! Moving this to the Q&A section of the Discussions page. |
Beta Was this translation helpful? Give feedback.
I've avoided storing all the initial values in
state.facts
because that's an inefficient representation.However, for states produced by compilation, you can call
PDDL.get_fluents(state)
and it will list all fluents and their associated values.