BodyRequest.h
Go to the documentation of this file.
00001 #ifndef _ROS_SERVICE_BodyRequest_h
00002 #define _ROS_SERVICE_BodyRequest_h
00003 #include <stdint.h>
00004 #include <string.h>
00005 #include <stdlib.h>
00006 #include "ros/msg.h"
00007 
00008 namespace gazebo_msgs
00009 {
00010 
00011 static const char BODYREQUEST[] = "gazebo_msgs/BodyRequest";
00012 
00013   class BodyRequestRequest : public ros::Msg
00014   {
00015     public:
00016       const char* body_name;
00017 
00018     virtual int serialize(unsigned char *outbuffer) const
00019     {
00020       int offset = 0;
00021       uint32_t length_body_name = strlen(this->body_name);
00022       memcpy(outbuffer + offset, &length_body_name, sizeof(uint32_t));
00023       offset += 4;
00024       memcpy(outbuffer + offset, this->body_name, length_body_name);
00025       offset += length_body_name;
00026       return offset;
00027     }
00028 
00029     virtual int deserialize(unsigned char *inbuffer)
00030     {
00031       int offset = 0;
00032       uint32_t length_body_name;
00033       memcpy(&length_body_name, (inbuffer + offset), sizeof(uint32_t));
00034       offset += 4;
00035       for(unsigned int k= offset; k< offset+length_body_name; ++k){
00036           inbuffer[k-1]=inbuffer[k];
00037       }
00038       inbuffer[offset+length_body_name-1]=0;
00039       this->body_name = (char *)(inbuffer + offset-1);
00040       offset += length_body_name;
00041      return offset;
00042     }
00043 
00044     const char * getType(){ return BODYREQUEST; };
00045     const char * getMD5(){ return "5eade9afe7f232d78005bd0cafeab755"; };
00046 
00047   };
00048 
00049   class BodyRequestResponse : public ros::Msg
00050   {
00051     public:
00052 
00053     virtual int serialize(unsigned char *outbuffer) const
00054     {
00055       int offset = 0;
00056       return offset;
00057     }
00058 
00059     virtual int deserialize(unsigned char *inbuffer)
00060     {
00061       int offset = 0;
00062      return offset;
00063     }
00064 
00065     const char * getType(){ return BODYREQUEST; };
00066     const char * getMD5(){ return "d41d8cd98f00b204e9800998ecf8427e"; };
00067 
00068   };
00069 
00070   class BodyRequest {
00071     public:
00072     typedef BodyRequestRequest Request;
00073     typedef BodyRequestResponse Response;
00074   };
00075 
00076 }
00077 #endif


ric_mc
Author(s): RoboTiCan
autogenerated on Fri May 20 2016 03:48:55