Go to the documentation of this file.00001 #ifndef _ROS_SERVICE_ReloadControllerLibraries_h
00002 #define _ROS_SERVICE_ReloadControllerLibraries_h
00003 #include <stdint.h>
00004 #include <string.h>
00005 #include <stdlib.h>
00006 #include "ros/msg.h"
00007
00008 namespace controller_manager_msgs
00009 {
00010
00011 static const char RELOADCONTROLLERLIBRARIES[] = "controller_manager_msgs/ReloadControllerLibraries";
00012
00013 class ReloadControllerLibrariesRequest : public ros::Msg
00014 {
00015 public:
00016 bool force_kill;
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_force_kill;
00025 u_force_kill.real = this->force_kill;
00026 *(outbuffer + offset + 0) = (u_force_kill.base >> (8 * 0)) & 0xFF;
00027 offset += sizeof(this->force_kill);
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_force_kill;
00038 u_force_kill.base = 0;
00039 u_force_kill.base |= ((uint8_t) (*(inbuffer + offset + 0))) << (8 * 0);
00040 this->force_kill = u_force_kill.real;
00041 offset += sizeof(this->force_kill);
00042 return offset;
00043 }
00044
00045 const char * getType(){ return RELOADCONTROLLERLIBRARIES; };
00046 const char * getMD5(){ return "18442b59be9479097f11c543bddbac62"; };
00047
00048 };
00049
00050 class ReloadControllerLibrariesResponse : public ros::Msg
00051 {
00052 public:
00053 bool ok;
00054
00055 virtual int serialize(unsigned char *outbuffer) const
00056 {
00057 int offset = 0;
00058 union {
00059 bool real;
00060 uint8_t base;
00061 } u_ok;
00062 u_ok.real = this->ok;
00063 *(outbuffer + offset + 0) = (u_ok.base >> (8 * 0)) & 0xFF;
00064 offset += sizeof(this->ok);
00065 return offset;
00066 }
00067
00068 virtual int deserialize(unsigned char *inbuffer)
00069 {
00070 int offset = 0;
00071 union {
00072 bool real;
00073 uint8_t base;
00074 } u_ok;
00075 u_ok.base = 0;
00076 u_ok.base |= ((uint8_t) (*(inbuffer + offset + 0))) << (8 * 0);
00077 this->ok = u_ok.real;
00078 offset += sizeof(this->ok);
00079 return offset;
00080 }
00081
00082 const char * getType(){ return RELOADCONTROLLERLIBRARIES; };
00083 const char * getMD5(){ return "6f6da3883749771fac40d6deb24a8c02"; };
00084
00085 };
00086
00087 class ReloadControllerLibraries {
00088 public:
00089 typedef ReloadControllerLibrariesRequest Request;
00090 typedef ReloadControllerLibrariesResponse Response;
00091 };
00092
00093 }
00094 #endif