QueryCalibrationState.h
Go to the documentation of this file.
00001 #ifndef _ROS_SERVICE_QueryCalibrationState_h
00002 #define _ROS_SERVICE_QueryCalibrationState_h
00003 #include <stdint.h>
00004 #include <string.h>
00005 #include <stdlib.h>
00006 #include "ros/msg.h"
00007 
00008 namespace pr2_controllers_msgs
00009 {
00010 
00011 static const char QUERYCALIBRATIONSTATE[] = "pr2_controllers_msgs/QueryCalibrationState";
00012 
00013   class QueryCalibrationStateRequest : public ros::Msg
00014   {
00015     public:
00016 
00017     virtual int serialize(unsigned char *outbuffer) const
00018     {
00019       int offset = 0;
00020       return offset;
00021     }
00022 
00023     virtual int deserialize(unsigned char *inbuffer)
00024     {
00025       int offset = 0;
00026      return offset;
00027     }
00028 
00029     const char * getType(){ return QUERYCALIBRATIONSTATE; };
00030     const char * getMD5(){ return "d41d8cd98f00b204e9800998ecf8427e"; };
00031 
00032   };
00033 
00034   class QueryCalibrationStateResponse : public ros::Msg
00035   {
00036     public:
00037       bool is_calibrated;
00038 
00039     virtual int serialize(unsigned char *outbuffer) const
00040     {
00041       int offset = 0;
00042       union {
00043         bool real;
00044         uint8_t base;
00045       } u_is_calibrated;
00046       u_is_calibrated.real = this->is_calibrated;
00047       *(outbuffer + offset + 0) = (u_is_calibrated.base >> (8 * 0)) & 0xFF;
00048       offset += sizeof(this->is_calibrated);
00049       return offset;
00050     }
00051 
00052     virtual int deserialize(unsigned char *inbuffer)
00053     {
00054       int offset = 0;
00055       union {
00056         bool real;
00057         uint8_t base;
00058       } u_is_calibrated;
00059       u_is_calibrated.base = 0;
00060       u_is_calibrated.base |= ((uint8_t) (*(inbuffer + offset + 0))) << (8 * 0);
00061       this->is_calibrated = u_is_calibrated.real;
00062       offset += sizeof(this->is_calibrated);
00063      return offset;
00064     }
00065 
00066     const char * getType(){ return QUERYCALIBRATIONSTATE; };
00067     const char * getMD5(){ return "28af3beedcb84986b8e470dc5470507d"; };
00068 
00069   };
00070 
00071   class QueryCalibrationState {
00072     public:
00073     typedef QueryCalibrationStateRequest Request;
00074     typedef QueryCalibrationStateResponse Response;
00075   };
00076 
00077 }
00078 #endif


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