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