00001 #ifndef _ROS_SERVICE_SetComplianceSlope_h 00002 #define _ROS_SERVICE_SetComplianceSlope_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 SETCOMPLIANCESLOPE[] = "dynamixel_controllers/SetComplianceSlope"; 00012 00013 class SetComplianceSlopeRequest : public ros::Msg 00014 { 00015 public: 00016 uint8_t slope; 00017 00018 virtual int serialize(unsigned char *outbuffer) const 00019 { 00020 int offset = 0; 00021 *(outbuffer + offset + 0) = (this->slope >> (8 * 0)) & 0xFF; 00022 offset += sizeof(this->slope); 00023 return offset; 00024 } 00025 00026 virtual int deserialize(unsigned char *inbuffer) 00027 { 00028 int offset = 0; 00029 this->slope = ((uint8_t) (*(inbuffer + offset))); 00030 offset += sizeof(this->slope); 00031 return offset; 00032 } 00033 00034 const char * getType(){ return SETCOMPLIANCESLOPE; }; 00035 const char * getMD5(){ return "0b655cbe1b74daf357824dcc427c1004"; }; 00036 00037 }; 00038 00039 class SetComplianceSlopeResponse : public ros::Msg 00040 { 00041 public: 00042 00043 virtual int serialize(unsigned char *outbuffer) const 00044 { 00045 int offset = 0; 00046 return offset; 00047 } 00048 00049 virtual int deserialize(unsigned char *inbuffer) 00050 { 00051 int offset = 0; 00052 return offset; 00053 } 00054 00055 const char * getType(){ return SETCOMPLIANCESLOPE; }; 00056 const char * getMD5(){ return "d41d8cd98f00b204e9800998ecf8427e"; }; 00057 00058 }; 00059 00060 class SetComplianceSlope { 00061 public: 00062 typedef SetComplianceSlopeRequest Request; 00063 typedef SetComplianceSlopeResponse Response; 00064 }; 00065 00066 } 00067 #endif