TestRequestResult.h
Go to the documentation of this file.
00001 #ifndef _ROS_actionlib_TestRequestResult_h
00002 #define _ROS_actionlib_TestRequestResult_h
00003 
00004 #include <stdint.h>
00005 #include <string.h>
00006 #include <stdlib.h>
00007 #include "ros/msg.h"
00008 
00009 namespace actionlib
00010 {
00011 
00012   class TestRequestResult : public ros::Msg
00013   {
00014     public:
00015       int32_t the_result;
00016       bool is_simple_server;
00017 
00018     virtual int serialize(unsigned char *outbuffer) const
00019     {
00020       int offset = 0;
00021       union {
00022         int32_t real;
00023         uint32_t base;
00024       } u_the_result;
00025       u_the_result.real = this->the_result;
00026       *(outbuffer + offset + 0) = (u_the_result.base >> (8 * 0)) & 0xFF;
00027       *(outbuffer + offset + 1) = (u_the_result.base >> (8 * 1)) & 0xFF;
00028       *(outbuffer + offset + 2) = (u_the_result.base >> (8 * 2)) & 0xFF;
00029       *(outbuffer + offset + 3) = (u_the_result.base >> (8 * 3)) & 0xFF;
00030       offset += sizeof(this->the_result);
00031       union {
00032         bool real;
00033         uint8_t base;
00034       } u_is_simple_server;
00035       u_is_simple_server.real = this->is_simple_server;
00036       *(outbuffer + offset + 0) = (u_is_simple_server.base >> (8 * 0)) & 0xFF;
00037       offset += sizeof(this->is_simple_server);
00038       return offset;
00039     }
00040 
00041     virtual int deserialize(unsigned char *inbuffer)
00042     {
00043       int offset = 0;
00044       union {
00045         int32_t real;
00046         uint32_t base;
00047       } u_the_result;
00048       u_the_result.base = 0;
00049       u_the_result.base |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0);
00050       u_the_result.base |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
00051       u_the_result.base |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
00052       u_the_result.base |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
00053       this->the_result = u_the_result.real;
00054       offset += sizeof(this->the_result);
00055       union {
00056         bool real;
00057         uint8_t base;
00058       } u_is_simple_server;
00059       u_is_simple_server.base = 0;
00060       u_is_simple_server.base |= ((uint8_t) (*(inbuffer + offset + 0))) << (8 * 0);
00061       this->is_simple_server = u_is_simple_server.real;
00062       offset += sizeof(this->is_simple_server);
00063      return offset;
00064     }
00065 
00066     const char * getType(){ return "actionlib/TestRequestResult"; };
00067     const char * getMD5(){ return "61c2364524499c7c5017e2f3fce7ba06"; };
00068 
00069   };
00070 
00071 }
00072 #endif


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