00001
00002 #ifndef WPA_SUPPLICANT_NODE_MESSAGE_BSS_H
00003 #define WPA_SUPPLICANT_NODE_MESSAGE_BSS_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
00014 namespace wpa_supplicant_node
00015 {
00016 template <class ContainerAllocator>
00017 struct Bss_ : public ros::Message
00018 {
00019 typedef Bss_<ContainerAllocator> Type;
00020
00021 Bss_()
00022 : stamp()
00023 , ssid()
00024 , bssid()
00025 , frequency(0)
00026 , beacon_interval(0)
00027 , capabilities(0)
00028 , quality(0)
00029 , noise(0)
00030 , level(0)
00031 {
00032 bssid.assign(0);
00033 }
00034
00035 Bss_(const ContainerAllocator& _alloc)
00036 : stamp()
00037 , ssid(_alloc)
00038 , bssid()
00039 , frequency(0)
00040 , beacon_interval(0)
00041 , capabilities(0)
00042 , quality(0)
00043 , noise(0)
00044 , level(0)
00045 {
00046 bssid.assign(0);
00047 }
00048
00049 typedef ros::Time _stamp_type;
00050 ros::Time stamp;
00051
00052 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _ssid_type;
00053 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > ssid;
00054
00055 typedef boost::array<uint8_t, 6> _bssid_type;
00056 boost::array<uint8_t, 6> bssid;
00057
00058 typedef int32_t _frequency_type;
00059 int32_t frequency;
00060
00061 typedef int16_t _beacon_interval_type;
00062 int16_t beacon_interval;
00063
00064 typedef int16_t _capabilities_type;
00065 int16_t capabilities;
00066
00067 typedef int32_t _quality_type;
00068 int32_t quality;
00069
00070 typedef int32_t _noise_type;
00071 int32_t noise;
00072
00073 typedef int32_t _level_type;
00074 int32_t level;
00075
00076
00077 ROS_DEPRECATED uint32_t get_bssid_size() const { return (uint32_t)bssid.size(); }
00078 private:
00079 static const char* __s_getDataType_() { return "wpa_supplicant_node/Bss"; }
00080 public:
00081 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00082
00083 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00084
00085 private:
00086 static const char* __s_getMD5Sum_() { return "fa88f4690f619bb03b8ddd7ec1c4c83f"; }
00087 public:
00088 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00089
00090 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00091
00092 private:
00093 static const char* __s_getMessageDefinition_() { return "time stamp\n\
00094 string ssid\n\
00095 uint8[6] bssid\n\
00096 int32 frequency # In MHz\n\
00097 int16 beacon_interval\n\
00098 int16 capabilities\n\
00099 int32 quality\n\
00100 int32 noise\n\
00101 int32 level\n\
00102 \n\
00103 #InformationElement []ies\n\
00104 #InformationElement []beacon_ies\n\
00105 # flags\n\
00106 # tsf\n\
00107 # age\n\
00108 \n\
00109 "; }
00110 public:
00111 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00112
00113 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00114
00115 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00116 {
00117 ros::serialization::OStream stream(write_ptr, 1000000000);
00118 ros::serialization::serialize(stream, stamp);
00119 ros::serialization::serialize(stream, ssid);
00120 ros::serialization::serialize(stream, bssid);
00121 ros::serialization::serialize(stream, frequency);
00122 ros::serialization::serialize(stream, beacon_interval);
00123 ros::serialization::serialize(stream, capabilities);
00124 ros::serialization::serialize(stream, quality);
00125 ros::serialization::serialize(stream, noise);
00126 ros::serialization::serialize(stream, level);
00127 return stream.getData();
00128 }
00129
00130 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00131 {
00132 ros::serialization::IStream stream(read_ptr, 1000000000);
00133 ros::serialization::deserialize(stream, stamp);
00134 ros::serialization::deserialize(stream, ssid);
00135 ros::serialization::deserialize(stream, bssid);
00136 ros::serialization::deserialize(stream, frequency);
00137 ros::serialization::deserialize(stream, beacon_interval);
00138 ros::serialization::deserialize(stream, capabilities);
00139 ros::serialization::deserialize(stream, quality);
00140 ros::serialization::deserialize(stream, noise);
00141 ros::serialization::deserialize(stream, level);
00142 return stream.getData();
00143 }
00144
00145 ROS_DEPRECATED virtual uint32_t serializationLength() const
00146 {
00147 uint32_t size = 0;
00148 size += ros::serialization::serializationLength(stamp);
00149 size += ros::serialization::serializationLength(ssid);
00150 size += ros::serialization::serializationLength(bssid);
00151 size += ros::serialization::serializationLength(frequency);
00152 size += ros::serialization::serializationLength(beacon_interval);
00153 size += ros::serialization::serializationLength(capabilities);
00154 size += ros::serialization::serializationLength(quality);
00155 size += ros::serialization::serializationLength(noise);
00156 size += ros::serialization::serializationLength(level);
00157 return size;
00158 }
00159
00160 typedef boost::shared_ptr< ::wpa_supplicant_node::Bss_<ContainerAllocator> > Ptr;
00161 typedef boost::shared_ptr< ::wpa_supplicant_node::Bss_<ContainerAllocator> const> ConstPtr;
00162 };
00163 typedef ::wpa_supplicant_node::Bss_<std::allocator<void> > Bss;
00164
00165 typedef boost::shared_ptr< ::wpa_supplicant_node::Bss> BssPtr;
00166 typedef boost::shared_ptr< ::wpa_supplicant_node::Bss const> BssConstPtr;
00167
00168
00169 template<typename ContainerAllocator>
00170 std::ostream& operator<<(std::ostream& s, const ::wpa_supplicant_node::Bss_<ContainerAllocator> & v)
00171 {
00172 ros::message_operations::Printer< ::wpa_supplicant_node::Bss_<ContainerAllocator> >::stream(s, "", v);
00173 return s;}
00174
00175 }
00176
00177 namespace ros
00178 {
00179 namespace message_traits
00180 {
00181 template<class ContainerAllocator>
00182 struct MD5Sum< ::wpa_supplicant_node::Bss_<ContainerAllocator> > {
00183 static const char* value()
00184 {
00185 return "fa88f4690f619bb03b8ddd7ec1c4c83f";
00186 }
00187
00188 static const char* value(const ::wpa_supplicant_node::Bss_<ContainerAllocator> &) { return value(); }
00189 static const uint64_t static_value1 = 0xfa88f4690f619bb0ULL;
00190 static const uint64_t static_value2 = 0x3b8ddd7ec1c4c83fULL;
00191 };
00192
00193 template<class ContainerAllocator>
00194 struct DataType< ::wpa_supplicant_node::Bss_<ContainerAllocator> > {
00195 static const char* value()
00196 {
00197 return "wpa_supplicant_node/Bss";
00198 }
00199
00200 static const char* value(const ::wpa_supplicant_node::Bss_<ContainerAllocator> &) { return value(); }
00201 };
00202
00203 template<class ContainerAllocator>
00204 struct Definition< ::wpa_supplicant_node::Bss_<ContainerAllocator> > {
00205 static const char* value()
00206 {
00207 return "time stamp\n\
00208 string ssid\n\
00209 uint8[6] bssid\n\
00210 int32 frequency # In MHz\n\
00211 int16 beacon_interval\n\
00212 int16 capabilities\n\
00213 int32 quality\n\
00214 int32 noise\n\
00215 int32 level\n\
00216 \n\
00217 #InformationElement []ies\n\
00218 #InformationElement []beacon_ies\n\
00219 # flags\n\
00220 # tsf\n\
00221 # age\n\
00222 \n\
00223 ";
00224 }
00225
00226 static const char* value(const ::wpa_supplicant_node::Bss_<ContainerAllocator> &) { return value(); }
00227 };
00228
00229 }
00230 }
00231
00232 namespace ros
00233 {
00234 namespace serialization
00235 {
00236
00237 template<class ContainerAllocator> struct Serializer< ::wpa_supplicant_node::Bss_<ContainerAllocator> >
00238 {
00239 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00240 {
00241 stream.next(m.stamp);
00242 stream.next(m.ssid);
00243 stream.next(m.bssid);
00244 stream.next(m.frequency);
00245 stream.next(m.beacon_interval);
00246 stream.next(m.capabilities);
00247 stream.next(m.quality);
00248 stream.next(m.noise);
00249 stream.next(m.level);
00250 }
00251
00252 ROS_DECLARE_ALLINONE_SERIALIZER;
00253 };
00254 }
00255 }
00256
00257 namespace ros
00258 {
00259 namespace message_operations
00260 {
00261
00262 template<class ContainerAllocator>
00263 struct Printer< ::wpa_supplicant_node::Bss_<ContainerAllocator> >
00264 {
00265 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::wpa_supplicant_node::Bss_<ContainerAllocator> & v)
00266 {
00267 s << indent << "stamp: ";
00268 Printer<ros::Time>::stream(s, indent + " ", v.stamp);
00269 s << indent << "ssid: ";
00270 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.ssid);
00271 s << indent << "bssid[]" << std::endl;
00272 for (size_t i = 0; i < v.bssid.size(); ++i)
00273 {
00274 s << indent << " bssid[" << i << "]: ";
00275 Printer<uint8_t>::stream(s, indent + " ", v.bssid[i]);
00276 }
00277 s << indent << "frequency: ";
00278 Printer<int32_t>::stream(s, indent + " ", v.frequency);
00279 s << indent << "beacon_interval: ";
00280 Printer<int16_t>::stream(s, indent + " ", v.beacon_interval);
00281 s << indent << "capabilities: ";
00282 Printer<int16_t>::stream(s, indent + " ", v.capabilities);
00283 s << indent << "quality: ";
00284 Printer<int32_t>::stream(s, indent + " ", v.quality);
00285 s << indent << "noise: ";
00286 Printer<int32_t>::stream(s, indent + " ", v.noise);
00287 s << indent << "level: ";
00288 Printer<int32_t>::stream(s, indent + " ", v.level);
00289 }
00290 };
00291
00292
00293 }
00294 }
00295
00296 #endif // WPA_SUPPLICANT_NODE_MESSAGE_BSS_H
00297