Class SimpleBTBuilder
Defined in File simple_bt_builder.hpp
Inheritance Relationships
Base Type
public plansys2::BTBuilder
(Class BTBuilder)
Class Documentation
-
class SimpleBTBuilder : public plansys2::BTBuilder
Public Functions
-
SimpleBTBuilder()
-
virtual void initialize(const std::string &bt_action_1 = "", const std::string &bt_action_2 = "", int precision = 3)
-
virtual std::string get_tree(const plansys2_msgs::msg::Plan ¤t_plan)
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)
-
SimpleBTBuilder()