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