当我有域的PDDL和问题的PDDL时,如何得到问题的因果图,使用快速向下的方法?
发布于 2018-11-28 16:53:38
您可以在c++中以对象的形式获得因果图,如下所示。
#include "task_utils/causal_graph.h"
#include "tasks/root_task.h"
...
TaskProxy task_proxy(*g_root_task);
causal_graph::CausalGraph cg(task_proxy);如果要将其作为输出,可以将这些行添加到主文件("planner.cc")中。此外,必须将task/因果_Graph.h文件中的转储(const TaskProxy &task_proxy)函数移到public中,并使用以下命令。
cg.dump(task_proxy);希望,那有帮助;)
https://stackoverflow.com/questions/52263787
复制相似问题