GraspPlanningErrorCode.h
Go to the documentation of this file.
00001 #ifndef _ROS_manipulation_msgs_GraspPlanningErrorCode_h
00002 #define _ROS_manipulation_msgs_GraspPlanningErrorCode_h
00003 
00004 #include <stdint.h>
00005 #include <string.h>
00006 #include <stdlib.h>
00007 #include "ros/msg.h"
00008 
00009 namespace manipulation_msgs
00010 {
00011 
00012   class GraspPlanningErrorCode : public ros::Msg
00013   {
00014     public:
00015       int32_t value;
00016       enum { SUCCESS =  0 };
00017       enum { TF_ERROR =  1 };
00018       enum { OTHER_ERROR =  2 };
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_value;
00027       u_value.real = this->value;
00028       *(outbuffer + offset + 0) = (u_value.base >> (8 * 0)) & 0xFF;
00029       *(outbuffer + offset + 1) = (u_value.base >> (8 * 1)) & 0xFF;
00030       *(outbuffer + offset + 2) = (u_value.base >> (8 * 2)) & 0xFF;
00031       *(outbuffer + offset + 3) = (u_value.base >> (8 * 3)) & 0xFF;
00032       offset += sizeof(this->value);
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_value;
00043       u_value.base = 0;
00044       u_value.base |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0);
00045       u_value.base |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
00046       u_value.base |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
00047       u_value.base |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
00048       this->value = u_value.real;
00049       offset += sizeof(this->value);
00050      return offset;
00051     }
00052 
00053     const char * getType(){ return "manipulation_msgs/GraspPlanningErrorCode"; };
00054     const char * getMD5(){ return "d0cbf262cc3d8075a46b994eef1bdb2a"; };
00055 
00056   };
00057 
00058 }
00059 #endif


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