ManipulationResult.h
Go to the documentation of this file.
00001 #ifndef _ROS_manipulation_msgs_ManipulationResult_h
00002 #define _ROS_manipulation_msgs_ManipulationResult_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 ManipulationResult : public ros::Msg
00013   {
00014     public:
00015       int32_t value;
00016       enum { SUCCESS =  1 };
00017       enum { UNFEASIBLE =  -1 };
00018       enum { FAILED =  -2 };
00019       enum { ERROR =  -3 };
00020       enum { ARM_MOVEMENT_PREVENTED =  -4 };
00021       enum { LIFT_FAILED =  -5 };
00022       enum { RETREAT_FAILED =  -6 };
00023       enum { CANCELLED =  -7 };
00024 
00025     virtual int serialize(unsigned char *outbuffer) const
00026     {
00027       int offset = 0;
00028       union {
00029         int32_t real;
00030         uint32_t base;
00031       } u_value;
00032       u_value.real = this->value;
00033       *(outbuffer + offset + 0) = (u_value.base >> (8 * 0)) & 0xFF;
00034       *(outbuffer + offset + 1) = (u_value.base >> (8 * 1)) & 0xFF;
00035       *(outbuffer + offset + 2) = (u_value.base >> (8 * 2)) & 0xFF;
00036       *(outbuffer + offset + 3) = (u_value.base >> (8 * 3)) & 0xFF;
00037       offset += sizeof(this->value);
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_value;
00048       u_value.base = 0;
00049       u_value.base |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0);
00050       u_value.base |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
00051       u_value.base |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
00052       u_value.base |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
00053       this->value = u_value.real;
00054       offset += sizeof(this->value);
00055      return offset;
00056     }
00057 
00058     const char * getType(){ return "manipulation_msgs/ManipulationResult"; };
00059     const char * getMD5(){ return "85f8d010e045fcb335637fc8fc59184b"; };
00060 
00061   };
00062 
00063 }
00064 #endif


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