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