$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-bond_core/doc_stacks/2013-03-01_14-14-12.234153/bond_core/bond/msg/Status.msg */ 00002 #ifndef BOND_MESSAGE_STATUS_H 00003 #define BOND_MESSAGE_STATUS_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 bond 00020 { 00021 template <class ContainerAllocator> 00022 struct Status_ { 00023 typedef Status_<ContainerAllocator> Type; 00024 00025 Status_() 00026 : header() 00027 , id() 00028 , instance_id() 00029 , active(false) 00030 , heartbeat_timeout(0.0) 00031 , heartbeat_period(0.0) 00032 { 00033 } 00034 00035 Status_(const ContainerAllocator& _alloc) 00036 : header(_alloc) 00037 , id(_alloc) 00038 , instance_id(_alloc) 00039 , active(false) 00040 , heartbeat_timeout(0.0) 00041 , heartbeat_period(0.0) 00042 { 00043 } 00044 00045 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00046 ::std_msgs::Header_<ContainerAllocator> header; 00047 00048 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _id_type; 00049 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > id; 00050 00051 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _instance_id_type; 00052 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > instance_id; 00053 00054 typedef uint8_t _active_type; 00055 uint8_t active; 00056 00057 typedef float _heartbeat_timeout_type; 00058 float heartbeat_timeout; 00059 00060 typedef float _heartbeat_period_type; 00061 float heartbeat_period; 00062 00063 00064 private: 00065 static const char* __s_getDataType_() { return "bond/Status"; } 00066 public: 00067 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00068 00069 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00070 00071 private: 00072 static const char* __s_getMD5Sum_() { return "eacc84bf5d65b6777d4c50f463dfb9c8"; } 00073 public: 00074 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00075 00076 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00077 00078 private: 00079 static const char* __s_getMessageDefinition_() { return "Header header\n\ 00080 string id # ID of the bond\n\ 00081 string instance_id # Unique ID for an individual in a bond\n\ 00082 bool active\n\ 00083 \n\ 00084 # Including the timeouts for the bond makes it easier to debug mis-matches\n\ 00085 # between the two sides.\n\ 00086 float32 heartbeat_timeout\n\ 00087 float32 heartbeat_period\n\ 00088 ================================================================================\n\ 00089 MSG: std_msgs/Header\n\ 00090 # Standard metadata for higher-level stamped data types.\n\ 00091 # This is generally used to communicate timestamped data \n\ 00092 # in a particular coordinate frame.\n\ 00093 # \n\ 00094 # sequence ID: consecutively increasing ID \n\ 00095 uint32 seq\n\ 00096 #Two-integer timestamp that is expressed as:\n\ 00097 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00098 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00099 # time-handling sugar is provided by the client library\n\ 00100 time stamp\n\ 00101 #Frame this data is associated with\n\ 00102 # 0: no frame\n\ 00103 # 1: global frame\n\ 00104 string frame_id\n\ 00105 \n\ 00106 "; } 00107 public: 00108 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00109 00110 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00111 00112 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00113 { 00114 ros::serialization::OStream stream(write_ptr, 1000000000); 00115 ros::serialization::serialize(stream, header); 00116 ros::serialization::serialize(stream, id); 00117 ros::serialization::serialize(stream, instance_id); 00118 ros::serialization::serialize(stream, active); 00119 ros::serialization::serialize(stream, heartbeat_timeout); 00120 ros::serialization::serialize(stream, heartbeat_period); 00121 return stream.getData(); 00122 } 00123 00124 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00125 { 00126 ros::serialization::IStream stream(read_ptr, 1000000000); 00127 ros::serialization::deserialize(stream, header); 00128 ros::serialization::deserialize(stream, id); 00129 ros::serialization::deserialize(stream, instance_id); 00130 ros::serialization::deserialize(stream, active); 00131 ros::serialization::deserialize(stream, heartbeat_timeout); 00132 ros::serialization::deserialize(stream, heartbeat_period); 00133 return stream.getData(); 00134 } 00135 00136 ROS_DEPRECATED virtual uint32_t serializationLength() const 00137 { 00138 uint32_t size = 0; 00139 size += ros::serialization::serializationLength(header); 00140 size += ros::serialization::serializationLength(id); 00141 size += ros::serialization::serializationLength(instance_id); 00142 size += ros::serialization::serializationLength(active); 00143 size += ros::serialization::serializationLength(heartbeat_timeout); 00144 size += ros::serialization::serializationLength(heartbeat_period); 00145 return size; 00146 } 00147 00148 typedef boost::shared_ptr< ::bond::Status_<ContainerAllocator> > Ptr; 00149 typedef boost::shared_ptr< ::bond::Status_<ContainerAllocator> const> ConstPtr; 00150 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00151 }; // struct Status 00152 typedef ::bond::Status_<std::allocator<void> > Status; 00153 00154 typedef boost::shared_ptr< ::bond::Status> StatusPtr; 00155 typedef boost::shared_ptr< ::bond::Status const> StatusConstPtr; 00156 00157 00158 template<typename ContainerAllocator> 00159 std::ostream& operator<<(std::ostream& s, const ::bond::Status_<ContainerAllocator> & v) 00160 { 00161 ros::message_operations::Printer< ::bond::Status_<ContainerAllocator> >::stream(s, "", v); 00162 return s;} 00163 00164 } // namespace bond 00165 00166 namespace ros 00167 { 00168 namespace message_traits 00169 { 00170 template<class ContainerAllocator> struct IsMessage< ::bond::Status_<ContainerAllocator> > : public TrueType {}; 00171 template<class ContainerAllocator> struct IsMessage< ::bond::Status_<ContainerAllocator> const> : public TrueType {}; 00172 template<class ContainerAllocator> 00173 struct MD5Sum< ::bond::Status_<ContainerAllocator> > { 00174 static const char* value() 00175 { 00176 return "eacc84bf5d65b6777d4c50f463dfb9c8"; 00177 } 00178 00179 static const char* value(const ::bond::Status_<ContainerAllocator> &) { return value(); } 00180 static const uint64_t static_value1 = 0xeacc84bf5d65b677ULL; 00181 static const uint64_t static_value2 = 0x7d4c50f463dfb9c8ULL; 00182 }; 00183 00184 template<class ContainerAllocator> 00185 struct DataType< ::bond::Status_<ContainerAllocator> > { 00186 static const char* value() 00187 { 00188 return "bond/Status"; 00189 } 00190 00191 static const char* value(const ::bond::Status_<ContainerAllocator> &) { return value(); } 00192 }; 00193 00194 template<class ContainerAllocator> 00195 struct Definition< ::bond::Status_<ContainerAllocator> > { 00196 static const char* value() 00197 { 00198 return "Header header\n\ 00199 string id # ID of the bond\n\ 00200 string instance_id # Unique ID for an individual in a bond\n\ 00201 bool active\n\ 00202 \n\ 00203 # Including the timeouts for the bond makes it easier to debug mis-matches\n\ 00204 # between the two sides.\n\ 00205 float32 heartbeat_timeout\n\ 00206 float32 heartbeat_period\n\ 00207 ================================================================================\n\ 00208 MSG: std_msgs/Header\n\ 00209 # Standard metadata for higher-level stamped data types.\n\ 00210 # This is generally used to communicate timestamped data \n\ 00211 # in a particular coordinate frame.\n\ 00212 # \n\ 00213 # sequence ID: consecutively increasing ID \n\ 00214 uint32 seq\n\ 00215 #Two-integer timestamp that is expressed as:\n\ 00216 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00217 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00218 # time-handling sugar is provided by the client library\n\ 00219 time stamp\n\ 00220 #Frame this data is associated with\n\ 00221 # 0: no frame\n\ 00222 # 1: global frame\n\ 00223 string frame_id\n\ 00224 \n\ 00225 "; 00226 } 00227 00228 static const char* value(const ::bond::Status_<ContainerAllocator> &) { return value(); } 00229 }; 00230 00231 template<class ContainerAllocator> struct HasHeader< ::bond::Status_<ContainerAllocator> > : public TrueType {}; 00232 template<class ContainerAllocator> struct HasHeader< const ::bond::Status_<ContainerAllocator> > : public TrueType {}; 00233 } // namespace message_traits 00234 } // namespace ros 00235 00236 namespace ros 00237 { 00238 namespace serialization 00239 { 00240 00241 template<class ContainerAllocator> struct Serializer< ::bond::Status_<ContainerAllocator> > 00242 { 00243 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00244 { 00245 stream.next(m.header); 00246 stream.next(m.id); 00247 stream.next(m.instance_id); 00248 stream.next(m.active); 00249 stream.next(m.heartbeat_timeout); 00250 stream.next(m.heartbeat_period); 00251 } 00252 00253 ROS_DECLARE_ALLINONE_SERIALIZER; 00254 }; // struct Status_ 00255 } // namespace serialization 00256 } // namespace ros 00257 00258 namespace ros 00259 { 00260 namespace message_operations 00261 { 00262 00263 template<class ContainerAllocator> 00264 struct Printer< ::bond::Status_<ContainerAllocator> > 00265 { 00266 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::bond::Status_<ContainerAllocator> & v) 00267 { 00268 s << indent << "header: "; 00269 s << std::endl; 00270 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00271 s << indent << "id: "; 00272 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.id); 00273 s << indent << "instance_id: "; 00274 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.instance_id); 00275 s << indent << "active: "; 00276 Printer<uint8_t>::stream(s, indent + " ", v.active); 00277 s << indent << "heartbeat_timeout: "; 00278 Printer<float>::stream(s, indent + " ", v.heartbeat_timeout); 00279 s << indent << "heartbeat_period: "; 00280 Printer<float>::stream(s, indent + " ", v.heartbeat_period); 00281 } 00282 }; 00283 00284 00285 } // namespace message_operations 00286 } // namespace ros 00287 00288 #endif // BOND_MESSAGE_STATUS_H 00289