TargetTabletopSrv.srv
string Object
string TargetTabletop
---
bool FeedBackFlag
FeedBackFlag.msg
bool FeedBackFlag
TargetTabletop.msg
string Object
string TargetTabletop
创建msg 和srv
--------------------------------------------------
grasp_object_tabletop_server.cpp
创建服务:
/*
定义一个服务,来处理数据;并且发布反馈消息
*/
#include "ros/ros.h"
#include "beginner_tutorials/TargetTabletop.h"
#include "beginner_tutorials/TargetTabletopSrv.h"
#include <iostream>
#include "beginner_tutorials/FeedBackFlag.h"
using namespace std;
beginner_tutorials::FeedBackFlag flag ;
bool grabaction_feedback(beginner_tutorials::TargetTabletopSrv::Request &MSG,\
beginner_tutor