00001
00002 #ifndef WIFI_DDWRT_MESSAGE_NETWORK_H
00003 #define WIFI_DDWRT_MESSAGE_NETWORK_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
00014 namespace wifi_ddwrt
00015 {
00016 template <class ContainerAllocator>
00017 struct Network_ : public ros::Message
00018 {
00019 typedef Network_<ContainerAllocator> Type;
00020
00021 Network_()
00022 : macattr()
00023 , essid()
00024 , channel(0)
00025 , rssi(0)
00026 , noise(0)
00027 , beacon(0)
00028 {
00029 }
00030
00031 Network_(const ContainerAllocator& _alloc)
00032 : macattr(_alloc)
00033 , essid(_alloc)
00034 , channel(0)
00035 , rssi(0)
00036 , noise(0)
00037 , beacon(0)
00038 {
00039 }
00040
00041 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _macattr_type;
00042 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > macattr;
00043
00044 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _essid_type;
00045 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > essid;
00046
00047 typedef int32_t _channel_type;
00048 int32_t channel;
00049
00050 typedef int32_t _rssi_type;
00051 int32_t rssi;
00052
00053 typedef int32_t _noise_type;
00054 int32_t noise;
00055
00056 typedef int32_t _beacon_type;
00057 int32_t beacon;
00058
00059
00060 private:
00061 static const char* __s_getDataType_() { return "wifi_ddwrt/Network"; }
00062 public:
00063 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00064
00065 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00066
00067 private:
00068 static const char* __s_getMD5Sum_() { return "b0854419660dc197dd94305843bee07f"; }
00069 public:
00070 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00071
00072 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00073
00074 private:
00075 static const char* __s_getMessageDefinition_() { return "string macattr\n\
00076 string essid\n\
00077 int32 channel\n\
00078 int32 rssi\n\
00079 int32 noise\n\
00080 int32 beacon\n\
00081 \n\
00082 "; }
00083 public:
00084 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00085
00086 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00087
00088 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00089 {
00090 ros::serialization::OStream stream(write_ptr, 1000000000);
00091 ros::serialization::serialize(stream, macattr);
00092 ros::serialization::serialize(stream, essid);
00093 ros::serialization::serialize(stream, channel);
00094 ros::serialization::serialize(stream, rssi);
00095 ros::serialization::serialize(stream, noise);
00096 ros::serialization::serialize(stream, beacon);
00097 return stream.getData();
00098 }
00099
00100 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00101 {
00102 ros::serialization::IStream stream(read_ptr, 1000000000);
00103 ros::serialization::deserialize(stream, macattr);
00104 ros::serialization::deserialize(stream, essid);
00105 ros::serialization::deserialize(stream, channel);
00106 ros::serialization::deserialize(stream, rssi);
00107 ros::serialization::deserialize(stream, noise);
00108 ros::serialization::deserialize(stream, beacon);
00109 return stream.getData();
00110 }
00111
00112 ROS_DEPRECATED virtual uint32_t serializationLength() const
00113 {
00114 uint32_t size = 0;
00115 size += ros::serialization::serializationLength(macattr);
00116 size += ros::serialization::serializationLength(essid);
00117 size += ros::serialization::serializationLength(channel);
00118 size += ros::serialization::serializationLength(rssi);
00119 size += ros::serialization::serializationLength(noise);
00120 size += ros::serialization::serializationLength(beacon);
00121 return size;
00122 }
00123
00124 typedef boost::shared_ptr< ::wifi_ddwrt::Network_<ContainerAllocator> > Ptr;
00125 typedef boost::shared_ptr< ::wifi_ddwrt::Network_<ContainerAllocator> const> ConstPtr;
00126 };
00127 typedef ::wifi_ddwrt::Network_<std::allocator<void> > Network;
00128
00129 typedef boost::shared_ptr< ::wifi_ddwrt::Network> NetworkPtr;
00130 typedef boost::shared_ptr< ::wifi_ddwrt::Network const> NetworkConstPtr;
00131
00132
00133 template<typename ContainerAllocator>
00134 std::ostream& operator<<(std::ostream& s, const ::wifi_ddwrt::Network_<ContainerAllocator> & v)
00135 {
00136 ros::message_operations::Printer< ::wifi_ddwrt::Network_<ContainerAllocator> >::stream(s, "", v);
00137 return s;}
00138
00139 }
00140
00141 namespace ros
00142 {
00143 namespace message_traits
00144 {
00145 template<class ContainerAllocator>
00146 struct MD5Sum< ::wifi_ddwrt::Network_<ContainerAllocator> > {
00147 static const char* value()
00148 {
00149 return "b0854419660dc197dd94305843bee07f";
00150 }
00151
00152 static const char* value(const ::wifi_ddwrt::Network_<ContainerAllocator> &) { return value(); }
00153 static const uint64_t static_value1 = 0xb0854419660dc197ULL;
00154 static const uint64_t static_value2 = 0xdd94305843bee07fULL;
00155 };
00156
00157 template<class ContainerAllocator>
00158 struct DataType< ::wifi_ddwrt::Network_<ContainerAllocator> > {
00159 static const char* value()
00160 {
00161 return "wifi_ddwrt/Network";
00162 }
00163
00164 static const char* value(const ::wifi_ddwrt::Network_<ContainerAllocator> &) { return value(); }
00165 };
00166
00167 template<class ContainerAllocator>
00168 struct Definition< ::wifi_ddwrt::Network_<ContainerAllocator> > {
00169 static const char* value()
00170 {
00171 return "string macattr\n\
00172 string essid\n\
00173 int32 channel\n\
00174 int32 rssi\n\
00175 int32 noise\n\
00176 int32 beacon\n\
00177 \n\
00178 ";
00179 }
00180
00181 static const char* value(const ::wifi_ddwrt::Network_<ContainerAllocator> &) { return value(); }
00182 };
00183
00184 }
00185 }
00186
00187 namespace ros
00188 {
00189 namespace serialization
00190 {
00191
00192 template<class ContainerAllocator> struct Serializer< ::wifi_ddwrt::Network_<ContainerAllocator> >
00193 {
00194 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00195 {
00196 stream.next(m.macattr);
00197 stream.next(m.essid);
00198 stream.next(m.channel);
00199 stream.next(m.rssi);
00200 stream.next(m.noise);
00201 stream.next(m.beacon);
00202 }
00203
00204 ROS_DECLARE_ALLINONE_SERIALIZER;
00205 };
00206 }
00207 }
00208
00209 namespace ros
00210 {
00211 namespace message_operations
00212 {
00213
00214 template<class ContainerAllocator>
00215 struct Printer< ::wifi_ddwrt::Network_<ContainerAllocator> >
00216 {
00217 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::wifi_ddwrt::Network_<ContainerAllocator> & v)
00218 {
00219 s << indent << "macattr: ";
00220 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.macattr);
00221 s << indent << "essid: ";
00222 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.essid);
00223 s << indent << "channel: ";
00224 Printer<int32_t>::stream(s, indent + " ", v.channel);
00225 s << indent << "rssi: ";
00226 Printer<int32_t>::stream(s, indent + " ", v.rssi);
00227 s << indent << "noise: ";
00228 Printer<int32_t>::stream(s, indent + " ", v.noise);
00229 s << indent << "beacon: ";
00230 Printer<int32_t>::stream(s, indent + " ", v.beacon);
00231 }
00232 };
00233
00234
00235 }
00236 }
00237
00238 #endif // WIFI_DDWRT_MESSAGE_NETWORK_H
00239