Function plansys2::evaluate(const plansys2_msgs::msg::Tree&, std::shared_ptr<plansys2::ProblemExpertClient>, bool, uint32_t)

Function Documentation

std::tuple<bool, bool, double> plansys2::evaluate(const plansys2_msgs::msg::Tree &tree, std::shared_ptr<plansys2::ProblemExpertClient> problem_client, bool apply = false, uint32_t node_id = 0)

Evaluate a PDDL expression represented as a tree using only the problem client.

Parameters:
  • tree[in] The root node of the PDDL expression.

  • problem_client[in] The problem expert client.

  • apply[in] Apply result to problem expert (default: false).

  • node_id[in] Node identifier in the tree.

Returns:

tuple(bool, bool, double) with execution result.