Go to the documentation of this file.00001
00002 #ifndef ML_CLASSIFIERS_SERVICE_ADDCLASSDATA_H
00003 #define ML_CLASSIFIERS_SERVICE_ADDCLASSDATA_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 #include "ml_classifiers/ClassDataPoint.h"
00020
00021
00022
00023 namespace ml_classifiers
00024 {
00025 template <class ContainerAllocator>
00026 struct AddClassDataRequest_ {
00027 typedef AddClassDataRequest_<ContainerAllocator> Type;
00028
00029 AddClassDataRequest_()
00030 : identifier()
00031 , data()
00032 {
00033 }
00034
00035 AddClassDataRequest_(const ContainerAllocator& _alloc)
00036 : identifier(_alloc)
00037 , data(_alloc)
00038 {
00039 }
00040
00041 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _identifier_type;
00042 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > identifier;
00043
00044 typedef std::vector< ::ml_classifiers::ClassDataPoint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::ml_classifiers::ClassDataPoint_<ContainerAllocator> >::other > _data_type;
00045 std::vector< ::ml_classifiers::ClassDataPoint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::ml_classifiers::ClassDataPoint_<ContainerAllocator> >::other > data;
00046
00047
00048 typedef boost::shared_ptr< ::ml_classifiers::AddClassDataRequest_<ContainerAllocator> > Ptr;
00049 typedef boost::shared_ptr< ::ml_classifiers::AddClassDataRequest_<ContainerAllocator> const> ConstPtr;
00050 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00051 };
00052 typedef ::ml_classifiers::AddClassDataRequest_<std::allocator<void> > AddClassDataRequest;
00053
00054 typedef boost::shared_ptr< ::ml_classifiers::AddClassDataRequest> AddClassDataRequestPtr;
00055 typedef boost::shared_ptr< ::ml_classifiers::AddClassDataRequest const> AddClassDataRequestConstPtr;
00056
00057
00058 template <class ContainerAllocator>
00059 struct AddClassDataResponse_ {
00060 typedef AddClassDataResponse_<ContainerAllocator> Type;
00061
00062 AddClassDataResponse_()
00063 : success(false)
00064 {
00065 }
00066
00067 AddClassDataResponse_(const ContainerAllocator& _alloc)
00068 : success(false)
00069 {
00070 }
00071
00072 typedef uint8_t _success_type;
00073 uint8_t success;
00074
00075
00076 typedef boost::shared_ptr< ::ml_classifiers::AddClassDataResponse_<ContainerAllocator> > Ptr;
00077 typedef boost::shared_ptr< ::ml_classifiers::AddClassDataResponse_<ContainerAllocator> const> ConstPtr;
00078 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00079 };
00080 typedef ::ml_classifiers::AddClassDataResponse_<std::allocator<void> > AddClassDataResponse;
00081
00082 typedef boost::shared_ptr< ::ml_classifiers::AddClassDataResponse> AddClassDataResponsePtr;
00083 typedef boost::shared_ptr< ::ml_classifiers::AddClassDataResponse const> AddClassDataResponseConstPtr;
00084
00085 struct AddClassData
00086 {
00087
00088 typedef AddClassDataRequest Request;
00089 typedef AddClassDataResponse Response;
00090 Request request;
00091 Response response;
00092
00093 typedef Request RequestType;
00094 typedef Response ResponseType;
00095 };
00096 }
00097
00098 namespace ros
00099 {
00100 namespace message_traits
00101 {
00102 template<class ContainerAllocator> struct IsMessage< ::ml_classifiers::AddClassDataRequest_<ContainerAllocator> > : public TrueType {};
00103 template<class ContainerAllocator> struct IsMessage< ::ml_classifiers::AddClassDataRequest_<ContainerAllocator> const> : public TrueType {};
00104 template<class ContainerAllocator>
00105 struct MD5Sum< ::ml_classifiers::AddClassDataRequest_<ContainerAllocator> > {
00106 static const char* value()
00107 {
00108 return "572733f6e77cd60bddc5c0b72307999c";
00109 }
00110
00111 static const char* value(const ::ml_classifiers::AddClassDataRequest_<ContainerAllocator> &) { return value(); }
00112 static const uint64_t static_value1 = 0x572733f6e77cd60bULL;
00113 static const uint64_t static_value2 = 0xddc5c0b72307999cULL;
00114 };
00115
00116 template<class ContainerAllocator>
00117 struct DataType< ::ml_classifiers::AddClassDataRequest_<ContainerAllocator> > {
00118 static const char* value()
00119 {
00120 return "ml_classifiers/AddClassDataRequest";
00121 }
00122
00123 static const char* value(const ::ml_classifiers::AddClassDataRequest_<ContainerAllocator> &) { return value(); }
00124 };
00125
00126 template<class ContainerAllocator>
00127 struct Definition< ::ml_classifiers::AddClassDataRequest_<ContainerAllocator> > {
00128 static const char* value()
00129 {
00130 return "string identifier\n\
00131 ClassDataPoint[] data\n\
00132 \n\
00133 ================================================================================\n\
00134 MSG: ml_classifiers/ClassDataPoint\n\
00135 string target_class\n\
00136 float64[] point\n\
00137 \n\
00138 ";
00139 }
00140
00141 static const char* value(const ::ml_classifiers::AddClassDataRequest_<ContainerAllocator> &) { return value(); }
00142 };
00143
00144 }
00145 }
00146
00147
00148 namespace ros
00149 {
00150 namespace message_traits
00151 {
00152 template<class ContainerAllocator> struct IsMessage< ::ml_classifiers::AddClassDataResponse_<ContainerAllocator> > : public TrueType {};
00153 template<class ContainerAllocator> struct IsMessage< ::ml_classifiers::AddClassDataResponse_<ContainerAllocator> const> : public TrueType {};
00154 template<class ContainerAllocator>
00155 struct MD5Sum< ::ml_classifiers::AddClassDataResponse_<ContainerAllocator> > {
00156 static const char* value()
00157 {
00158 return "358e233cde0c8a8bcfea4ce193f8fc15";
00159 }
00160
00161 static const char* value(const ::ml_classifiers::AddClassDataResponse_<ContainerAllocator> &) { return value(); }
00162 static const uint64_t static_value1 = 0x358e233cde0c8a8bULL;
00163 static const uint64_t static_value2 = 0xcfea4ce193f8fc15ULL;
00164 };
00165
00166 template<class ContainerAllocator>
00167 struct DataType< ::ml_classifiers::AddClassDataResponse_<ContainerAllocator> > {
00168 static const char* value()
00169 {
00170 return "ml_classifiers/AddClassDataResponse";
00171 }
00172
00173 static const char* value(const ::ml_classifiers::AddClassDataResponse_<ContainerAllocator> &) { return value(); }
00174 };
00175
00176 template<class ContainerAllocator>
00177 struct Definition< ::ml_classifiers::AddClassDataResponse_<ContainerAllocator> > {
00178 static const char* value()
00179 {
00180 return "bool success\n\
00181 \n\
00182 \n\
00183 \n\
00184 \n\
00185 \n\
00186 \n\
00187 ";
00188 }
00189
00190 static const char* value(const ::ml_classifiers::AddClassDataResponse_<ContainerAllocator> &) { return value(); }
00191 };
00192
00193 template<class ContainerAllocator> struct IsFixedSize< ::ml_classifiers::AddClassDataResponse_<ContainerAllocator> > : public TrueType {};
00194 }
00195 }
00196
00197 namespace ros
00198 {
00199 namespace serialization
00200 {
00201
00202 template<class ContainerAllocator> struct Serializer< ::ml_classifiers::AddClassDataRequest_<ContainerAllocator> >
00203 {
00204 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00205 {
00206 stream.next(m.identifier);
00207 stream.next(m.data);
00208 }
00209
00210 ROS_DECLARE_ALLINONE_SERIALIZER;
00211 };
00212 }
00213 }
00214
00215
00216 namespace ros
00217 {
00218 namespace serialization
00219 {
00220
00221 template<class ContainerAllocator> struct Serializer< ::ml_classifiers::AddClassDataResponse_<ContainerAllocator> >
00222 {
00223 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00224 {
00225 stream.next(m.success);
00226 }
00227
00228 ROS_DECLARE_ALLINONE_SERIALIZER;
00229 };
00230 }
00231 }
00232
00233 namespace ros
00234 {
00235 namespace service_traits
00236 {
00237 template<>
00238 struct MD5Sum<ml_classifiers::AddClassData> {
00239 static const char* value()
00240 {
00241 return "d4c3cb23d4d2e3dec5588818fec39e8c";
00242 }
00243
00244 static const char* value(const ml_classifiers::AddClassData&) { return value(); }
00245 };
00246
00247 template<>
00248 struct DataType<ml_classifiers::AddClassData> {
00249 static const char* value()
00250 {
00251 return "ml_classifiers/AddClassData";
00252 }
00253
00254 static const char* value(const ml_classifiers::AddClassData&) { return value(); }
00255 };
00256
00257 template<class ContainerAllocator>
00258 struct MD5Sum<ml_classifiers::AddClassDataRequest_<ContainerAllocator> > {
00259 static const char* value()
00260 {
00261 return "d4c3cb23d4d2e3dec5588818fec39e8c";
00262 }
00263
00264 static const char* value(const ml_classifiers::AddClassDataRequest_<ContainerAllocator> &) { return value(); }
00265 };
00266
00267 template<class ContainerAllocator>
00268 struct DataType<ml_classifiers::AddClassDataRequest_<ContainerAllocator> > {
00269 static const char* value()
00270 {
00271 return "ml_classifiers/AddClassData";
00272 }
00273
00274 static const char* value(const ml_classifiers::AddClassDataRequest_<ContainerAllocator> &) { return value(); }
00275 };
00276
00277 template<class ContainerAllocator>
00278 struct MD5Sum<ml_classifiers::AddClassDataResponse_<ContainerAllocator> > {
00279 static const char* value()
00280 {
00281 return "d4c3cb23d4d2e3dec5588818fec39e8c";
00282 }
00283
00284 static const char* value(const ml_classifiers::AddClassDataResponse_<ContainerAllocator> &) { return value(); }
00285 };
00286
00287 template<class ContainerAllocator>
00288 struct DataType<ml_classifiers::AddClassDataResponse_<ContainerAllocator> > {
00289 static const char* value()
00290 {
00291 return "ml_classifiers/AddClassData";
00292 }
00293
00294 static const char* value(const ml_classifiers::AddClassDataResponse_<ContainerAllocator> &) { return value(); }
00295 };
00296
00297 }
00298 }
00299
00300 #endif // ML_CLASSIFIERS_SERVICE_ADDCLASSDATA_H
00301