Sarafun Behavior Trees package  1
Behavior trees for the SARAFun project
 All Data Structures Namespaces Functions Variables Enumerations Enumerator
FoldingAssemblyAction.h
1 #ifndef __FOLDING_ASSEMBLY_ACTION__
2 #define __FOLDING_ASSEMBLY_ACTION__
3 
4 #include <ros/ros.h>
5 #include <sarafun_tree/ExecuteAction.h>
6 #include <sarafun_assembly/FoldingAction.h>
7 
8 namespace sarafun {
9 class FoldingAssemblyAction : ExecuteAction<sarafun_assembly::FoldingAction,
10  sarafun_assembly::FoldingGoal> {
11 public:
12  FoldingAssemblyAction(std::string node_name, std::string action_name,
13  std::string bt_name)
14  : ExecuteAction<sarafun_assembly::FoldingAction,
15  sarafun_assembly::FoldingGoal>::ExecuteAction(node_name,
16  action_name,
17  bt_name),
18  node_name_(node_name), bt_name_(bt_name) {
19  node_handle_ = ros::NodeHandle(node_name);
20  }
22 
23  bool fillGoal(sarafun_assembly::FoldingGoal &goal);
24  double getTimeoutValue();
25 
26 private:
27  ros::NodeHandle node_handle_;
28  std::string node_name_;
29  std::string bt_name_;
30 };
31 }
32 #endif
bool fillGoal(sarafun_assembly::FoldingGoal &goal)
FoldingAssemblyAction(std::string node_name, std::string action_name, std::string bt_name)