00001
00002 #ifndef ECTOOLS_MESSAGE_ECSTATS_H
00003 #define ECTOOLS_MESSAGE_ECSTATS_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
00018 namespace ectools
00019 {
00020 template <class ContainerAllocator>
00021 struct ecstats_ {
00022 typedef ecstats_<ContainerAllocator> Type;
00023
00024 ecstats_()
00025 : has_link(false)
00026 , max_device_count(0)
00027 , interval_min_device_count(0)
00028 , total_sent_packets(0)
00029 , interval_sent_packets(0)
00030 , total_dropped_packets(0)
00031 , interval_dropped_packets(0)
00032 , total_late_packets(0)
00033 , interval_late_packets(0)
00034 , total_bandwidth_mbps(0.0)
00035 , interval_bandwidth_mbps(0.0)
00036 {
00037 }
00038
00039 ecstats_(const ContainerAllocator& _alloc)
00040 : has_link(false)
00041 , max_device_count(0)
00042 , interval_min_device_count(0)
00043 , total_sent_packets(0)
00044 , interval_sent_packets(0)
00045 , total_dropped_packets(0)
00046 , interval_dropped_packets(0)
00047 , total_late_packets(0)
00048 , interval_late_packets(0)
00049 , total_bandwidth_mbps(0.0)
00050 , interval_bandwidth_mbps(0.0)
00051 {
00052 }
00053
00054 typedef uint8_t _has_link_type;
00055 uint8_t has_link;
00056
00057 typedef int32_t _max_device_count_type;
00058 int32_t max_device_count;
00059
00060 typedef int32_t _interval_min_device_count_type;
00061 int32_t interval_min_device_count;
00062
00063 typedef uint64_t _total_sent_packets_type;
00064 uint64_t total_sent_packets;
00065
00066 typedef uint64_t _interval_sent_packets_type;
00067 uint64_t interval_sent_packets;
00068
00069 typedef uint64_t _total_dropped_packets_type;
00070 uint64_t total_dropped_packets;
00071
00072 typedef uint64_t _interval_dropped_packets_type;
00073 uint64_t interval_dropped_packets;
00074
00075 typedef uint64_t _total_late_packets_type;
00076 uint64_t total_late_packets;
00077
00078 typedef uint64_t _interval_late_packets_type;
00079 uint64_t interval_late_packets;
00080
00081 typedef double _total_bandwidth_mbps_type;
00082 double total_bandwidth_mbps;
00083
00084 typedef double _interval_bandwidth_mbps_type;
00085 double interval_bandwidth_mbps;
00086
00087
00088 typedef boost::shared_ptr< ::ectools::ecstats_<ContainerAllocator> > Ptr;
00089 typedef boost::shared_ptr< ::ectools::ecstats_<ContainerAllocator> const> ConstPtr;
00090 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00091 };
00092 typedef ::ectools::ecstats_<std::allocator<void> > ecstats;
00093
00094 typedef boost::shared_ptr< ::ectools::ecstats> ecstatsPtr;
00095 typedef boost::shared_ptr< ::ectools::ecstats const> ecstatsConstPtr;
00096
00097
00098 template<typename ContainerAllocator>
00099 std::ostream& operator<<(std::ostream& s, const ::ectools::ecstats_<ContainerAllocator> & v)
00100 {
00101 ros::message_operations::Printer< ::ectools::ecstats_<ContainerAllocator> >::stream(s, "", v);
00102 return s;}
00103
00104 }
00105
00106 namespace ros
00107 {
00108 namespace message_traits
00109 {
00110 template<class ContainerAllocator> struct IsMessage< ::ectools::ecstats_<ContainerAllocator> > : public TrueType {};
00111 template<class ContainerAllocator> struct IsMessage< ::ectools::ecstats_<ContainerAllocator> const> : public TrueType {};
00112 template<class ContainerAllocator>
00113 struct MD5Sum< ::ectools::ecstats_<ContainerAllocator> > {
00114 static const char* value()
00115 {
00116 return "115cb9793e197c78f9d3809b3132b379";
00117 }
00118
00119 static const char* value(const ::ectools::ecstats_<ContainerAllocator> &) { return value(); }
00120 static const uint64_t static_value1 = 0x115cb9793e197c78ULL;
00121 static const uint64_t static_value2 = 0xf9d3809b3132b379ULL;
00122 };
00123
00124 template<class ContainerAllocator>
00125 struct DataType< ::ectools::ecstats_<ContainerAllocator> > {
00126 static const char* value()
00127 {
00128 return "ectools/ecstats";
00129 }
00130
00131 static const char* value(const ::ectools::ecstats_<ContainerAllocator> &) { return value(); }
00132 };
00133
00134 template<class ContainerAllocator>
00135 struct Definition< ::ectools::ecstats_<ContainerAllocator> > {
00136 static const char* value()
00137 {
00138 return "bool has_link\n\
00139 int32 max_device_count\n\
00140 int32 interval_min_device_count\n\
00141 uint64 total_sent_packets\n\
00142 uint64 interval_sent_packets\n\
00143 uint64 total_dropped_packets\n\
00144 uint64 interval_dropped_packets\n\
00145 uint64 total_late_packets\n\
00146 uint64 interval_late_packets\n\
00147 float64 total_bandwidth_mbps\n\
00148 float64 interval_bandwidth_mbps\n\
00149 \n\
00150 ";
00151 }
00152
00153 static const char* value(const ::ectools::ecstats_<ContainerAllocator> &) { return value(); }
00154 };
00155
00156 template<class ContainerAllocator> struct IsFixedSize< ::ectools::ecstats_<ContainerAllocator> > : public TrueType {};
00157 }
00158 }
00159
00160 namespace ros
00161 {
00162 namespace serialization
00163 {
00164
00165 template<class ContainerAllocator> struct Serializer< ::ectools::ecstats_<ContainerAllocator> >
00166 {
00167 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00168 {
00169 stream.next(m.has_link);
00170 stream.next(m.max_device_count);
00171 stream.next(m.interval_min_device_count);
00172 stream.next(m.total_sent_packets);
00173 stream.next(m.interval_sent_packets);
00174 stream.next(m.total_dropped_packets);
00175 stream.next(m.interval_dropped_packets);
00176 stream.next(m.total_late_packets);
00177 stream.next(m.interval_late_packets);
00178 stream.next(m.total_bandwidth_mbps);
00179 stream.next(m.interval_bandwidth_mbps);
00180 }
00181
00182 ROS_DECLARE_ALLINONE_SERIALIZER;
00183 };
00184 }
00185 }
00186
00187 namespace ros
00188 {
00189 namespace message_operations
00190 {
00191
00192 template<class ContainerAllocator>
00193 struct Printer< ::ectools::ecstats_<ContainerAllocator> >
00194 {
00195 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ectools::ecstats_<ContainerAllocator> & v)
00196 {
00197 s << indent << "has_link: ";
00198 Printer<uint8_t>::stream(s, indent + " ", v.has_link);
00199 s << indent << "max_device_count: ";
00200 Printer<int32_t>::stream(s, indent + " ", v.max_device_count);
00201 s << indent << "interval_min_device_count: ";
00202 Printer<int32_t>::stream(s, indent + " ", v.interval_min_device_count);
00203 s << indent << "total_sent_packets: ";
00204 Printer<uint64_t>::stream(s, indent + " ", v.total_sent_packets);
00205 s << indent << "interval_sent_packets: ";
00206 Printer<uint64_t>::stream(s, indent + " ", v.interval_sent_packets);
00207 s << indent << "total_dropped_packets: ";
00208 Printer<uint64_t>::stream(s, indent + " ", v.total_dropped_packets);
00209 s << indent << "interval_dropped_packets: ";
00210 Printer<uint64_t>::stream(s, indent + " ", v.interval_dropped_packets);
00211 s << indent << "total_late_packets: ";
00212 Printer<uint64_t>::stream(s, indent + " ", v.total_late_packets);
00213 s << indent << "interval_late_packets: ";
00214 Printer<uint64_t>::stream(s, indent + " ", v.interval_late_packets);
00215 s << indent << "total_bandwidth_mbps: ";
00216 Printer<double>::stream(s, indent + " ", v.total_bandwidth_mbps);
00217 s << indent << "interval_bandwidth_mbps: ";
00218 Printer<double>::stream(s, indent + " ", v.interval_bandwidth_mbps);
00219 }
00220 };
00221
00222
00223 }
00224 }
00225
00226 #endif // ECTOOLS_MESSAGE_ECSTATS_H
00227