$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-wifi_drivers/doc_stacks/2013-03-02_14-19-41.222952/wifi_drivers/wifi_ddwrt/msg/SiteSurvey.msg */ 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 ROS_DEPRECATED uint32_t get_networks_size() const { return (uint32_t)networks.size(); } 00046 ROS_DEPRECATED void set_networks_size(uint32_t size) { networks.resize((size_t)size); } 00047 ROS_DEPRECATED void get_networks_vec(std::vector< ::wifi_ddwrt::Network_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::wifi_ddwrt::Network_<ContainerAllocator> >::other > & vec) const { vec = this->networks; } 00048 ROS_DEPRECATED void set_networks_vec(const std::vector< ::wifi_ddwrt::Network_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::wifi_ddwrt::Network_<ContainerAllocator> >::other > & vec) { this->networks = vec; } 00049 private: 00050 static const char* __s_getDataType_() { return "wifi_ddwrt/SiteSurvey"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00053 00054 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00055 00056 private: 00057 static const char* __s_getMD5Sum_() { return "f1063b16bb121ef190ae5edfe09d94ec"; } 00058 public: 00059 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00060 00061 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00062 00063 private: 00064 static const char* __s_getMessageDefinition_() { return "Header header\n\ 00065 Network[] networks\n\ 00066 \n\ 00067 ================================================================================\n\ 00068 MSG: std_msgs/Header\n\ 00069 # Standard metadata for higher-level stamped data types.\n\ 00070 # This is generally used to communicate timestamped data \n\ 00071 # in a particular coordinate frame.\n\ 00072 # \n\ 00073 # sequence ID: consecutively increasing ID \n\ 00074 uint32 seq\n\ 00075 #Two-integer timestamp that is expressed as:\n\ 00076 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00077 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00078 # time-handling sugar is provided by the client library\n\ 00079 time stamp\n\ 00080 #Frame this data is associated with\n\ 00081 # 0: no frame\n\ 00082 # 1: global frame\n\ 00083 string frame_id\n\ 00084 \n\ 00085 ================================================================================\n\ 00086 MSG: wifi_ddwrt/Network\n\ 00087 string macattr\n\ 00088 string essid\n\ 00089 int32 channel\n\ 00090 int32 rssi\n\ 00091 int32 noise\n\ 00092 int32 beacon\n\ 00093 \n\ 00094 "; } 00095 public: 00096 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00097 00098 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00099 00100 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00101 { 00102 ros::serialization::OStream stream(write_ptr, 1000000000); 00103 ros::serialization::serialize(stream, header); 00104 ros::serialization::serialize(stream, networks); 00105 return stream.getData(); 00106 } 00107 00108 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00109 { 00110 ros::serialization::IStream stream(read_ptr, 1000000000); 00111 ros::serialization::deserialize(stream, header); 00112 ros::serialization::deserialize(stream, networks); 00113 return stream.getData(); 00114 } 00115 00116 ROS_DEPRECATED virtual uint32_t serializationLength() const 00117 { 00118 uint32_t size = 0; 00119 size += ros::serialization::serializationLength(header); 00120 size += ros::serialization::serializationLength(networks); 00121 return size; 00122 } 00123 00124 typedef boost::shared_ptr< ::wifi_ddwrt::SiteSurvey_<ContainerAllocator> > Ptr; 00125 typedef boost::shared_ptr< ::wifi_ddwrt::SiteSurvey_<ContainerAllocator> const> ConstPtr; 00126 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00127 }; // struct SiteSurvey 00128 typedef ::wifi_ddwrt::SiteSurvey_<std::allocator<void> > SiteSurvey; 00129 00130 typedef boost::shared_ptr< ::wifi_ddwrt::SiteSurvey> SiteSurveyPtr; 00131 typedef boost::shared_ptr< ::wifi_ddwrt::SiteSurvey const> SiteSurveyConstPtr; 00132 00133 00134 template<typename ContainerAllocator> 00135 std::ostream& operator<<(std::ostream& s, const ::wifi_ddwrt::SiteSurvey_<ContainerAllocator> & v) 00136 { 00137 ros::message_operations::Printer< ::wifi_ddwrt::SiteSurvey_<ContainerAllocator> >::stream(s, "", v); 00138 return s;} 00139 00140 } // namespace wifi_ddwrt 00141 00142 namespace ros 00143 { 00144 namespace message_traits 00145 { 00146 template<class ContainerAllocator> struct IsMessage< ::wifi_ddwrt::SiteSurvey_<ContainerAllocator> > : public TrueType {}; 00147 template<class ContainerAllocator> struct IsMessage< ::wifi_ddwrt::SiteSurvey_<ContainerAllocator> const> : public TrueType {}; 00148 template<class ContainerAllocator> 00149 struct MD5Sum< ::wifi_ddwrt::SiteSurvey_<ContainerAllocator> > { 00150 static const char* value() 00151 { 00152 return "f1063b16bb121ef190ae5edfe09d94ec"; 00153 } 00154 00155 static const char* value(const ::wifi_ddwrt::SiteSurvey_<ContainerAllocator> &) { return value(); } 00156 static const uint64_t static_value1 = 0xf1063b16bb121ef1ULL; 00157 static const uint64_t static_value2 = 0x90ae5edfe09d94ecULL; 00158 }; 00159 00160 template<class ContainerAllocator> 00161 struct DataType< ::wifi_ddwrt::SiteSurvey_<ContainerAllocator> > { 00162 static const char* value() 00163 { 00164 return "wifi_ddwrt/SiteSurvey"; 00165 } 00166 00167 static const char* value(const ::wifi_ddwrt::SiteSurvey_<ContainerAllocator> &) { return value(); } 00168 }; 00169 00170 template<class ContainerAllocator> 00171 struct Definition< ::wifi_ddwrt::SiteSurvey_<ContainerAllocator> > { 00172 static const char* value() 00173 { 00174 return "Header header\n\ 00175 Network[] networks\n\ 00176 \n\ 00177 ================================================================================\n\ 00178 MSG: std_msgs/Header\n\ 00179 # Standard metadata for higher-level stamped data types.\n\ 00180 # This is generally used to communicate timestamped data \n\ 00181 # in a particular coordinate frame.\n\ 00182 # \n\ 00183 # sequence ID: consecutively increasing ID \n\ 00184 uint32 seq\n\ 00185 #Two-integer timestamp that is expressed as:\n\ 00186 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00187 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00188 # time-handling sugar is provided by the client library\n\ 00189 time stamp\n\ 00190 #Frame this data is associated with\n\ 00191 # 0: no frame\n\ 00192 # 1: global frame\n\ 00193 string frame_id\n\ 00194 \n\ 00195 ================================================================================\n\ 00196 MSG: wifi_ddwrt/Network\n\ 00197 string macattr\n\ 00198 string essid\n\ 00199 int32 channel\n\ 00200 int32 rssi\n\ 00201 int32 noise\n\ 00202 int32 beacon\n\ 00203 \n\ 00204 "; 00205 } 00206 00207 static const char* value(const ::wifi_ddwrt::SiteSurvey_<ContainerAllocator> &) { return value(); } 00208 }; 00209 00210 template<class ContainerAllocator> struct HasHeader< ::wifi_ddwrt::SiteSurvey_<ContainerAllocator> > : public TrueType {}; 00211 template<class ContainerAllocator> struct HasHeader< const ::wifi_ddwrt::SiteSurvey_<ContainerAllocator> > : public TrueType {}; 00212 } // namespace message_traits 00213 } // namespace ros 00214 00215 namespace ros 00216 { 00217 namespace serialization 00218 { 00219 00220 template<class ContainerAllocator> struct Serializer< ::wifi_ddwrt::SiteSurvey_<ContainerAllocator> > 00221 { 00222 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00223 { 00224 stream.next(m.header); 00225 stream.next(m.networks); 00226 } 00227 00228 ROS_DECLARE_ALLINONE_SERIALIZER; 00229 }; // struct SiteSurvey_ 00230 } // namespace serialization 00231 } // namespace ros 00232 00233 namespace ros 00234 { 00235 namespace message_operations 00236 { 00237 00238 template<class ContainerAllocator> 00239 struct Printer< ::wifi_ddwrt::SiteSurvey_<ContainerAllocator> > 00240 { 00241 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::wifi_ddwrt::SiteSurvey_<ContainerAllocator> & v) 00242 { 00243 s << indent << "header: "; 00244 s << std::endl; 00245 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00246 s << indent << "networks[]" << std::endl; 00247 for (size_t i = 0; i < v.networks.size(); ++i) 00248 { 00249 s << indent << " networks[" << i << "]: "; 00250 s << std::endl; 00251 s << indent; 00252 Printer< ::wifi_ddwrt::Network_<ContainerAllocator> >::stream(s, indent + " ", v.networks[i]); 00253 } 00254 } 00255 }; 00256 00257 00258 } // namespace message_operations 00259 } // namespace ros 00260 00261 #endif // WIFI_DDWRT_MESSAGE_SITESURVEY_H 00262