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