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


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