1 #include <sarafun_tree/demo_bt_nodes/OnlineMotionAction.h>
6 fillParameter(
"/sarafun/bt/online_motion/timeout", 30.0, timeout);
12 double x = 0, y = 0, z = 0;
14 ros::param::get(ros::this_node::getName() +
"/position/x", x);
15 ros::param::get(ros::this_node::getName() +
"/position/y", y);
16 ros::param::get(ros::this_node::getName() +
"/position/z", z);
18 goal.ref.position.x = x;
19 goal.ref.position.y = y;
20 goal.ref.position.z = z;
22 goal.ref.orientation.x = 0;
23 goal.ref.orientation.y = 0;
24 goal.ref.orientation.z = 0;
25 goal.ref.orientation.w = 1;
31 int main(
int argc,
char **argv) {
32 ros::init(argc, argv,
"online_motion_action");
35 ros::this_node::getName(),
"/sarafun/motion/online", ros::this_node::getName());
37 ROS_INFO(
"Started %s!", ros::this_node::getName().c_str());
bool fillGoal(sarafun_hqp_omg::OnlineMotionGoal &goal)
bool fillParameter(std::string param_name, std::string ¶m_val)