如何使用快速向下获取pddl中问题的因果图

How to obtain the causal graph of a problem in pddl using fast downward

当我有域的 PDDL 和问题的 PDDL 时,如何使用快速向下得到问题的因果图?

在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_utils/causal_graph.h文件中的dump(const TaskProxy &task_proxy)函数移动到public,使用如下命令

cg.dump(task_proxy);

希望对您有所帮助 ;)。