00001
00002 #ifndef ECTOOLS_MESSAGE_ECSTATS_H
00003 #define ECTOOLS_MESSAGE_ECSTATS_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 ectools
00015 {
00016 template <class ContainerAllocator>
00017 struct ecstats_ : public ros::Message
00018 {
00019 typedef ecstats_<ContainerAllocator> Type;
00020
00021 ecstats_()
00022 : has_link(false)
00023 , max_device_count(0)
00024 , interval_min_device_count(0)
00025 , total_sent_packets(0)
00026 , interval_sent_packets(0)
00027 , total_dropped_packets(0)
00028 , interval_dropped_packets(0)
00029 , total_late_packets(0)
00030 , interval_late_packets(0)
00031 , total_bandwidth_mbps(0.0)
00032 , interval_bandwidth_mbps(0.0)
00033 {
00034 }
00035
00036 ecstats_(const ContainerAllocator& _alloc)
00037 : has_link(false)
00038 , max_device_count(0)
00039 , interval_min_device_count(0)
00040 , total_sent_packets(0)
00041 , interval_sent_packets(0)
00042 , total_dropped_packets(0)
00043 , interval_dropped_packets(0)
00044 , total_late_packets(0)
00045 , interval_late_packets(0)
00046 , total_bandwidth_mbps(0.0)
00047 , interval_bandwidth_mbps(0.0)
00048 {
00049 }
00050
00051 typedef uint8_t _has_link_type;
00052 uint8_t has_link;
00053
00054 typedef int32_t _max_device_count_type;
00055 int32_t max_device_count;
00056
00057 typedef int32_t _interval_min_device_count_type;
00058 int32_t interval_min_device_count;
00059
00060 typedef uint64_t _total_sent_packets_type;
00061 uint64_t total_sent_packets;
00062
00063 typedef uint64_t _interval_sent_packets_type;
00064 uint64_t interval_sent_packets;
00065
00066 typedef uint64_t _total_dropped_packets_type;
00067 uint64_t total_dropped_packets;
00068
00069 typedef uint64_t _interval_dropped_packets_type;
00070 uint64_t interval_dropped_packets;
00071
00072 typedef uint64_t _total_late_packets_type;
00073 uint64_t total_late_packets;
00074
00075 typedef uint64_t _interval_late_packets_type;
00076 uint64_t interval_late_packets;
00077
00078 typedef double _total_bandwidth_mbps_type;
00079 double total_bandwidth_mbps;
00080
00081 typedef double _interval_bandwidth_mbps_type;
00082 double interval_bandwidth_mbps;
00083
00084
00085 private:
00086 static const char* __s_getDataType_() { return "ectools/ecstats"; }
00087 public:
00088 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00089
00090 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00091
00092 private:
00093 static const char* __s_getMD5Sum_() { return "115cb9793e197c78f9d3809b3132b379"; }
00094 public:
00095 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00096
00097 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00098
00099 private:
00100 static const char* __s_getMessageDefinition_() { return "bool has_link\n\
00101 int32 max_device_count\n\
00102 int32 interval_min_device_count\n\
00103 uint64 total_sent_packets\n\
00104 uint64 interval_sent_packets\n\
00105 uint64 total_dropped_packets\n\
00106 uint64 interval_dropped_packets\n\
00107 uint64 total_late_packets\n\
00108 uint64 interval_late_packets\n\
00109 float64 total_bandwidth_mbps\n\
00110 float64 interval_bandwidth_mbps\n\
00111 \n\
00112 "; }
00113 public:
00114 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00115
00116 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00117
00118 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00119 {
00120 ros::serialization::OStream stream(write_ptr, 1000000000);
00121 ros::serialization::serialize(stream, has_link);
00122 ros::serialization::serialize(stream, max_device_count);
00123 ros::serialization::serialize(stream, interval_min_device_count);
00124 ros::serialization::serialize(stream, total_sent_packets);
00125 ros::serialization::serialize(stream, interval_sent_packets);
00126 ros::serialization::serialize(stream, total_dropped_packets);
00127 ros::serialization::serialize(stream, interval_dropped_packets);
00128 ros::serialization::serialize(stream, total_late_packets);
00129 ros::serialization::serialize(stream, interval_late_packets);
00130 ros::serialization::serialize(stream, total_bandwidth_mbps);
00131 ros::serialization::serialize(stream, interval_bandwidth_mbps);
00132 return stream.getData();
00133 }
00134
00135 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00136 {
00137 ros::serialization::IStream stream(read_ptr, 1000000000);
00138 ros::serialization::deserialize(stream, has_link);
00139 ros::serialization::deserialize(stream, max_device_count);
00140 ros::serialization::deserialize(stream, interval_min_device_count);
00141 ros::serialization::deserialize(stream, total_sent_packets);
00142 ros::serialization::deserialize(stream, interval_sent_packets);
00143 ros::serialization::deserialize(stream, total_dropped_packets);
00144 ros::serialization::deserialize(stream, interval_dropped_packets);
00145 ros::serialization::deserialize(stream, total_late_packets);
00146 ros::serialization::deserialize(stream, interval_late_packets);
00147 ros::serialization::deserialize(stream, total_bandwidth_mbps);
00148 ros::serialization::deserialize(stream, interval_bandwidth_mbps);
00149 return stream.getData();
00150 }
00151
00152 ROS_DEPRECATED virtual uint32_t serializationLength() const
00153 {
00154 uint32_t size = 0;
00155 size += ros::serialization::serializationLength(has_link);
00156 size += ros::serialization::serializationLength(max_device_count);
00157 size += ros::serialization::serializationLength(interval_min_device_count);
00158 size += ros::serialization::serializationLength(total_sent_packets);
00159 size += ros::serialization::serializationLength(interval_sent_packets);
00160 size += ros::serialization::serializationLength(total_dropped_packets);
00161 size += ros::serialization::serializationLength(interval_dropped_packets);
00162 size += ros::serialization::serializationLength(total_late_packets);
00163 size += ros::serialization::serializationLength(interval_late_packets);
00164 size += ros::serialization::serializationLength(total_bandwidth_mbps);
00165 size += ros::serialization::serializationLength(interval_bandwidth_mbps);
00166 return size;
00167 }
00168
00169 typedef boost::shared_ptr< ::ectools::ecstats_<ContainerAllocator> > Ptr;
00170 typedef boost::shared_ptr< ::ectools::ecstats_<ContainerAllocator> const> ConstPtr;
00171 };
00172 typedef ::ectools::ecstats_<std::allocator<void> > ecstats;
00173
00174 typedef boost::shared_ptr< ::ectools::ecstats> ecstatsPtr;
00175 typedef boost::shared_ptr< ::ectools::ecstats const> ecstatsConstPtr;
00176
00177
00178 template<typename ContainerAllocator>
00179 std::ostream& operator<<(std::ostream& s, const ::ectools::ecstats_<ContainerAllocator> & v)
00180 {
00181 ros::message_operations::Printer< ::ectools::ecstats_<ContainerAllocator> >::stream(s, "", v);
00182 return s;}
00183
00184 }
00185
00186 namespace ros
00187 {
00188 namespace message_traits
00189 {
00190 template<class ContainerAllocator>
00191 struct MD5Sum< ::ectools::ecstats_<ContainerAllocator> > {
00192 static const char* value()
00193 {
00194 return "115cb9793e197c78f9d3809b3132b379";
00195 }
00196
00197 static const char* value(const ::ectools::ecstats_<ContainerAllocator> &) { return value(); }
00198 static const uint64_t static_value1 = 0x115cb9793e197c78ULL;
00199 static const uint64_t static_value2 = 0xf9d3809b3132b379ULL;
00200 };
00201
00202 template<class ContainerAllocator>
00203 struct DataType< ::ectools::ecstats_<ContainerAllocator> > {
00204 static const char* value()
00205 {
00206 return "ectools/ecstats";
00207 }
00208
00209 static const char* value(const ::ectools::ecstats_<ContainerAllocator> &) { return value(); }
00210 };
00211
00212 template<class ContainerAllocator>
00213 struct Definition< ::ectools::ecstats_<ContainerAllocator> > {
00214 static const char* value()
00215 {
00216 return "bool has_link\n\
00217 int32 max_device_count\n\
00218 int32 interval_min_device_count\n\
00219 uint64 total_sent_packets\n\
00220 uint64 interval_sent_packets\n\
00221 uint64 total_dropped_packets\n\
00222 uint64 interval_dropped_packets\n\
00223 uint64 total_late_packets\n\
00224 uint64 interval_late_packets\n\
00225 float64 total_bandwidth_mbps\n\
00226 float64 interval_bandwidth_mbps\n\
00227 \n\
00228 ";
00229 }
00230
00231 static const char* value(const ::ectools::ecstats_<ContainerAllocator> &) { return value(); }
00232 };
00233
00234 template<class ContainerAllocator> struct IsFixedSize< ::ectools::ecstats_<ContainerAllocator> > : public TrueType {};
00235 }
00236 }
00237
00238 namespace ros
00239 {
00240 namespace serialization
00241 {
00242
00243 template<class ContainerAllocator> struct Serializer< ::ectools::ecstats_<ContainerAllocator> >
00244 {
00245 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00246 {
00247 stream.next(m.has_link);
00248 stream.next(m.max_device_count);
00249 stream.next(m.interval_min_device_count);
00250 stream.next(m.total_sent_packets);
00251 stream.next(m.interval_sent_packets);
00252 stream.next(m.total_dropped_packets);
00253 stream.next(m.interval_dropped_packets);
00254 stream.next(m.total_late_packets);
00255 stream.next(m.interval_late_packets);
00256 stream.next(m.total_bandwidth_mbps);
00257 stream.next(m.interval_bandwidth_mbps);
00258 }
00259
00260 ROS_DECLARE_ALLINONE_SERIALIZER;
00261 };
00262 }
00263 }
00264
00265 namespace ros
00266 {
00267 namespace message_operations
00268 {
00269
00270 template<class ContainerAllocator>
00271 struct Printer< ::ectools::ecstats_<ContainerAllocator> >
00272 {
00273 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ectools::ecstats_<ContainerAllocator> & v)
00274 {
00275 s << indent << "has_link: ";
00276 Printer<uint8_t>::stream(s, indent + " ", v.has_link);
00277 s << indent << "max_device_count: ";
00278 Printer<int32_t>::stream(s, indent + " ", v.max_device_count);
00279 s << indent << "interval_min_device_count: ";
00280 Printer<int32_t>::stream(s, indent + " ", v.interval_min_device_count);
00281 s << indent << "total_sent_packets: ";
00282 Printer<uint64_t>::stream(s, indent + " ", v.total_sent_packets);
00283 s << indent << "interval_sent_packets: ";
00284 Printer<uint64_t>::stream(s, indent + " ", v.interval_sent_packets);
00285 s << indent << "total_dropped_packets: ";
00286 Printer<uint64_t>::stream(s, indent + " ", v.total_dropped_packets);
00287 s << indent << "interval_dropped_packets: ";
00288 Printer<uint64_t>::stream(s, indent + " ", v.interval_dropped_packets);
00289 s << indent << "total_late_packets: ";
00290 Printer<uint64_t>::stream(s, indent + " ", v.total_late_packets);
00291 s << indent << "interval_late_packets: ";
00292 Printer<uint64_t>::stream(s, indent + " ", v.interval_late_packets);
00293 s << indent << "total_bandwidth_mbps: ";
00294 Printer<double>::stream(s, indent + " ", v.total_bandwidth_mbps);
00295 s << indent << "interval_bandwidth_mbps: ";
00296 Printer<double>::stream(s, indent + " ", v.interval_bandwidth_mbps);
00297 }
00298 };
00299
00300
00301 }
00302 }
00303
00304 #endif // ECTOOLS_MESSAGE_ECSTATS_H
00305