SetPen.h
Go to the documentation of this file.
00001 #ifndef _ROS_SERVICE_SetPen_h
00002 #define _ROS_SERVICE_SetPen_h
00003 #include <stdint.h>
00004 #include <string.h>
00005 #include <stdlib.h>
00006 #include "ros/msg.h"
00007 
00008 namespace turtlesim
00009 {
00010 
00011 static const char SETPEN[] = "turtlesim/SetPen";
00012 
00013   class SetPenRequest : public ros::Msg
00014   {
00015     public:
00016       uint8_t r;
00017       uint8_t g;
00018       uint8_t b;
00019       uint8_t width;
00020       uint8_t off;
00021 
00022     virtual int serialize(unsigned char *outbuffer) const
00023     {
00024       int offset = 0;
00025       *(outbuffer + offset + 0) = (this->r >> (8 * 0)) & 0xFF;
00026       offset += sizeof(this->r);
00027       *(outbuffer + offset + 0) = (this->g >> (8 * 0)) & 0xFF;
00028       offset += sizeof(this->g);
00029       *(outbuffer + offset + 0) = (this->b >> (8 * 0)) & 0xFF;
00030       offset += sizeof(this->b);
00031       *(outbuffer + offset + 0) = (this->width >> (8 * 0)) & 0xFF;
00032       offset += sizeof(this->width);
00033       *(outbuffer + offset + 0) = (this->off >> (8 * 0)) & 0xFF;
00034       offset += sizeof(this->off);
00035       return offset;
00036     }
00037 
00038     virtual int deserialize(unsigned char *inbuffer)
00039     {
00040       int offset = 0;
00041       this->r =  ((uint8_t) (*(inbuffer + offset)));
00042       offset += sizeof(this->r);
00043       this->g =  ((uint8_t) (*(inbuffer + offset)));
00044       offset += sizeof(this->g);
00045       this->b =  ((uint8_t) (*(inbuffer + offset)));
00046       offset += sizeof(this->b);
00047       this->width =  ((uint8_t) (*(inbuffer + offset)));
00048       offset += sizeof(this->width);
00049       this->off =  ((uint8_t) (*(inbuffer + offset)));
00050       offset += sizeof(this->off);
00051      return offset;
00052     }
00053 
00054     const char * getType(){ return SETPEN; };
00055     const char * getMD5(){ return "9f452acce566bf0c0954594f69a8e41b"; };
00056 
00057   };
00058 
00059   class SetPenResponse : public ros::Msg
00060   {
00061     public:
00062 
00063     virtual int serialize(unsigned char *outbuffer) const
00064     {
00065       int offset = 0;
00066       return offset;
00067     }
00068 
00069     virtual int deserialize(unsigned char *inbuffer)
00070     {
00071       int offset = 0;
00072      return offset;
00073     }
00074 
00075     const char * getType(){ return SETPEN; };
00076     const char * getMD5(){ return "d41d8cd98f00b204e9800998ecf8427e"; };
00077 
00078   };
00079 
00080   class SetPen {
00081     public:
00082     typedef SetPenRequest Request;
00083     typedef SetPenResponse Response;
00084   };
00085 
00086 }
00087 #endif


ric_mc
Author(s): RoboTiCan
autogenerated on Thu Aug 27 2015 14:39:50