Function parser::pddl::fromString(plansys2_msgs::msg::Tree&, const std::string&, bool, uint8_t)

Function Documentation

plansys2_msgs::msg::Node::SharedPtr parser::pddl::fromString(plansys2_msgs::msg::Tree &tree, const std::string &expr, bool negate = false, uint8_t parent = plansys2_msgs::msg::Node::UNKNOWN)

This function creates a complete tree.

This function recursivelly extracts the logic expressions and predicates from the expression.

Parameters:
  • tree[in] The tree object to be created

  • expr[in] A string containing predicates and logic operators

  • construct[in] A string containing the associated PDDL constructs

Returns:

A smart pointer to the node created