Go to the documentation of this file.00001
00002 #ifndef SR_ROBOT_MSGS_SERVICE_SIMPLEMOTORFLASHER_H
00003 #define SR_ROBOT_MSGS_SERVICE_SIMPLEMOTORFLASHER_H
00004 #include <string>
00005 #include <vector>
00006 #include <map>
00007 #include <ostream>
00008 #include "ros/serialization.h"
00009 #include "ros/builtin_message_traits.h"
00010 #include "ros/message_operations.h"
00011 #include "ros/time.h"
00012
00013 #include "ros/macros.h"
00014
00015 #include "ros/assert.h"
00016
00017 #include "ros/service_traits.h"
00018
00019
00020
00021
00022 namespace sr_robot_msgs
00023 {
00024 template <class ContainerAllocator>
00025 struct SimpleMotorFlasherRequest_ {
00026 typedef SimpleMotorFlasherRequest_<ContainerAllocator> Type;
00027
00028 SimpleMotorFlasherRequest_()
00029 : firmware()
00030 , motor_id(0)
00031 {
00032 }
00033
00034 SimpleMotorFlasherRequest_(const ContainerAllocator& _alloc)
00035 : firmware(_alloc)
00036 , motor_id(0)
00037 {
00038 }
00039
00040 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _firmware_type;
00041 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > firmware;
00042
00043 typedef int8_t _motor_id_type;
00044 int8_t motor_id;
00045
00046
00047 typedef boost::shared_ptr< ::sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> > Ptr;
00048 typedef boost::shared_ptr< ::sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> const> ConstPtr;
00049 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00050 };
00051 typedef ::sr_robot_msgs::SimpleMotorFlasherRequest_<std::allocator<void> > SimpleMotorFlasherRequest;
00052
00053 typedef boost::shared_ptr< ::sr_robot_msgs::SimpleMotorFlasherRequest> SimpleMotorFlasherRequestPtr;
00054 typedef boost::shared_ptr< ::sr_robot_msgs::SimpleMotorFlasherRequest const> SimpleMotorFlasherRequestConstPtr;
00055
00056
00057 template <class ContainerAllocator>
00058 struct SimpleMotorFlasherResponse_ {
00059 typedef SimpleMotorFlasherResponse_<ContainerAllocator> Type;
00060
00061 SimpleMotorFlasherResponse_()
00062 : value(0)
00063 {
00064 }
00065
00066 SimpleMotorFlasherResponse_(const ContainerAllocator& _alloc)
00067 : value(0)
00068 {
00069 }
00070
00071 typedef int32_t _value_type;
00072 int32_t value;
00073
00074 enum { SUCCESS = 0 };
00075 enum { FAIL = 1 };
00076
00077 typedef boost::shared_ptr< ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> > Ptr;
00078 typedef boost::shared_ptr< ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> const> ConstPtr;
00079 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00080 };
00081 typedef ::sr_robot_msgs::SimpleMotorFlasherResponse_<std::allocator<void> > SimpleMotorFlasherResponse;
00082
00083 typedef boost::shared_ptr< ::sr_robot_msgs::SimpleMotorFlasherResponse> SimpleMotorFlasherResponsePtr;
00084 typedef boost::shared_ptr< ::sr_robot_msgs::SimpleMotorFlasherResponse const> SimpleMotorFlasherResponseConstPtr;
00085
00086 struct SimpleMotorFlasher
00087 {
00088
00089 typedef SimpleMotorFlasherRequest Request;
00090 typedef SimpleMotorFlasherResponse Response;
00091 Request request;
00092 Response response;
00093
00094 typedef Request RequestType;
00095 typedef Response ResponseType;
00096 };
00097 }
00098
00099 namespace ros
00100 {
00101 namespace message_traits
00102 {
00103 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> > : public TrueType {};
00104 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> const> : public TrueType {};
00105 template<class ContainerAllocator>
00106 struct MD5Sum< ::sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> > {
00107 static const char* value()
00108 {
00109 return "95979d9c30a49ed16e3ab17fe0edb157";
00110 }
00111
00112 static const char* value(const ::sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> &) { return value(); }
00113 static const uint64_t static_value1 = 0x95979d9c30a49ed1ULL;
00114 static const uint64_t static_value2 = 0x6e3ab17fe0edb157ULL;
00115 };
00116
00117 template<class ContainerAllocator>
00118 struct DataType< ::sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> > {
00119 static const char* value()
00120 {
00121 return "sr_robot_msgs/SimpleMotorFlasherRequest";
00122 }
00123
00124 static const char* value(const ::sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> &) { return value(); }
00125 };
00126
00127 template<class ContainerAllocator>
00128 struct Definition< ::sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> > {
00129 static const char* value()
00130 {
00131 return "string firmware\n\
00132 int8 motor_id\n\
00133 \n\
00134 ";
00135 }
00136
00137 static const char* value(const ::sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> &) { return value(); }
00138 };
00139
00140 }
00141 }
00142
00143
00144 namespace ros
00145 {
00146 namespace message_traits
00147 {
00148 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> > : public TrueType {};
00149 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> const> : public TrueType {};
00150 template<class ContainerAllocator>
00151 struct MD5Sum< ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> > {
00152 static const char* value()
00153 {
00154 return "57a3be4812415ba24758cca00aebf53f";
00155 }
00156
00157 static const char* value(const ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> &) { return value(); }
00158 static const uint64_t static_value1 = 0x57a3be4812415ba2ULL;
00159 static const uint64_t static_value2 = 0x4758cca00aebf53fULL;
00160 };
00161
00162 template<class ContainerAllocator>
00163 struct DataType< ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> > {
00164 static const char* value()
00165 {
00166 return "sr_robot_msgs/SimpleMotorFlasherResponse";
00167 }
00168
00169 static const char* value(const ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> &) { return value(); }
00170 };
00171
00172 template<class ContainerAllocator>
00173 struct Definition< ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> > {
00174 static const char* value()
00175 {
00176 return "int32 value\n\
00177 \n\
00178 int32 SUCCESS = 0\n\
00179 int32 FAIL = 1\n\
00180 \n\
00181 \n\
00182 ";
00183 }
00184
00185 static const char* value(const ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> &) { return value(); }
00186 };
00187
00188 template<class ContainerAllocator> struct IsFixedSize< ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> > : public TrueType {};
00189 }
00190 }
00191
00192 namespace ros
00193 {
00194 namespace serialization
00195 {
00196
00197 template<class ContainerAllocator> struct Serializer< ::sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> >
00198 {
00199 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00200 {
00201 stream.next(m.firmware);
00202 stream.next(m.motor_id);
00203 }
00204
00205 ROS_DECLARE_ALLINONE_SERIALIZER;
00206 };
00207 }
00208 }
00209
00210
00211 namespace ros
00212 {
00213 namespace serialization
00214 {
00215
00216 template<class ContainerAllocator> struct Serializer< ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> >
00217 {
00218 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00219 {
00220 stream.next(m.value);
00221 }
00222
00223 ROS_DECLARE_ALLINONE_SERIALIZER;
00224 };
00225 }
00226 }
00227
00228 namespace ros
00229 {
00230 namespace service_traits
00231 {
00232 template<>
00233 struct MD5Sum<sr_robot_msgs::SimpleMotorFlasher> {
00234 static const char* value()
00235 {
00236 return "b5e4cd4b44ed54dd8f018caf24a9e0c1";
00237 }
00238
00239 static const char* value(const sr_robot_msgs::SimpleMotorFlasher&) { return value(); }
00240 };
00241
00242 template<>
00243 struct DataType<sr_robot_msgs::SimpleMotorFlasher> {
00244 static const char* value()
00245 {
00246 return "sr_robot_msgs/SimpleMotorFlasher";
00247 }
00248
00249 static const char* value(const sr_robot_msgs::SimpleMotorFlasher&) { return value(); }
00250 };
00251
00252 template<class ContainerAllocator>
00253 struct MD5Sum<sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> > {
00254 static const char* value()
00255 {
00256 return "b5e4cd4b44ed54dd8f018caf24a9e0c1";
00257 }
00258
00259 static const char* value(const sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> &) { return value(); }
00260 };
00261
00262 template<class ContainerAllocator>
00263 struct DataType<sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> > {
00264 static const char* value()
00265 {
00266 return "sr_robot_msgs/SimpleMotorFlasher";
00267 }
00268
00269 static const char* value(const sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> &) { return value(); }
00270 };
00271
00272 template<class ContainerAllocator>
00273 struct MD5Sum<sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> > {
00274 static const char* value()
00275 {
00276 return "b5e4cd4b44ed54dd8f018caf24a9e0c1";
00277 }
00278
00279 static const char* value(const sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> &) { return value(); }
00280 };
00281
00282 template<class ContainerAllocator>
00283 struct DataType<sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> > {
00284 static const char* value()
00285 {
00286 return "sr_robot_msgs/SimpleMotorFlasher";
00287 }
00288
00289 static const char* value(const sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> &) { return value(); }
00290 };
00291
00292 }
00293 }
00294
00295 #endif // SR_ROBOT_MSGS_SERVICE_SIMPLEMOTORFLASHER_H
00296