Sarafun Behavior Trees package  1
Behavior trees for the SARAFun project
 All Data Structures Namespaces Functions Variables Enumerations Enumerator
GraspAction.h
1 #ifndef __GRASP_ACTION__
2 #define __GRASP_ACTION__
3 
4 #include <ros/ros.h>
5 #include <sarafun_tree/ExecuteAction.h>
6 #include <sarafun_msgs/GraspKeyframeAction.h>
7 
8 namespace sarafun {
10  : ExecuteAction<sarafun_msgs::GraspKeyframeAction,
11  sarafun_msgs::GraspKeyframeGoal> {
12 public:
13  GraspAction(std::string node_name, std::string action_name,
14  std::string bt_name)
15  : ExecuteAction<
16  sarafun_msgs::GraspKeyframeAction,
17  sarafun_msgs::GraspKeyframeGoal>::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_msgs::GraspKeyframeGoal &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
GraspAction(std::string node_name, std::string action_name, std::string bt_name)
Definition: GraspAction.h:13
double getTimeoutValue()
Definition: GraspAction.cpp:8
bool fillGoal(sarafun_msgs::GraspKeyframeGoal &goal)
Definition: GraspAction.cpp:4
std::string node_name_
Definition: GraspAction.h:30
ros::NodeHandle node_handle_
Definition: GraspAction.h:29
std::string bt_name_
Definition: GraspAction.h:31