Class BTBuilder
Defined in File BTBuilder.hpp
Class Documentation
-
class BTBuilder
-
Protected Functions
-
std::vector<ActionStamped> get_plan_actions(const plansys2_msgs::msg::Plan &plan)
-
void get_state(const GraphNode::Ptr &node, std::list<GraphNode::Ptr> &used_nodes, std::vector<plansys2::Predicate> &predicates, std::vector<plansys2::Function> &functions) const
-
bool is_action_executable(const ActionStamped &action, std::vector<plansys2::Predicate> &predicates, std::vector<plansys2::Function> &functions) const
-
std::list<GraphNode::Ptr> get_roots(std::vector<plansys2::ActionStamped> &action_sequence, std::vector<plansys2::Predicate> &predicates, std::vector<plansys2::Function> &functions, int &node_counter)
-
GraphNode::Ptr get_node_satisfy(const plansys2_msgs::msg::Tree &requirement, const Graph::Ptr &graph, const GraphNode::Ptr ¤t)
-
GraphNode::Ptr get_node_satisfy(const plansys2_msgs::msg::Tree &requirement, const GraphNode::Ptr &node, const GraphNode::Ptr ¤t)
-
std::list<GraphNode::Ptr> get_node_contradict(const Graph::Ptr &graph, const GraphNode::Ptr ¤t)
-
void get_node_contradict(const GraphNode::Ptr &node, const GraphNode::Ptr ¤t, std::list<GraphNode::Ptr> &parents)
-
void remove_existing_requirements(std::vector<plansys2_msgs::msg::Tree> &requirements, std::vector<plansys2::Predicate> &predicates, std::vector<plansys2::Function> &functions) const
-
bool is_parallelizable(const plansys2::ActionStamped &action, const std::vector<plansys2::Predicate> &predicates, const std::vector<plansys2::Function> &functions, const std::list<GraphNode::Ptr> &ret) const
-
void addDotGraphLegend(std::stringstream &ss, int tab_level, int level_counter, int node_counter)
-
std::string t(int level)
Protected Attributes
-
std::shared_ptr<plansys2::DomainExpertClient> domain_client_
-
std::shared_ptr<plansys2::ProblemExpertClient> problem_client_
-
std::string bt_action_
-
std::vector<ActionStamped> get_plan_actions(const plansys2_msgs::msg::Plan &plan)