Go to the documentation of this file.00001
00002 #ifndef WIFI_DDWRT_MESSAGE_SITESURVEY_H
00003 #define WIFI_DDWRT_MESSAGE_SITESURVEY_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 "std_msgs/Header.h"
00018 #include "wifi_ddwrt/Network.h"
00019
00020 namespace wifi_ddwrt
00021 {
00022 template <class ContainerAllocator>
00023 struct SiteSurvey_ {
00024 typedef SiteSurvey_<ContainerAllocator> Type;
00025
00026 SiteSurvey_()
00027 : header()
00028 , networks()
00029 {
00030 }
00031
00032 SiteSurvey_(const ContainerAllocator& _alloc)
00033 : header(_alloc)
00034 , networks(_alloc)
00035 {
00036 }
00037
00038 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00039 ::std_msgs::Header_<ContainerAllocator> header;
00040
00041 typedef std::vector< ::wifi_ddwrt::Network_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::wifi_ddwrt::Network_<ContainerAllocator> >::other > _networks_type;
00042 std::vector< ::wifi_ddwrt::Network_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::wifi_ddwrt::Network_<ContainerAllocator> >::other > networks;
00043
00044
00045 typedef boost::shared_ptr< ::wifi_ddwrt::SiteSurvey_<ContainerAllocator> > Ptr;
00046 typedef boost::shared_ptr< ::wifi_ddwrt::SiteSurvey_<ContainerAllocator> const> ConstPtr;
00047 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00048 };
00049 typedef ::wifi_ddwrt::SiteSurvey_<std::allocator<void> > SiteSurvey;
00050
00051 typedef boost::shared_ptr< ::wifi_ddwrt::SiteSurvey> SiteSurveyPtr;
00052 typedef boost::shared_ptr< ::wifi_ddwrt::SiteSurvey const> SiteSurveyConstPtr;
00053
00054
00055 template<typename ContainerAllocator>
00056 std::ostream& operator<<(std::ostream& s, const ::wifi_ddwrt::SiteSurvey_<ContainerAllocator> & v)
00057 {
00058 ros::message_operations::Printer< ::wifi_ddwrt::SiteSurvey_<ContainerAllocator> >::stream(s, "", v);
00059 return s;}
00060
00061 }
00062
00063 namespace ros
00064 {
00065 namespace message_traits
00066 {
00067 template<class ContainerAllocator> struct IsMessage< ::wifi_ddwrt::SiteSurvey_<ContainerAllocator> > : public TrueType {};
00068 template<class ContainerAllocator> struct IsMessage< ::wifi_ddwrt::SiteSurvey_<ContainerAllocator> const> : public TrueType {};
00069 template<class ContainerAllocator>
00070 struct MD5Sum< ::wifi_ddwrt::SiteSurvey_<ContainerAllocator> > {
00071 static const char* value()
00072 {
00073 return "f1063b16bb121ef190ae5edfe09d94ec";
00074 }
00075
00076 static const char* value(const ::wifi_ddwrt::SiteSurvey_<ContainerAllocator> &) { return value(); }
00077 static const uint64_t static_value1 = 0xf1063b16bb121ef1ULL;
00078 static const uint64_t static_value2 = 0x90ae5edfe09d94ecULL;
00079 };
00080
00081 template<class ContainerAllocator>
00082 struct DataType< ::wifi_ddwrt::SiteSurvey_<ContainerAllocator> > {
00083 static const char* value()
00084 {
00085 return "wifi_ddwrt/SiteSurvey";
00086 }
00087
00088 static const char* value(const ::wifi_ddwrt::SiteSurvey_<ContainerAllocator> &) { return value(); }
00089 };
00090
00091 template<class ContainerAllocator>
00092 struct Definition< ::wifi_ddwrt::SiteSurvey_<ContainerAllocator> > {
00093 static const char* value()
00094 {
00095 return "Header header\n\
00096 Network[] networks\n\
00097 \n\
00098 ================================================================================\n\
00099 MSG: std_msgs/Header\n\
00100 # Standard metadata for higher-level stamped data types.\n\
00101 # This is generally used to communicate timestamped data \n\
00102 # in a particular coordinate frame.\n\
00103 # \n\
00104 # sequence ID: consecutively increasing ID \n\
00105 uint32 seq\n\
00106 #Two-integer timestamp that is expressed as:\n\
00107 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00108 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00109 # time-handling sugar is provided by the client library\n\
00110 time stamp\n\
00111 #Frame this data is associated with\n\
00112 # 0: no frame\n\
00113 # 1: global frame\n\
00114 string frame_id\n\
00115 \n\
00116 ================================================================================\n\
00117 MSG: wifi_ddwrt/Network\n\
00118 string macattr\n\
00119 string essid\n\
00120 int32 channel\n\
00121 int32 rssi\n\
00122 int32 noise\n\
00123 int32 beacon\n\
00124 \n\
00125 ";
00126 }
00127
00128 static const char* value(const ::wifi_ddwrt::SiteSurvey_<ContainerAllocator> &) { return value(); }
00129 };
00130
00131 template<class ContainerAllocator> struct HasHeader< ::wifi_ddwrt::SiteSurvey_<ContainerAllocator> > : public TrueType {};
00132 template<class ContainerAllocator> struct HasHeader< const ::wifi_ddwrt::SiteSurvey_<ContainerAllocator> > : public TrueType {};
00133 }
00134 }
00135
00136 namespace ros
00137 {
00138 namespace serialization
00139 {
00140
00141 template<class ContainerAllocator> struct Serializer< ::wifi_ddwrt::SiteSurvey_<ContainerAllocator> >
00142 {
00143 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00144 {
00145 stream.next(m.header);
00146 stream.next(m.networks);
00147 }
00148
00149 ROS_DECLARE_ALLINONE_SERIALIZER;
00150 };
00151 }
00152 }
00153
00154 namespace ros
00155 {
00156 namespace message_operations
00157 {
00158
00159 template<class ContainerAllocator>
00160 struct Printer< ::wifi_ddwrt::SiteSurvey_<ContainerAllocator> >
00161 {
00162 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::wifi_ddwrt::SiteSurvey_<ContainerAllocator> & v)
00163 {
00164 s << indent << "header: ";
00165 s << std::endl;
00166 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00167 s << indent << "networks[]" << std::endl;
00168 for (size_t i = 0; i < v.networks.size(); ++i)
00169 {
00170 s << indent << " networks[" << i << "]: ";
00171 s << std::endl;
00172 s << indent;
00173 Printer< ::wifi_ddwrt::Network_<ContainerAllocator> >::stream(s, indent + " ", v.networks[i]);
00174 }
00175 }
00176 };
00177
00178
00179 }
00180 }
00181
00182 #endif // WIFI_DDWRT_MESSAGE_SITESURVEY_H
00183