18 #ifndef _ROS_SERVICE_CLIENT_H_ 19 #define _ROS_SERVICE_CLIENT_H_ 28 template<
typename MReq ,
typename MRes>
29 class ServiceClient :
public Subscriber_ {
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(); }
void publish(const boost::shared_ptr< M > &message) const
bool call(MReq &req, MRes &res)
virtual bool connected()=0