Closed rakhmanu closed 3 years ago
Hi Rakhmanu,
Can you please use the Metric-FF included in rosplan_planning_system/common/bin
to make sure it works with your files?
If so, can you add the raw output of the plan? It should be in your package named "try" and in the file called plan.pddl. You can get the output with: cat $(rospack find task_plan_verbalization)/plan.pddl
. The terminal output for the planning process would also be helpful for this.
If it works with the external one but not with the one shipped with rosplan, you can try to modify the planner_command
argument of the launch file to point to the executable that works for you.
Also please format the files you added as code (wrapping them with a single line containing ``` -like you did with the launch file- so it's easier to read the code).
Hi @gerardcanal, Can you please use the Metric-FF included in rosplan_planning_system/common/bin to make sure it works with your files? ---> Yes I am using Metric-FF included in rosplan_planning_system/common/bin
The output of the plan is this:
usage of ff:
OPTIONS DESCRIPTIONS
-p <str> Path for operator and fact file
-o <str> Operator file name
-f <str> Fact file name
-r <int> Random seed [used for random restarts; preset: 0]
-s <int> Search configuration [preset: s=5]; '+H': helpful actions pruning
0 Standard-FF: EHC+H then BFS (cost minimization: NO)
1 BFS (cost minimization: NO)
2 BFS+H (cost minimization: NO)
3 Weighted A* (cost minimization: YES)
4 A*epsilon (cost minimization: YES)
5 EHC+H then A*epsilon (cost minimization: YES)
-w <num> Set weight w for search configs 3,4,5 [preset: w=5]
-C Do NOT use cost-minimizing relaxed plans for options 3,4,5
-b <float> Fixed upper bound on solution cost (prune based on g+hmax); active only with cost minimization
Also please format the files you added as code (wrapping them with a single line containing ``` -like you did with the launch file- so it's easier to read the code) ---> Yp, I did it
If it works with the external one but not with the one shipped with rosplan, you can try to modify the planner_command argument of the launch file to point to the executable that works for you. --> Yes I changed exec file, the same result
Thank you
I think I see the issue now.
The planner command is not correct. You need to specify the flags correctly. I believe it should be like this (sorry I can't test it at the moment):
timeout 10 $(find rosplan_planning_system)/common/bin/Metric-FF -o DOMAIN -f PROBLEM
The planner command line must be the same you use as in the command line, but instead of writing the domain and problem pat you need to change those for the strings DOMAIN
and PROBLEM
so that ROSPlan can then replace those flags for the correct paths to the domain and generated problem files.
As you suggested @gerardcanal I changed
<include file="$(find rosplan_planning_system)/launch/includes/planner_interface_metricff.launch">
<arg name="use_problem_topic" value="false" />
<arg name="planner_topic" value="planner_output" />
<arg name="domain_path" value="$(find try)/common/PDDL/domain.pddl" />
<arg name="problem_path" value="$(find try)/common/PDDL/problem.pddl" />
<arg name="data_path" value="$(find try)/common/PDDL/" />
<arg name="planner_command" value="timeout 10 $(find rosplan_planning_system)/common/bin/Metric-FF -o DOMAIN -f PROBLEM" />
</include>
It still says that "Plan was unsolvable". But, plan.pddl file is empty now...
Hello both,
I notice that "timeout 10" is in the command line as well - normally to kill a planner running in anytime mode. When you test from the terminal, do you use a timeout and if not does it take more than 10 seconds to find a solution? Perhaps removing this might solve your issue.
Best regards, Michael
Hi again,
Thank you @m312z, yes that was the solution and it works perfectly. Now I am closing the issue.
Hi,
When I try to use Metric-FF in RosPlan, it always fails to find a solution. When I check the PDDL files by VAL in RospLan, it gives no error. However, I installed the Metric-FF planner from an external source, and it works well.
This s the launch file:
This is planner_interface_metricff.launch
<?xml version="1.0"?>
Am I missing something or something is wrong? Could you please have a look?
Thank you very much, Sincerely Ulzhalgas Rakhman
domain.pddl
problem.pddl