00001
00002 #ifndef WPA_SUPPLICANT_NODE_SERVICE_SETNETWORKSTATE_H
00003 #define WPA_SUPPLICANT_NODE_SERVICE_SETNETWORKSTATE_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013 #include "ros/service_traits.h"
00014
00015
00016
00017
00018 namespace wpa_supplicant_node
00019 {
00020 template <class ContainerAllocator>
00021 struct SetNetworkStateRequest_ : public ros::Message
00022 {
00023 typedef SetNetworkStateRequest_<ContainerAllocator> Type;
00024
00025 SetNetworkStateRequest_()
00026 : network_id(0)
00027 , enable(false)
00028 {
00029 }
00030
00031 SetNetworkStateRequest_(const ContainerAllocator& _alloc)
00032 : network_id(0)
00033 , enable(false)
00034 {
00035 }
00036
00037 typedef int32_t _network_id_type;
00038 int32_t network_id;
00039
00040 typedef uint8_t _enable_type;
00041 uint8_t enable;
00042
00043
00044 private:
00045 static const char* __s_getDataType_() { return "wpa_supplicant_node/SetNetworkStateRequest"; }
00046 public:
00047 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00048
00049 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00050
00051 private:
00052 static const char* __s_getMD5Sum_() { return "31339f87e102abd77e9e89d4d9d69884"; }
00053 public:
00054 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00055
00056 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00057
00058 private:
00059 static const char* __s_getServerMD5Sum_() { return "153e077ef26bdb7e5db9b2eccd30c6da"; }
00060 public:
00061 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00062
00063 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00064
00065 private:
00066 static const char* __s_getMessageDefinition_() { return "int32 network_id\n\
00067 bool enable\n\
00068 \n\
00069 "; }
00070 public:
00071 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00072
00073 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00074
00075 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00076 {
00077 ros::serialization::OStream stream(write_ptr, 1000000000);
00078 ros::serialization::serialize(stream, network_id);
00079 ros::serialization::serialize(stream, enable);
00080 return stream.getData();
00081 }
00082
00083 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00084 {
00085 ros::serialization::IStream stream(read_ptr, 1000000000);
00086 ros::serialization::deserialize(stream, network_id);
00087 ros::serialization::deserialize(stream, enable);
00088 return stream.getData();
00089 }
00090
00091 ROS_DEPRECATED virtual uint32_t serializationLength() const
00092 {
00093 uint32_t size = 0;
00094 size += ros::serialization::serializationLength(network_id);
00095 size += ros::serialization::serializationLength(enable);
00096 return size;
00097 }
00098
00099 typedef boost::shared_ptr< ::wpa_supplicant_node::SetNetworkStateRequest_<ContainerAllocator> > Ptr;
00100 typedef boost::shared_ptr< ::wpa_supplicant_node::SetNetworkStateRequest_<ContainerAllocator> const> ConstPtr;
00101 };
00102 typedef ::wpa_supplicant_node::SetNetworkStateRequest_<std::allocator<void> > SetNetworkStateRequest;
00103
00104 typedef boost::shared_ptr< ::wpa_supplicant_node::SetNetworkStateRequest> SetNetworkStateRequestPtr;
00105 typedef boost::shared_ptr< ::wpa_supplicant_node::SetNetworkStateRequest const> SetNetworkStateRequestConstPtr;
00106
00107
00108 template <class ContainerAllocator>
00109 struct SetNetworkStateResponse_ : public ros::Message
00110 {
00111 typedef SetNetworkStateResponse_<ContainerAllocator> Type;
00112
00113 SetNetworkStateResponse_()
00114 : success(false)
00115 {
00116 }
00117
00118 SetNetworkStateResponse_(const ContainerAllocator& _alloc)
00119 : success(false)
00120 {
00121 }
00122
00123 typedef uint8_t _success_type;
00124 uint8_t success;
00125
00126
00127 private:
00128 static const char* __s_getDataType_() { return "wpa_supplicant_node/SetNetworkStateResponse"; }
00129 public:
00130 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00131
00132 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00133
00134 private:
00135 static const char* __s_getMD5Sum_() { return "358e233cde0c8a8bcfea4ce193f8fc15"; }
00136 public:
00137 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00138
00139 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00140
00141 private:
00142 static const char* __s_getServerMD5Sum_() { return "153e077ef26bdb7e5db9b2eccd30c6da"; }
00143 public:
00144 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00145
00146 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00147
00148 private:
00149 static const char* __s_getMessageDefinition_() { return "bool success\n\
00150 \n\
00151 \n\
00152 "; }
00153 public:
00154 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00155
00156 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00157
00158 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00159 {
00160 ros::serialization::OStream stream(write_ptr, 1000000000);
00161 ros::serialization::serialize(stream, success);
00162 return stream.getData();
00163 }
00164
00165 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00166 {
00167 ros::serialization::IStream stream(read_ptr, 1000000000);
00168 ros::serialization::deserialize(stream, success);
00169 return stream.getData();
00170 }
00171
00172 ROS_DEPRECATED virtual uint32_t serializationLength() const
00173 {
00174 uint32_t size = 0;
00175 size += ros::serialization::serializationLength(success);
00176 return size;
00177 }
00178
00179 typedef boost::shared_ptr< ::wpa_supplicant_node::SetNetworkStateResponse_<ContainerAllocator> > Ptr;
00180 typedef boost::shared_ptr< ::wpa_supplicant_node::SetNetworkStateResponse_<ContainerAllocator> const> ConstPtr;
00181 };
00182 typedef ::wpa_supplicant_node::SetNetworkStateResponse_<std::allocator<void> > SetNetworkStateResponse;
00183
00184 typedef boost::shared_ptr< ::wpa_supplicant_node::SetNetworkStateResponse> SetNetworkStateResponsePtr;
00185 typedef boost::shared_ptr< ::wpa_supplicant_node::SetNetworkStateResponse const> SetNetworkStateResponseConstPtr;
00186
00187 struct SetNetworkState
00188 {
00189
00190 typedef SetNetworkStateRequest Request;
00191 typedef SetNetworkStateResponse Response;
00192 Request request;
00193 Response response;
00194
00195 typedef Request RequestType;
00196 typedef Response ResponseType;
00197 };
00198 }
00199
00200 namespace ros
00201 {
00202 namespace message_traits
00203 {
00204 template<class ContainerAllocator>
00205 struct MD5Sum< ::wpa_supplicant_node::SetNetworkStateRequest_<ContainerAllocator> > {
00206 static const char* value()
00207 {
00208 return "31339f87e102abd77e9e89d4d9d69884";
00209 }
00210
00211 static const char* value(const ::wpa_supplicant_node::SetNetworkStateRequest_<ContainerAllocator> &) { return value(); }
00212 static const uint64_t static_value1 = 0x31339f87e102abd7ULL;
00213 static const uint64_t static_value2 = 0x7e9e89d4d9d69884ULL;
00214 };
00215
00216 template<class ContainerAllocator>
00217 struct DataType< ::wpa_supplicant_node::SetNetworkStateRequest_<ContainerAllocator> > {
00218 static const char* value()
00219 {
00220 return "wpa_supplicant_node/SetNetworkStateRequest";
00221 }
00222
00223 static const char* value(const ::wpa_supplicant_node::SetNetworkStateRequest_<ContainerAllocator> &) { return value(); }
00224 };
00225
00226 template<class ContainerAllocator>
00227 struct Definition< ::wpa_supplicant_node::SetNetworkStateRequest_<ContainerAllocator> > {
00228 static const char* value()
00229 {
00230 return "int32 network_id\n\
00231 bool enable\n\
00232 \n\
00233 ";
00234 }
00235
00236 static const char* value(const ::wpa_supplicant_node::SetNetworkStateRequest_<ContainerAllocator> &) { return value(); }
00237 };
00238
00239 template<class ContainerAllocator> struct IsFixedSize< ::wpa_supplicant_node::SetNetworkStateRequest_<ContainerAllocator> > : public TrueType {};
00240 }
00241 }
00242
00243
00244 namespace ros
00245 {
00246 namespace message_traits
00247 {
00248 template<class ContainerAllocator>
00249 struct MD5Sum< ::wpa_supplicant_node::SetNetworkStateResponse_<ContainerAllocator> > {
00250 static const char* value()
00251 {
00252 return "358e233cde0c8a8bcfea4ce193f8fc15";
00253 }
00254
00255 static const char* value(const ::wpa_supplicant_node::SetNetworkStateResponse_<ContainerAllocator> &) { return value(); }
00256 static const uint64_t static_value1 = 0x358e233cde0c8a8bULL;
00257 static const uint64_t static_value2 = 0xcfea4ce193f8fc15ULL;
00258 };
00259
00260 template<class ContainerAllocator>
00261 struct DataType< ::wpa_supplicant_node::SetNetworkStateResponse_<ContainerAllocator> > {
00262 static const char* value()
00263 {
00264 return "wpa_supplicant_node/SetNetworkStateResponse";
00265 }
00266
00267 static const char* value(const ::wpa_supplicant_node::SetNetworkStateResponse_<ContainerAllocator> &) { return value(); }
00268 };
00269
00270 template<class ContainerAllocator>
00271 struct Definition< ::wpa_supplicant_node::SetNetworkStateResponse_<ContainerAllocator> > {
00272 static const char* value()
00273 {
00274 return "bool success\n\
00275 \n\
00276 \n\
00277 ";
00278 }
00279
00280 static const char* value(const ::wpa_supplicant_node::SetNetworkStateResponse_<ContainerAllocator> &) { return value(); }
00281 };
00282
00283 template<class ContainerAllocator> struct IsFixedSize< ::wpa_supplicant_node::SetNetworkStateResponse_<ContainerAllocator> > : public TrueType {};
00284 }
00285 }
00286
00287 namespace ros
00288 {
00289 namespace serialization
00290 {
00291
00292 template<class ContainerAllocator> struct Serializer< ::wpa_supplicant_node::SetNetworkStateRequest_<ContainerAllocator> >
00293 {
00294 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00295 {
00296 stream.next(m.network_id);
00297 stream.next(m.enable);
00298 }
00299
00300 ROS_DECLARE_ALLINONE_SERIALIZER;
00301 };
00302 }
00303 }
00304
00305
00306 namespace ros
00307 {
00308 namespace serialization
00309 {
00310
00311 template<class ContainerAllocator> struct Serializer< ::wpa_supplicant_node::SetNetworkStateResponse_<ContainerAllocator> >
00312 {
00313 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00314 {
00315 stream.next(m.success);
00316 }
00317
00318 ROS_DECLARE_ALLINONE_SERIALIZER;
00319 };
00320 }
00321 }
00322
00323 namespace ros
00324 {
00325 namespace service_traits
00326 {
00327 template<>
00328 struct MD5Sum<wpa_supplicant_node::SetNetworkState> {
00329 static const char* value()
00330 {
00331 return "153e077ef26bdb7e5db9b2eccd30c6da";
00332 }
00333
00334 static const char* value(const wpa_supplicant_node::SetNetworkState&) { return value(); }
00335 };
00336
00337 template<>
00338 struct DataType<wpa_supplicant_node::SetNetworkState> {
00339 static const char* value()
00340 {
00341 return "wpa_supplicant_node/SetNetworkState";
00342 }
00343
00344 static const char* value(const wpa_supplicant_node::SetNetworkState&) { return value(); }
00345 };
00346
00347 template<class ContainerAllocator>
00348 struct MD5Sum<wpa_supplicant_node::SetNetworkStateRequest_<ContainerAllocator> > {
00349 static const char* value()
00350 {
00351 return "153e077ef26bdb7e5db9b2eccd30c6da";
00352 }
00353
00354 static const char* value(const wpa_supplicant_node::SetNetworkStateRequest_<ContainerAllocator> &) { return value(); }
00355 };
00356
00357 template<class ContainerAllocator>
00358 struct DataType<wpa_supplicant_node::SetNetworkStateRequest_<ContainerAllocator> > {
00359 static const char* value()
00360 {
00361 return "wpa_supplicant_node/SetNetworkState";
00362 }
00363
00364 static const char* value(const wpa_supplicant_node::SetNetworkStateRequest_<ContainerAllocator> &) { return value(); }
00365 };
00366
00367 template<class ContainerAllocator>
00368 struct MD5Sum<wpa_supplicant_node::SetNetworkStateResponse_<ContainerAllocator> > {
00369 static const char* value()
00370 {
00371 return "153e077ef26bdb7e5db9b2eccd30c6da";
00372 }
00373
00374 static const char* value(const wpa_supplicant_node::SetNetworkStateResponse_<ContainerAllocator> &) { return value(); }
00375 };
00376
00377 template<class ContainerAllocator>
00378 struct DataType<wpa_supplicant_node::SetNetworkStateResponse_<ContainerAllocator> > {
00379 static const char* value()
00380 {
00381 return "wpa_supplicant_node/SetNetworkState";
00382 }
00383
00384 static const char* value(const wpa_supplicant_node::SetNetworkStateResponse_<ContainerAllocator> &) { return value(); }
00385 };
00386
00387 }
00388 }
00389
00390 #endif // WPA_SUPPLICANT_NODE_SERVICE_SETNETWORKSTATE_H
00391