18 #ifndef _ROS_SERVICE_CLIENT_H_
19 #define _ROS_SERVICE_CLIENT_H_
28 template<
typename MReq ,
typename MRes>
29 class ServiceClient :
public Subscriber_ {
34 this->topic_ = topic_name;
38 virtual void call(
const MReq & request, MRes & response)
49 virtual void callback(
unsigned char *data){
50 ret->deserialize(data);
53 virtual const char * getMsgType(){
return this->resp.getType(); }
54 virtual const char * getMsgMD5(){
return this->resp.getMD5(); }