1 #ifndef _ROS_SERVICE_RequestServiceInfo_h
2 #define _ROS_SERVICE_RequestServiceInfo_h
8 namespace rosserial_msgs
23 virtual int serialize(
unsigned char *outbuffer)
const
26 uint32_t length_service = strlen(this->
service);
27 memcpy(outbuffer + offset, &length_service,
sizeof(uint32_t));
29 memcpy(outbuffer + offset, this->
service, length_service);
30 offset += length_service;
37 uint32_t length_service;
38 memcpy(&length_service, (inbuffer + offset),
sizeof(uint32_t));
40 for(
unsigned int k= offset; k< offset+length_service; ++k){
41 inbuffer[k-1]=inbuffer[k];
43 inbuffer[offset+length_service-1]=0;
44 this->
service = (
char *)(inbuffer + offset-1);
45 offset += length_service;
50 const char *
getMD5(){
return "1cbcfa13b08f6d36710b9af8741e6112"; };
68 virtual int serialize(
unsigned char *outbuffer)
const
71 uint32_t length_service_md5 = strlen(this->
service_md5);
72 memcpy(outbuffer + offset, &length_service_md5,
sizeof(uint32_t));
74 memcpy(outbuffer + offset, this->
service_md5, length_service_md5);
75 offset += length_service_md5;
76 uint32_t length_request_md5 = strlen(this->
request_md5);
77 memcpy(outbuffer + offset, &length_request_md5,
sizeof(uint32_t));
79 memcpy(outbuffer + offset, this->
request_md5, length_request_md5);
80 offset += length_request_md5;
81 uint32_t length_response_md5 = strlen(this->
response_md5);
82 memcpy(outbuffer + offset, &length_response_md5,
sizeof(uint32_t));
84 memcpy(outbuffer + offset, this->
response_md5, length_response_md5);
85 offset += length_response_md5;
92 uint32_t length_service_md5;
93 memcpy(&length_service_md5, (inbuffer + offset),
sizeof(uint32_t));
95 for(
unsigned int k= offset; k< offset+length_service_md5; ++k){
96 inbuffer[k-1]=inbuffer[k];
98 inbuffer[offset+length_service_md5-1]=0;
100 offset += length_service_md5;
101 uint32_t length_request_md5;
102 memcpy(&length_request_md5, (inbuffer + offset),
sizeof(uint32_t));
104 for(
unsigned int k= offset; k< offset+length_request_md5; ++k){
105 inbuffer[k-1]=inbuffer[k];
107 inbuffer[offset+length_request_md5-1]=0;
109 offset += length_request_md5;
110 uint32_t length_response_md5;
111 memcpy(&length_response_md5, (inbuffer + offset),
sizeof(uint32_t));
113 for(
unsigned int k= offset; k< offset+length_response_md5; ++k){
114 inbuffer[k-1]=inbuffer[k];
116 inbuffer[offset+length_response_md5-1]=0;
118 offset += length_response_md5;
123 const char *
getMD5(){
return "c3d6dd25b909596479fbbc6559fa6874"; };
RequestServiceInfoRequest()
Definition: RequestServiceInfo.h:18
virtual int deserialize(unsigned char *inbuffer)
Definition: RequestServiceInfo.h:89
const char * response_md5
Definition: RequestServiceInfo.h:59
const char * request_md5
Definition: RequestServiceInfo.h:58
virtual int serialize(unsigned char *outbuffer) const
Definition: RequestServiceInfo.h:68
static const char REQUESTSERVICEINFO[]
Definition: RequestServiceInfo.h:11
const char * getMD5()
Definition: RequestServiceInfo.h:50
const char * service_md5
Definition: RequestServiceInfo.h:57
const char * getType()
Definition: RequestServiceInfo.h:49
RequestServiceInfoResponse Response
Definition: RequestServiceInfo.h:130
RequestServiceInfoResponse()
Definition: RequestServiceInfo.h:61
virtual int serialize(unsigned char *outbuffer) const
Definition: RequestServiceInfo.h:23
const char * getType()
Definition: RequestServiceInfo.h:122
Definition: RequestServiceInfo.h:13
Definition: RequestServiceInfo.h:127
const char * getMD5()
Definition: RequestServiceInfo.h:123
RequestServiceInfoRequest Request
Definition: RequestServiceInfo.h:129
Definition: RequestServiceInfo.h:54
virtual int deserialize(unsigned char *inbuffer)
Definition: RequestServiceInfo.h:34
const char * service
Definition: RequestServiceInfo.h:16