$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-linux_networking/doc_stacks/2013-03-01_15-56-27.119261/linux_networking/multi_interface_roam/msg/MultiInterfaceStatus.msg */ 00002 #ifndef MULTI_INTERFACE_ROAM_MESSAGE_MULTIINTERFACESTATUS_H 00003 #define MULTI_INTERFACE_ROAM_MESSAGE_MULTIINTERFACESTATUS_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 "multi_interface_roam/InterfaceStatus.h" 00018 00019 namespace multi_interface_roam 00020 { 00021 template <class ContainerAllocator> 00022 struct MultiInterfaceStatus_ { 00023 typedef MultiInterfaceStatus_<ContainerAllocator> Type; 00024 00025 MultiInterfaceStatus_() 00026 : interfaces() 00027 { 00028 } 00029 00030 MultiInterfaceStatus_(const ContainerAllocator& _alloc) 00031 : interfaces(_alloc) 00032 { 00033 } 00034 00035 typedef std::vector< ::multi_interface_roam::InterfaceStatus_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::multi_interface_roam::InterfaceStatus_<ContainerAllocator> >::other > _interfaces_type; 00036 std::vector< ::multi_interface_roam::InterfaceStatus_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::multi_interface_roam::InterfaceStatus_<ContainerAllocator> >::other > interfaces; 00037 00038 00039 ROS_DEPRECATED uint32_t get_interfaces_size() const { return (uint32_t)interfaces.size(); } 00040 ROS_DEPRECATED void set_interfaces_size(uint32_t size) { interfaces.resize((size_t)size); } 00041 ROS_DEPRECATED void get_interfaces_vec(std::vector< ::multi_interface_roam::InterfaceStatus_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::multi_interface_roam::InterfaceStatus_<ContainerAllocator> >::other > & vec) const { vec = this->interfaces; } 00042 ROS_DEPRECATED void set_interfaces_vec(const std::vector< ::multi_interface_roam::InterfaceStatus_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::multi_interface_roam::InterfaceStatus_<ContainerAllocator> >::other > & vec) { this->interfaces = vec; } 00043 private: 00044 static const char* __s_getDataType_() { return "multi_interface_roam/MultiInterfaceStatus"; } 00045 public: 00046 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00047 00048 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00049 00050 private: 00051 static const char* __s_getMD5Sum_() { return "8cc48fc7b9fd9a6f7f5e63eb7bc51745"; } 00052 public: 00053 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00054 00055 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00056 00057 private: 00058 static const char* __s_getMessageDefinition_() { return "InterfaceStatus[] interfaces\n\ 00059 \n\ 00060 ================================================================================\n\ 00061 MSG: multi_interface_roam/InterfaceStatus\n\ 00062 int8 STATE_NO_INTERFACE = -1 # The interface does not exist.\n\ 00063 int8 STATE_PLUGGED = 0 # The interface exists.\n\ 00064 int8 STATE_UP = 1 # The interface is up.\n\ 00065 int8 STATE_LINK = 2 # The interface has a link.\n\ 00066 int8 STATE_LINK_ADDR = 3 # The interface has a link, and the link has an address.\n\ 00067 int8 STATE_ADDR = 4 # The interface has an address.\n\ 00068 int8 STATE_PINGING = 5 # Ping packets are making it through.\n\ 00069 \n\ 00070 string pretty_name # The pretty name of the interface.\n\ 00071 string interface # The name of the interface.\n\ 00072 int8 state # The state (defined above).\n\ 00073 int32 active_interface_rank # The rank among active interfaces (e.g. 0 for the best active interface) or -1 if inactive\n\ 00074 float32 goodness # How well this interface is sending packets.\n\ 00075 float32 reliability # How reliable this interface is expected to be.\n\ 00076 float32 score # The score use to rank interfaces.\n\ 00077 float32 prescore # The score use to rank interfaces without penalizing radios that are not active.\n\ 00078 float32 latency # Latency of ping packets.\n\ 00079 float32 loss # Loss of ping packets.\n\ 00080 wpa_supplicant_node/Bss bss # Current BSS (for a wireless network)\n\ 00081 \n\ 00082 ================================================================================\n\ 00083 MSG: wpa_supplicant_node/Bss\n\ 00084 time stamp\n\ 00085 string ssid\n\ 00086 uint8[6] bssid\n\ 00087 int32 frequency # In MHz\n\ 00088 int16 beacon_interval\n\ 00089 int16 capabilities\n\ 00090 int32 quality\n\ 00091 int32 noise\n\ 00092 int32 level\n\ 00093 SecurityProperties wpa\n\ 00094 SecurityProperties rsn\n\ 00095 \n\ 00096 #InformationElement []ies\n\ 00097 #InformationElement []beacon_ies\n\ 00098 # flags\n\ 00099 # tsf\n\ 00100 # age\n\ 00101 \n\ 00102 ================================================================================\n\ 00103 MSG: wpa_supplicant_node/SecurityProperties\n\ 00104 string[] key_mgmt\n\ 00105 string[] group\n\ 00106 string[] pairwise\n\ 00107 \n\ 00108 "; } 00109 public: 00110 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00111 00112 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00113 00114 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00115 { 00116 ros::serialization::OStream stream(write_ptr, 1000000000); 00117 ros::serialization::serialize(stream, interfaces); 00118 return stream.getData(); 00119 } 00120 00121 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00122 { 00123 ros::serialization::IStream stream(read_ptr, 1000000000); 00124 ros::serialization::deserialize(stream, interfaces); 00125 return stream.getData(); 00126 } 00127 00128 ROS_DEPRECATED virtual uint32_t serializationLength() const 00129 { 00130 uint32_t size = 0; 00131 size += ros::serialization::serializationLength(interfaces); 00132 return size; 00133 } 00134 00135 typedef boost::shared_ptr< ::multi_interface_roam::MultiInterfaceStatus_<ContainerAllocator> > Ptr; 00136 typedef boost::shared_ptr< ::multi_interface_roam::MultiInterfaceStatus_<ContainerAllocator> const> ConstPtr; 00137 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00138 }; // struct MultiInterfaceStatus 00139 typedef ::multi_interface_roam::MultiInterfaceStatus_<std::allocator<void> > MultiInterfaceStatus; 00140 00141 typedef boost::shared_ptr< ::multi_interface_roam::MultiInterfaceStatus> MultiInterfaceStatusPtr; 00142 typedef boost::shared_ptr< ::multi_interface_roam::MultiInterfaceStatus const> MultiInterfaceStatusConstPtr; 00143 00144 00145 template<typename ContainerAllocator> 00146 std::ostream& operator<<(std::ostream& s, const ::multi_interface_roam::MultiInterfaceStatus_<ContainerAllocator> & v) 00147 { 00148 ros::message_operations::Printer< ::multi_interface_roam::MultiInterfaceStatus_<ContainerAllocator> >::stream(s, "", v); 00149 return s;} 00150 00151 } // namespace multi_interface_roam 00152 00153 namespace ros 00154 { 00155 namespace message_traits 00156 { 00157 template<class ContainerAllocator> struct IsMessage< ::multi_interface_roam::MultiInterfaceStatus_<ContainerAllocator> > : public TrueType {}; 00158 template<class ContainerAllocator> struct IsMessage< ::multi_interface_roam::MultiInterfaceStatus_<ContainerAllocator> const> : public TrueType {}; 00159 template<class ContainerAllocator> 00160 struct MD5Sum< ::multi_interface_roam::MultiInterfaceStatus_<ContainerAllocator> > { 00161 static const char* value() 00162 { 00163 return "8cc48fc7b9fd9a6f7f5e63eb7bc51745"; 00164 } 00165 00166 static const char* value(const ::multi_interface_roam::MultiInterfaceStatus_<ContainerAllocator> &) { return value(); } 00167 static const uint64_t static_value1 = 0x8cc48fc7b9fd9a6fULL; 00168 static const uint64_t static_value2 = 0x7f5e63eb7bc51745ULL; 00169 }; 00170 00171 template<class ContainerAllocator> 00172 struct DataType< ::multi_interface_roam::MultiInterfaceStatus_<ContainerAllocator> > { 00173 static const char* value() 00174 { 00175 return "multi_interface_roam/MultiInterfaceStatus"; 00176 } 00177 00178 static const char* value(const ::multi_interface_roam::MultiInterfaceStatus_<ContainerAllocator> &) { return value(); } 00179 }; 00180 00181 template<class ContainerAllocator> 00182 struct Definition< ::multi_interface_roam::MultiInterfaceStatus_<ContainerAllocator> > { 00183 static const char* value() 00184 { 00185 return "InterfaceStatus[] interfaces\n\ 00186 \n\ 00187 ================================================================================\n\ 00188 MSG: multi_interface_roam/InterfaceStatus\n\ 00189 int8 STATE_NO_INTERFACE = -1 # The interface does not exist.\n\ 00190 int8 STATE_PLUGGED = 0 # The interface exists.\n\ 00191 int8 STATE_UP = 1 # The interface is up.\n\ 00192 int8 STATE_LINK = 2 # The interface has a link.\n\ 00193 int8 STATE_LINK_ADDR = 3 # The interface has a link, and the link has an address.\n\ 00194 int8 STATE_ADDR = 4 # The interface has an address.\n\ 00195 int8 STATE_PINGING = 5 # Ping packets are making it through.\n\ 00196 \n\ 00197 string pretty_name # The pretty name of the interface.\n\ 00198 string interface # The name of the interface.\n\ 00199 int8 state # The state (defined above).\n\ 00200 int32 active_interface_rank # The rank among active interfaces (e.g. 0 for the best active interface) or -1 if inactive\n\ 00201 float32 goodness # How well this interface is sending packets.\n\ 00202 float32 reliability # How reliable this interface is expected to be.\n\ 00203 float32 score # The score use to rank interfaces.\n\ 00204 float32 prescore # The score use to rank interfaces without penalizing radios that are not active.\n\ 00205 float32 latency # Latency of ping packets.\n\ 00206 float32 loss # Loss of ping packets.\n\ 00207 wpa_supplicant_node/Bss bss # Current BSS (for a wireless network)\n\ 00208 \n\ 00209 ================================================================================\n\ 00210 MSG: wpa_supplicant_node/Bss\n\ 00211 time stamp\n\ 00212 string ssid\n\ 00213 uint8[6] bssid\n\ 00214 int32 frequency # In MHz\n\ 00215 int16 beacon_interval\n\ 00216 int16 capabilities\n\ 00217 int32 quality\n\ 00218 int32 noise\n\ 00219 int32 level\n\ 00220 SecurityProperties wpa\n\ 00221 SecurityProperties rsn\n\ 00222 \n\ 00223 #InformationElement []ies\n\ 00224 #InformationElement []beacon_ies\n\ 00225 # flags\n\ 00226 # tsf\n\ 00227 # age\n\ 00228 \n\ 00229 ================================================================================\n\ 00230 MSG: wpa_supplicant_node/SecurityProperties\n\ 00231 string[] key_mgmt\n\ 00232 string[] group\n\ 00233 string[] pairwise\n\ 00234 \n\ 00235 "; 00236 } 00237 00238 static const char* value(const ::multi_interface_roam::MultiInterfaceStatus_<ContainerAllocator> &) { return value(); } 00239 }; 00240 00241 } // namespace message_traits 00242 } // namespace ros 00243 00244 namespace ros 00245 { 00246 namespace serialization 00247 { 00248 00249 template<class ContainerAllocator> struct Serializer< ::multi_interface_roam::MultiInterfaceStatus_<ContainerAllocator> > 00250 { 00251 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00252 { 00253 stream.next(m.interfaces); 00254 } 00255 00256 ROS_DECLARE_ALLINONE_SERIALIZER; 00257 }; // struct MultiInterfaceStatus_ 00258 } // namespace serialization 00259 } // namespace ros 00260 00261 namespace ros 00262 { 00263 namespace message_operations 00264 { 00265 00266 template<class ContainerAllocator> 00267 struct Printer< ::multi_interface_roam::MultiInterfaceStatus_<ContainerAllocator> > 00268 { 00269 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::multi_interface_roam::MultiInterfaceStatus_<ContainerAllocator> & v) 00270 { 00271 s << indent << "interfaces[]" << std::endl; 00272 for (size_t i = 0; i < v.interfaces.size(); ++i) 00273 { 00274 s << indent << " interfaces[" << i << "]: "; 00275 s << std::endl; 00276 s << indent; 00277 Printer< ::multi_interface_roam::InterfaceStatus_<ContainerAllocator> >::stream(s, indent + " ", v.interfaces[i]); 00278 } 00279 } 00280 }; 00281 00282 00283 } // namespace message_operations 00284 } // namespace ros 00285 00286 #endif // MULTI_INTERFACE_ROAM_MESSAGE_MULTIINTERFACESTATUS_H 00287