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


multi_interface_roam
Author(s): Blaise Gassend
autogenerated on Thu Jan 2 2014 11:26:15