Sarafun Behavior Trees package  1
Behavior trees for the SARAFun project
 All Data Structures Namespaces Functions Variables Enumerations Enumerator
OnlineMotionAction.h
1 #ifndef __ONLINE_MOTION_ACTION__
2 #define __ONLINE_MOTION_ACTION__
3 
4 #include <ros/ros.h>
5 #include <sarafun_tree/ExecuteAction.h>
6 #include <sarafun_hqp_omg/OnlineMotionAction.h>
7 
8 namespace sarafun {
9 class OnlineMotionAction : ExecuteAction<sarafun_hqp_omg::OnlineMotionAction,
10  sarafun_hqp_omg::OnlineMotionGoal> {
11 public:
12  OnlineMotionAction(std::string node_name, std::string action_name,
13  std::string bt_name)
14  : ExecuteAction<
15  sarafun_hqp_omg::OnlineMotionAction,
16  sarafun_hqp_omg::OnlineMotionGoal>::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_hqp_omg::OnlineMotionGoal &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
bool fillGoal(sarafun_hqp_omg::OnlineMotionGoal &goal)
OnlineMotionAction(std::string node_name, std::string action_name, std::string bt_name)