home_elevator.h
Go to the documentation of this file.
00001 #ifndef _ROS_SERVICE_home_elevator_h
00002 #define _ROS_SERVICE_home_elevator_h
00003 #include <stdint.h>
00004 #include <string.h>
00005 #include <stdlib.h>
00006 #include "ros/msg.h"
00007 
00008 namespace ric_robot
00009 {
00010 
00011 static const char HOME_ELEVATOR[] = "ric_robot/home_elevator";
00012 
00013   class home_elevatorRequest : public ros::Msg
00014   {
00015     public:
00016       int8_t dir;
00017 
00018     virtual int serialize(unsigned char *outbuffer) const
00019     {
00020       int offset = 0;
00021       union {
00022         int8_t real;
00023         uint8_t base;
00024       } u_dir;
00025       u_dir.real = this->dir;
00026       *(outbuffer + offset + 0) = (u_dir.base >> (8 * 0)) & 0xFF;
00027       offset += sizeof(this->dir);
00028       return offset;
00029     }
00030 
00031     virtual int deserialize(unsigned char *inbuffer)
00032     {
00033       int offset = 0;
00034       union {
00035         int8_t real;
00036         uint8_t base;
00037       } u_dir;
00038       u_dir.base = 0;
00039       u_dir.base |= ((uint8_t) (*(inbuffer + offset + 0))) << (8 * 0);
00040       this->dir = u_dir.real;
00041       offset += sizeof(this->dir);
00042      return offset;
00043     }
00044 
00045     const char * getType(){ return HOME_ELEVATOR; };
00046     const char * getMD5(){ return "1cf84cfbab276e0cb1fa7c3b384eb912"; };
00047 
00048   };
00049 
00050   class home_elevatorResponse : public ros::Msg
00051   {
00052     public:
00053       bool ack;
00054 
00055     virtual int serialize(unsigned char *outbuffer) const
00056     {
00057       int offset = 0;
00058       union {
00059         bool real;
00060         uint8_t base;
00061       } u_ack;
00062       u_ack.real = this->ack;
00063       *(outbuffer + offset + 0) = (u_ack.base >> (8 * 0)) & 0xFF;
00064       offset += sizeof(this->ack);
00065       return offset;
00066     }
00067 
00068     virtual int deserialize(unsigned char *inbuffer)
00069     {
00070       int offset = 0;
00071       union {
00072         bool real;
00073         uint8_t base;
00074       } u_ack;
00075       u_ack.base = 0;
00076       u_ack.base |= ((uint8_t) (*(inbuffer + offset + 0))) << (8 * 0);
00077       this->ack = u_ack.real;
00078       offset += sizeof(this->ack);
00079      return offset;
00080     }
00081 
00082     const char * getType(){ return HOME_ELEVATOR; };
00083     const char * getMD5(){ return "8f5729177853f34b146e2e57766d4dc2"; };
00084 
00085   };
00086 
00087   class home_elevator {
00088     public:
00089     typedef home_elevatorRequest Request;
00090     typedef home_elevatorResponse Response;
00091   };
00092 
00093 }
00094 #endif


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