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


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