【问题标题】:How to obtain the causal graph of a problem in pddl using fast downward如何使用快速向下获取 pddl 中问题的因果图
【发布时间】:2018-09-10 18:49:57
【问题描述】:

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

【问题讨论】:

    标签: artificial-intelligence planning pddl


    【解决方案1】:

    您可以在 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);
    

    希望,这会有所帮助;)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-08-26
      • 2022-10-17
      • 1970-01-01
      • 2018-02-19
      相关资源
      最近更新 更多