1 #ifndef _ROS_SERVICE_FrameGraph_h
2 #define _ROS_SERVICE_FrameGraph_h
21 virtual int serialize(
unsigned char *outbuffer)
const
34 const char *
getMD5(){
return "d41d8cd98f00b204e9800998ecf8427e"; };
48 virtual int serialize(
unsigned char *outbuffer)
const
51 uint32_t length_frame_yaml = strlen(this->
frame_yaml);
52 memcpy(outbuffer + offset, &length_frame_yaml,
sizeof(uint32_t));
54 memcpy(outbuffer + offset, this->
frame_yaml, length_frame_yaml);
55 offset += length_frame_yaml;
62 uint32_t length_frame_yaml;
63 memcpy(&length_frame_yaml, (inbuffer + offset),
sizeof(uint32_t));
65 for(
unsigned int k= offset; k< offset+length_frame_yaml; ++k){
66 inbuffer[k-1]=inbuffer[k];
68 inbuffer[offset+length_frame_yaml-1]=0;
69 this->
frame_yaml = (
char *)(inbuffer + offset-1);
70 offset += length_frame_yaml;
75 const char *
getMD5(){
return "437ea58e9463815a0d511c7326b686b0"; };
Definition: FrameGraph.h:38
virtual int serialize(unsigned char *outbuffer) const
Definition: FrameGraph.h:21
virtual int serialize(unsigned char *outbuffer) const
Definition: FrameGraph.h:48
virtual int deserialize(unsigned char *inbuffer)
Definition: FrameGraph.h:27
const char * getMD5()
Definition: FrameGraph.h:75
FrameGraphRequest()
Definition: FrameGraph.h:17
const char * getMD5()
Definition: FrameGraph.h:34
FrameGraphRequest Request
Definition: FrameGraph.h:81
FrameGraphResponse()
Definition: FrameGraph.h:43
static const char FRAMEGRAPH[]
Definition: FrameGraph.h:11
const char * getType()
Definition: FrameGraph.h:33
virtual int deserialize(unsigned char *inbuffer)
Definition: FrameGraph.h:59
const char * getType()
Definition: FrameGraph.h:74
Definition: FrameGraph.h:79
FrameGraphResponse Response
Definition: FrameGraph.h:82
Definition: FrameGraph.h:13
const char * frame_yaml
Definition: FrameGraph.h:41