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