Class STNBTBuilder
Defined in File stn_bt_builder.hpp
Inheritance Relationships
Base Type
public plansys2::BTBuilder
(Class BTBuilder)
Class Documentation
-
class STNBTBuilder : public plansys2::BTBuilder
Public Functions
-
STNBTBuilder()
-
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) const
-
std::set<int> get_happenings(const plansys2_msgs::msg::Plan &plan) const
-
std::set<int>::iterator get_happening(int time, const std::set<int> &happenings) const
-
std::set<int>::iterator get_previous(int time, const std::set<int> &happenings) const
-
std::multimap<int, ActionStamped> get_simple_plan(const plansys2_msgs::msg::Plan &plan) const
-
std::map<int, StateVec> get_states(const std::set<int> &happenings, const std::multimap<int, ActionStamped> &plan) const
-
plansys2_msgs::msg::Tree from_state(const std::vector<plansys2::Predicate> &preds, const std::vector<plansys2::Function> &funcs) const
-
bool is_match(const Node::Ptr node, const ActionStamped &action) const
-
std::vector<std::pair<int, ActionStamped>> get_parents(const std::pair<int, ActionStamped> &action, const std::multimap<int, ActionStamped> &plan, const std::set<int> &happenings, const std::map<int, StateVec> &states) const
-
std::vector<std::pair<int, ActionStamped>> get_satisfy(const std::pair<int, ActionStamped> &action, const std::multimap<int, ActionStamped> &plan, const std::set<int> &happenings, const std::map<int, StateVec> &states) const
-
std::vector<std::pair<int, ActionStamped>> get_threat(const std::pair<int, ActionStamped> &action, const std::multimap<int, ActionStamped> &plan, const std::set<int> &happenings, const std::map<int, StateVec> &states) const
-
bool can_apply(const std::pair<int, ActionStamped> &action, const std::multimap<int, ActionStamped> &plan, const int &time, StateVec &state) const
-
plansys2_msgs::msg::Tree get_conditions(const ActionStamped &action) const
-
plansys2_msgs::msg::Tree get_effects(const ActionStamped &action) const
-
void floyd_warshall(Eigen::MatrixXd &dist) const
-
std::string get_flow(const Node::Ptr node, const Node::Ptr prev_node, std::set<Node::Ptr> &used, const int &level) const
-
std::string add_dot_graph_legend(int level_counter, int node_counter)
-
void replace(std::string &str, const std::string &from, const std::string &to) const
-
bool is_end(const std::tuple<Node::Ptr, double, double> &edge, const ActionStamped &action) const
-
std::string t(const int &level) const
-
STNBTBuilder()