$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-pr2_common/doc_stacks/2013-03-01_16-36-22.045406/pr2_common/pr2_msgs/msg/AccessPoint.msg */ 00002 #ifndef PR2_MSGS_MESSAGE_ACCESSPOINT_H 00003 #define PR2_MSGS_MESSAGE_ACCESSPOINT_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 00019 namespace pr2_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct AccessPoint_ { 00023 typedef AccessPoint_<ContainerAllocator> Type; 00024 00025 AccessPoint_() 00026 : header() 00027 , essid() 00028 , macaddr() 00029 , signal(0) 00030 , noise(0) 00031 , snr(0) 00032 , channel(0) 00033 , rate() 00034 , tx_power() 00035 , quality(0) 00036 { 00037 } 00038 00039 AccessPoint_(const ContainerAllocator& _alloc) 00040 : header(_alloc) 00041 , essid(_alloc) 00042 , macaddr(_alloc) 00043 , signal(0) 00044 , noise(0) 00045 , snr(0) 00046 , channel(0) 00047 , rate(_alloc) 00048 , tx_power(_alloc) 00049 , quality(0) 00050 { 00051 } 00052 00053 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00054 ::std_msgs::Header_<ContainerAllocator> header; 00055 00056 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _essid_type; 00057 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > essid; 00058 00059 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _macaddr_type; 00060 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > macaddr; 00061 00062 typedef int32_t _signal_type; 00063 int32_t signal; 00064 00065 typedef int32_t _noise_type; 00066 int32_t noise; 00067 00068 typedef int32_t _snr_type; 00069 int32_t snr; 00070 00071 typedef int32_t _channel_type; 00072 int32_t channel; 00073 00074 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _rate_type; 00075 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > rate; 00076 00077 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _tx_power_type; 00078 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > tx_power; 00079 00080 typedef int32_t _quality_type; 00081 int32_t quality; 00082 00083 00084 private: 00085 static const char* __s_getDataType_() { return "pr2_msgs/AccessPoint"; } 00086 public: 00087 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00088 00089 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00090 00091 private: 00092 static const char* __s_getMD5Sum_() { return "810217d9e35df31ffb396ea5673d7d1b"; } 00093 public: 00094 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00095 00096 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00097 00098 private: 00099 static const char* __s_getMessageDefinition_() { return "# This message communicates the state of the PR2's wifi access point.\n\ 00100 Header header\n\ 00101 string essid\n\ 00102 string macaddr\n\ 00103 int32 signal\n\ 00104 int32 noise\n\ 00105 int32 snr\n\ 00106 int32 channel\n\ 00107 string rate\n\ 00108 string tx_power\n\ 00109 int32 quality\n\ 00110 \n\ 00111 ================================================================================\n\ 00112 MSG: std_msgs/Header\n\ 00113 # Standard metadata for higher-level stamped data types.\n\ 00114 # This is generally used to communicate timestamped data \n\ 00115 # in a particular coordinate frame.\n\ 00116 # \n\ 00117 # sequence ID: consecutively increasing ID \n\ 00118 uint32 seq\n\ 00119 #Two-integer timestamp that is expressed as:\n\ 00120 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00121 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00122 # time-handling sugar is provided by the client library\n\ 00123 time stamp\n\ 00124 #Frame this data is associated with\n\ 00125 # 0: no frame\n\ 00126 # 1: global frame\n\ 00127 string frame_id\n\ 00128 \n\ 00129 "; } 00130 public: 00131 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00132 00133 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00134 00135 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00136 { 00137 ros::serialization::OStream stream(write_ptr, 1000000000); 00138 ros::serialization::serialize(stream, header); 00139 ros::serialization::serialize(stream, essid); 00140 ros::serialization::serialize(stream, macaddr); 00141 ros::serialization::serialize(stream, signal); 00142 ros::serialization::serialize(stream, noise); 00143 ros::serialization::serialize(stream, snr); 00144 ros::serialization::serialize(stream, channel); 00145 ros::serialization::serialize(stream, rate); 00146 ros::serialization::serialize(stream, tx_power); 00147 ros::serialization::serialize(stream, quality); 00148 return stream.getData(); 00149 } 00150 00151 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00152 { 00153 ros::serialization::IStream stream(read_ptr, 1000000000); 00154 ros::serialization::deserialize(stream, header); 00155 ros::serialization::deserialize(stream, essid); 00156 ros::serialization::deserialize(stream, macaddr); 00157 ros::serialization::deserialize(stream, signal); 00158 ros::serialization::deserialize(stream, noise); 00159 ros::serialization::deserialize(stream, snr); 00160 ros::serialization::deserialize(stream, channel); 00161 ros::serialization::deserialize(stream, rate); 00162 ros::serialization::deserialize(stream, tx_power); 00163 ros::serialization::deserialize(stream, quality); 00164 return stream.getData(); 00165 } 00166 00167 ROS_DEPRECATED virtual uint32_t serializationLength() const 00168 { 00169 uint32_t size = 0; 00170 size += ros::serialization::serializationLength(header); 00171 size += ros::serialization::serializationLength(essid); 00172 size += ros::serialization::serializationLength(macaddr); 00173 size += ros::serialization::serializationLength(signal); 00174 size += ros::serialization::serializationLength(noise); 00175 size += ros::serialization::serializationLength(snr); 00176 size += ros::serialization::serializationLength(channel); 00177 size += ros::serialization::serializationLength(rate); 00178 size += ros::serialization::serializationLength(tx_power); 00179 size += ros::serialization::serializationLength(quality); 00180 return size; 00181 } 00182 00183 typedef boost::shared_ptr< ::pr2_msgs::AccessPoint_<ContainerAllocator> > Ptr; 00184 typedef boost::shared_ptr< ::pr2_msgs::AccessPoint_<ContainerAllocator> const> ConstPtr; 00185 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00186 }; // struct AccessPoint 00187 typedef ::pr2_msgs::AccessPoint_<std::allocator<void> > AccessPoint; 00188 00189 typedef boost::shared_ptr< ::pr2_msgs::AccessPoint> AccessPointPtr; 00190 typedef boost::shared_ptr< ::pr2_msgs::AccessPoint const> AccessPointConstPtr; 00191 00192 00193 template<typename ContainerAllocator> 00194 std::ostream& operator<<(std::ostream& s, const ::pr2_msgs::AccessPoint_<ContainerAllocator> & v) 00195 { 00196 ros::message_operations::Printer< ::pr2_msgs::AccessPoint_<ContainerAllocator> >::stream(s, "", v); 00197 return s;} 00198 00199 } // namespace pr2_msgs 00200 00201 namespace ros 00202 { 00203 namespace message_traits 00204 { 00205 template<class ContainerAllocator> struct IsMessage< ::pr2_msgs::AccessPoint_<ContainerAllocator> > : public TrueType {}; 00206 template<class ContainerAllocator> struct IsMessage< ::pr2_msgs::AccessPoint_<ContainerAllocator> const> : public TrueType {}; 00207 template<class ContainerAllocator> 00208 struct MD5Sum< ::pr2_msgs::AccessPoint_<ContainerAllocator> > { 00209 static const char* value() 00210 { 00211 return "810217d9e35df31ffb396ea5673d7d1b"; 00212 } 00213 00214 static const char* value(const ::pr2_msgs::AccessPoint_<ContainerAllocator> &) { return value(); } 00215 static const uint64_t static_value1 = 0x810217d9e35df31fULL; 00216 static const uint64_t static_value2 = 0xfb396ea5673d7d1bULL; 00217 }; 00218 00219 template<class ContainerAllocator> 00220 struct DataType< ::pr2_msgs::AccessPoint_<ContainerAllocator> > { 00221 static const char* value() 00222 { 00223 return "pr2_msgs/AccessPoint"; 00224 } 00225 00226 static const char* value(const ::pr2_msgs::AccessPoint_<ContainerAllocator> &) { return value(); } 00227 }; 00228 00229 template<class ContainerAllocator> 00230 struct Definition< ::pr2_msgs::AccessPoint_<ContainerAllocator> > { 00231 static const char* value() 00232 { 00233 return "# This message communicates the state of the PR2's wifi access point.\n\ 00234 Header header\n\ 00235 string essid\n\ 00236 string macaddr\n\ 00237 int32 signal\n\ 00238 int32 noise\n\ 00239 int32 snr\n\ 00240 int32 channel\n\ 00241 string rate\n\ 00242 string tx_power\n\ 00243 int32 quality\n\ 00244 \n\ 00245 ================================================================================\n\ 00246 MSG: std_msgs/Header\n\ 00247 # Standard metadata for higher-level stamped data types.\n\ 00248 # This is generally used to communicate timestamped data \n\ 00249 # in a particular coordinate frame.\n\ 00250 # \n\ 00251 # sequence ID: consecutively increasing ID \n\ 00252 uint32 seq\n\ 00253 #Two-integer timestamp that is expressed as:\n\ 00254 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00255 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00256 # time-handling sugar is provided by the client library\n\ 00257 time stamp\n\ 00258 #Frame this data is associated with\n\ 00259 # 0: no frame\n\ 00260 # 1: global frame\n\ 00261 string frame_id\n\ 00262 \n\ 00263 "; 00264 } 00265 00266 static const char* value(const ::pr2_msgs::AccessPoint_<ContainerAllocator> &) { return value(); } 00267 }; 00268 00269 template<class ContainerAllocator> struct HasHeader< ::pr2_msgs::AccessPoint_<ContainerAllocator> > : public TrueType {}; 00270 template<class ContainerAllocator> struct HasHeader< const ::pr2_msgs::AccessPoint_<ContainerAllocator> > : public TrueType {}; 00271 } // namespace message_traits 00272 } // namespace ros 00273 00274 namespace ros 00275 { 00276 namespace serialization 00277 { 00278 00279 template<class ContainerAllocator> struct Serializer< ::pr2_msgs::AccessPoint_<ContainerAllocator> > 00280 { 00281 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00282 { 00283 stream.next(m.header); 00284 stream.next(m.essid); 00285 stream.next(m.macaddr); 00286 stream.next(m.signal); 00287 stream.next(m.noise); 00288 stream.next(m.snr); 00289 stream.next(m.channel); 00290 stream.next(m.rate); 00291 stream.next(m.tx_power); 00292 stream.next(m.quality); 00293 } 00294 00295 ROS_DECLARE_ALLINONE_SERIALIZER; 00296 }; // struct AccessPoint_ 00297 } // namespace serialization 00298 } // namespace ros 00299 00300 namespace ros 00301 { 00302 namespace message_operations 00303 { 00304 00305 template<class ContainerAllocator> 00306 struct Printer< ::pr2_msgs::AccessPoint_<ContainerAllocator> > 00307 { 00308 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_msgs::AccessPoint_<ContainerAllocator> & v) 00309 { 00310 s << indent << "header: "; 00311 s << std::endl; 00312 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00313 s << indent << "essid: "; 00314 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.essid); 00315 s << indent << "macaddr: "; 00316 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.macaddr); 00317 s << indent << "signal: "; 00318 Printer<int32_t>::stream(s, indent + " ", v.signal); 00319 s << indent << "noise: "; 00320 Printer<int32_t>::stream(s, indent + " ", v.noise); 00321 s << indent << "snr: "; 00322 Printer<int32_t>::stream(s, indent + " ", v.snr); 00323 s << indent << "channel: "; 00324 Printer<int32_t>::stream(s, indent + " ", v.channel); 00325 s << indent << "rate: "; 00326 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.rate); 00327 s << indent << "tx_power: "; 00328 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.tx_power); 00329 s << indent << "quality: "; 00330 Printer<int32_t>::stream(s, indent + " ", v.quality); 00331 } 00332 }; 00333 00334 00335 } // namespace message_operations 00336 } // namespace ros 00337 00338 #endif // PR2_MSGS_MESSAGE_ACCESSPOINT_H 00339