18 #ifndef _ROS_SERVICE_RequestMessageInfo_h 19 #define _ROS_SERVICE_RequestMessageInfo_h 40 virtual int serialize(
unsigned char *outbuffer)
const 43 uint32_t length_type = strlen(this->type);
44 memcpy(outbuffer + offset, &length_type,
sizeof(uint32_t));
46 memcpy(outbuffer + offset, this->type, length_type);
47 offset += length_type;
55 memcpy(&length_type, (inbuffer + offset),
sizeof(uint32_t));
57 for(
unsigned int k= offset; k< offset+length_type; ++k){
58 inbuffer[k-1]=inbuffer[k];
60 inbuffer[offset+length_type-1]=0;
61 this->type = (
char *)(inbuffer + offset-1);
62 offset += length_type;
67 const char *
getMD5(){
return "dc67331de85cf97091b7d45e5c64ab75"; };
83 virtual int serialize(
unsigned char *outbuffer)
const 86 uint32_t length_md5 = strlen(this->md5);
87 memcpy(outbuffer + offset, &length_md5,
sizeof(uint32_t));
89 memcpy(outbuffer + offset, this->md5, length_md5);
91 uint32_t length_definition = strlen(this->definition);
92 memcpy(outbuffer + offset, &length_definition,
sizeof(uint32_t));
94 memcpy(outbuffer + offset, this->definition, length_definition);
95 offset += length_definition;
103 memcpy(&length_md5, (inbuffer + offset),
sizeof(uint32_t));
105 for(
unsigned int k= offset; k< offset+length_md5; ++k){
106 inbuffer[k-1]=inbuffer[k];
108 inbuffer[offset+length_md5-1]=0;
109 this->md5 = (
char *)(inbuffer + offset-1);
110 offset += length_md5;
111 uint32_t length_definition;
112 memcpy(&length_definition, (inbuffer + offset),
sizeof(uint32_t));
114 for(
unsigned int k= offset; k< offset+length_definition; ++k){
115 inbuffer[k-1]=inbuffer[k];
117 inbuffer[offset+length_definition-1]=0;
118 this->definition = (
char *)(inbuffer + offset-1);
119 offset += length_definition;
124 const char *
getMD5(){
return "fe452186a069bed40f09b8628fe5eac8"; };
virtual int deserialize(unsigned char *inbuffer)
virtual int deserialize(unsigned char *inbuffer)
virtual int serialize(unsigned char *outbuffer) const
RequestMessageInfoResponse()
virtual int serialize(unsigned char *outbuffer) const
RequestMessageInfoResponse Response
RequestMessageInfoRequest Request
RequestMessageInfoRequest()
static const char REQUESTMESSAGEINFO[]