Closed keerthanamanivannan closed 5 years ago
uh, so I just saw this issue #166. Um. So I cannot add the skip_check
as a constant then?
Hello,
Does the key have to be a part of the PDDL, or can it be added to the interface?
skip_check=False
then it needs to be in the PDDL.To add the parameter to the PDDL:
First, you are right. PDDL constants are not implemented yet, but it is on our immediate to-do list.
One solution would be to add the parameter as a type instead, by extending the domain to include: (:types skip_check) And the problem file: (:objects true - skip_check) And finally include skip_check as a parameter of stow and unstow. The only possible value this parameter can take is "true".
One issue with this is that it is possible that your interface might reject an action for which skip_check is not set to "true", as no other option exists. In other words, I'm not sure how to define some actions to be valid for dispatch, but not possible for the planner to select (constants would not help with this).
I see. Yeah. This helps a lot, @m312z. I realized that we need to send this skip_check
to always be set to True as a part of the stow/unstow action. Which then makes sense for me to add it into the interface. I tried the whole adding it to the PDDL file approach you mentioned, but rosplan_knowledge_base
node dies when I do that.
But you've helped me fix this problem. Thank you for your time Mike, I really appreciate it.
Closing this issue.
@oscar-lima @m312z
Background:
So, most of the things on the internet about PDDL are just basic examples and I have a specific thing which I want to accomplish and I need some help with that.
I have a really basic domain file and a problem file which spits out a single action when given into ROSPlan framework. I get this
when I listen to the action dispatch topic.
I am giving this output into FlexBE so I created a
rosplan_interface_flexbe
package much like therosplan_interface_movebase
but gutted out to conform to FlexBE message type.Now. I need to get one more key called
skip_check
to be set toTrue
for any action that ROSPlan is going to spit out. How would I add this parameter (?) to all the actions in the PDDL file?Thanks in advance for your time! Any links on more detailed PDDL examples would be really helpful too. Thank you!
Domain File
Problem File