Go to the documentation of this file.00001
00002 #ifndef ML_CLASSIFIERS_SERVICE_CLASSIFYDATA_H
00003 #define ML_CLASSIFIERS_SERVICE_CLASSIFYDATA_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 ClassifyDataRequest_ {
00027 typedef ClassifyDataRequest_<ContainerAllocator> Type;
00028
00029 ClassifyDataRequest_()
00030 : identifier()
00031 , data()
00032 {
00033 }
00034
00035 ClassifyDataRequest_(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::ClassifyDataRequest_<ContainerAllocator> > Ptr;
00049 typedef boost::shared_ptr< ::ml_classifiers::ClassifyDataRequest_<ContainerAllocator> const> ConstPtr;
00050 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00051 };
00052 typedef ::ml_classifiers::ClassifyDataRequest_<std::allocator<void> > ClassifyDataRequest;
00053
00054 typedef boost::shared_ptr< ::ml_classifiers::ClassifyDataRequest> ClassifyDataRequestPtr;
00055 typedef boost::shared_ptr< ::ml_classifiers::ClassifyDataRequest const> ClassifyDataRequestConstPtr;
00056
00057
00058 template <class ContainerAllocator>
00059 struct ClassifyDataResponse_ {
00060 typedef ClassifyDataResponse_<ContainerAllocator> Type;
00061
00062 ClassifyDataResponse_()
00063 : classifications()
00064 {
00065 }
00066
00067 ClassifyDataResponse_(const ContainerAllocator& _alloc)
00068 : classifications(_alloc)
00069 {
00070 }
00071
00072 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _classifications_type;
00073 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > classifications;
00074
00075
00076 typedef boost::shared_ptr< ::ml_classifiers::ClassifyDataResponse_<ContainerAllocator> > Ptr;
00077 typedef boost::shared_ptr< ::ml_classifiers::ClassifyDataResponse_<ContainerAllocator> const> ConstPtr;
00078 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00079 };
00080 typedef ::ml_classifiers::ClassifyDataResponse_<std::allocator<void> > ClassifyDataResponse;
00081
00082 typedef boost::shared_ptr< ::ml_classifiers::ClassifyDataResponse> ClassifyDataResponsePtr;
00083 typedef boost::shared_ptr< ::ml_classifiers::ClassifyDataResponse const> ClassifyDataResponseConstPtr;
00084
00085 struct ClassifyData
00086 {
00087
00088 typedef ClassifyDataRequest Request;
00089 typedef ClassifyDataResponse 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::ClassifyDataRequest_<ContainerAllocator> > : public TrueType {};
00103 template<class ContainerAllocator> struct IsMessage< ::ml_classifiers::ClassifyDataRequest_<ContainerAllocator> const> : public TrueType {};
00104 template<class ContainerAllocator>
00105 struct MD5Sum< ::ml_classifiers::ClassifyDataRequest_<ContainerAllocator> > {
00106 static const char* value()
00107 {
00108 return "572733f6e77cd60bddc5c0b72307999c";
00109 }
00110
00111 static const char* value(const ::ml_classifiers::ClassifyDataRequest_<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::ClassifyDataRequest_<ContainerAllocator> > {
00118 static const char* value()
00119 {
00120 return "ml_classifiers/ClassifyDataRequest";
00121 }
00122
00123 static const char* value(const ::ml_classifiers::ClassifyDataRequest_<ContainerAllocator> &) { return value(); }
00124 };
00125
00126 template<class ContainerAllocator>
00127 struct Definition< ::ml_classifiers::ClassifyDataRequest_<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::ClassifyDataRequest_<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::ClassifyDataResponse_<ContainerAllocator> > : public TrueType {};
00153 template<class ContainerAllocator> struct IsMessage< ::ml_classifiers::ClassifyDataResponse_<ContainerAllocator> const> : public TrueType {};
00154 template<class ContainerAllocator>
00155 struct MD5Sum< ::ml_classifiers::ClassifyDataResponse_<ContainerAllocator> > {
00156 static const char* value()
00157 {
00158 return "5ce145dc8157b011850524b4b0ffd0b7";
00159 }
00160
00161 static const char* value(const ::ml_classifiers::ClassifyDataResponse_<ContainerAllocator> &) { return value(); }
00162 static const uint64_t static_value1 = 0x5ce145dc8157b011ULL;
00163 static const uint64_t static_value2 = 0x850524b4b0ffd0b7ULL;
00164 };
00165
00166 template<class ContainerAllocator>
00167 struct DataType< ::ml_classifiers::ClassifyDataResponse_<ContainerAllocator> > {
00168 static const char* value()
00169 {
00170 return "ml_classifiers/ClassifyDataResponse";
00171 }
00172
00173 static const char* value(const ::ml_classifiers::ClassifyDataResponse_<ContainerAllocator> &) { return value(); }
00174 };
00175
00176 template<class ContainerAllocator>
00177 struct Definition< ::ml_classifiers::ClassifyDataResponse_<ContainerAllocator> > {
00178 static const char* value()
00179 {
00180 return "string[] classifications\n\
00181 \n\
00182 \n\
00183 \n\
00184 \n\
00185 \n\
00186 \n\
00187 ";
00188 }
00189
00190 static const char* value(const ::ml_classifiers::ClassifyDataResponse_<ContainerAllocator> &) { return value(); }
00191 };
00192
00193 }
00194 }
00195
00196 namespace ros
00197 {
00198 namespace serialization
00199 {
00200
00201 template<class ContainerAllocator> struct Serializer< ::ml_classifiers::ClassifyDataRequest_<ContainerAllocator> >
00202 {
00203 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00204 {
00205 stream.next(m.identifier);
00206 stream.next(m.data);
00207 }
00208
00209 ROS_DECLARE_ALLINONE_SERIALIZER;
00210 };
00211 }
00212 }
00213
00214
00215 namespace ros
00216 {
00217 namespace serialization
00218 {
00219
00220 template<class ContainerAllocator> struct Serializer< ::ml_classifiers::ClassifyDataResponse_<ContainerAllocator> >
00221 {
00222 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00223 {
00224 stream.next(m.classifications);
00225 }
00226
00227 ROS_DECLARE_ALLINONE_SERIALIZER;
00228 };
00229 }
00230 }
00231
00232 namespace ros
00233 {
00234 namespace service_traits
00235 {
00236 template<>
00237 struct MD5Sum<ml_classifiers::ClassifyData> {
00238 static const char* value()
00239 {
00240 return "5ee7ec82bea2c231e357662def7bf4a4";
00241 }
00242
00243 static const char* value(const ml_classifiers::ClassifyData&) { return value(); }
00244 };
00245
00246 template<>
00247 struct DataType<ml_classifiers::ClassifyData> {
00248 static const char* value()
00249 {
00250 return "ml_classifiers/ClassifyData";
00251 }
00252
00253 static const char* value(const ml_classifiers::ClassifyData&) { return value(); }
00254 };
00255
00256 template<class ContainerAllocator>
00257 struct MD5Sum<ml_classifiers::ClassifyDataRequest_<ContainerAllocator> > {
00258 static const char* value()
00259 {
00260 return "5ee7ec82bea2c231e357662def7bf4a4";
00261 }
00262
00263 static const char* value(const ml_classifiers::ClassifyDataRequest_<ContainerAllocator> &) { return value(); }
00264 };
00265
00266 template<class ContainerAllocator>
00267 struct DataType<ml_classifiers::ClassifyDataRequest_<ContainerAllocator> > {
00268 static const char* value()
00269 {
00270 return "ml_classifiers/ClassifyData";
00271 }
00272
00273 static const char* value(const ml_classifiers::ClassifyDataRequest_<ContainerAllocator> &) { return value(); }
00274 };
00275
00276 template<class ContainerAllocator>
00277 struct MD5Sum<ml_classifiers::ClassifyDataResponse_<ContainerAllocator> > {
00278 static const char* value()
00279 {
00280 return "5ee7ec82bea2c231e357662def7bf4a4";
00281 }
00282
00283 static const char* value(const ml_classifiers::ClassifyDataResponse_<ContainerAllocator> &) { return value(); }
00284 };
00285
00286 template<class ContainerAllocator>
00287 struct DataType<ml_classifiers::ClassifyDataResponse_<ContainerAllocator> > {
00288 static const char* value()
00289 {
00290 return "ml_classifiers/ClassifyData";
00291 }
00292
00293 static const char* value(const ml_classifiers::ClassifyDataResponse_<ContainerAllocator> &) { return value(); }
00294 };
00295
00296 }
00297 }
00298
00299 #endif // ML_CLASSIFIERS_SERVICE_CLASSIFYDATA_H
00300