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