18 #ifndef _ROS_SERVICE_RequestServiceInfo_h 19 #define _ROS_SERVICE_RequestServiceInfo_h 40 virtual int serialize(
unsigned char *outbuffer)
const 43 uint32_t length_service = strlen(this->service);
44 memcpy(outbuffer + offset, &length_service,
sizeof(uint32_t));
46 memcpy(outbuffer + offset, this->service, length_service);
47 offset += length_service;
54 uint32_t length_service;
55 memcpy(&length_service, (inbuffer + offset),
sizeof(uint32_t));
57 for(
unsigned int k= offset; k< offset+length_service; ++k){
58 inbuffer[k-1]=inbuffer[k];
60 inbuffer[offset+length_service-1]=0;
61 this->service = (
char *)(inbuffer + offset-1);
62 offset += length_service;
67 const char *
getMD5(){
return "1cbcfa13b08f6d36710b9af8741e6112"; };
85 virtual int serialize(
unsigned char *outbuffer)
const 88 uint32_t length_service_md5 = strlen(this->service_md5);
89 memcpy(outbuffer + offset, &length_service_md5,
sizeof(uint32_t));
91 memcpy(outbuffer + offset, this->service_md5, length_service_md5);
92 offset += length_service_md5;
93 uint32_t length_request_md5 = strlen(this->request_md5);
94 memcpy(outbuffer + offset, &length_request_md5,
sizeof(uint32_t));
96 memcpy(outbuffer + offset, this->request_md5, length_request_md5);
97 offset += length_request_md5;
98 uint32_t length_response_md5 = strlen(this->response_md5);
99 memcpy(outbuffer + offset, &length_response_md5,
sizeof(uint32_t));
101 memcpy(outbuffer + offset, this->response_md5, length_response_md5);
102 offset += length_response_md5;
109 uint32_t length_service_md5;
110 memcpy(&length_service_md5, (inbuffer + offset),
sizeof(uint32_t));
112 for(
unsigned int k= offset; k< offset+length_service_md5; ++k){
113 inbuffer[k-1]=inbuffer[k];
115 inbuffer[offset+length_service_md5-1]=0;
116 this->service_md5 = (
char *)(inbuffer + offset-1);
117 offset += length_service_md5;
118 uint32_t length_request_md5;
119 memcpy(&length_request_md5, (inbuffer + offset),
sizeof(uint32_t));
121 for(
unsigned int k= offset; k< offset+length_request_md5; ++k){
122 inbuffer[k-1]=inbuffer[k];
124 inbuffer[offset+length_request_md5-1]=0;
125 this->request_md5 = (
char *)(inbuffer + offset-1);
126 offset += length_request_md5;
127 uint32_t length_response_md5;
128 memcpy(&length_response_md5, (inbuffer + offset),
sizeof(uint32_t));
130 for(
unsigned int k= offset; k< offset+length_response_md5; ++k){
131 inbuffer[k-1]=inbuffer[k];
133 inbuffer[offset+length_response_md5-1]=0;
134 this->response_md5 = (
char *)(inbuffer + offset-1);
135 offset += length_response_md5;
140 const char *
getMD5(){
return "c3d6dd25b909596479fbbc6559fa6874"; };
RequestServiceInfoRequest()
virtual int deserialize(unsigned char *inbuffer)
const char * response_md5
virtual int serialize(unsigned char *outbuffer) const
static const char REQUESTSERVICEINFO[]
RequestServiceInfoResponse Response
RequestServiceInfoResponse()
virtual int serialize(unsigned char *outbuffer) const
RequestServiceInfoRequest Request
virtual int deserialize(unsigned char *inbuffer)