Function plansys2::apply(const plansys2_msgs::msg::Tree&, std::vector<plansys2::Predicate>&, std::vector<plansys2::Function>&, uint32_t)

Function Documentation

bool plansys2::apply(const plansys2_msgs::msg::Tree &tree, std::vector<plansys2::Predicate> &predicates, std::vector<plansys2::Function> &functions, uint32_t node_id = 0)

Apply a PDDL expression represented as a tree using local state. This function applies the effects of the PDDL expression to the local state.

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

  • predicates[inout] Current predicates state.

  • functions[inout] Current functions state.

  • node_id[in] Node identifier in the tree (default: 0).

Returns:

bool Indicates whether the execution was successful.