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


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