TopicStatistics.h
Go to the documentation of this file.
1 // Generated by gencpp from file rosgraph_msgs/TopicStatistics.msg
2 // DO NOT EDIT!
3 
4 
5 #ifndef ROSGRAPH_MSGS_MESSAGE_TOPICSTATISTICS_H
6 #define ROSGRAPH_MSGS_MESSAGE_TOPICSTATISTICS_H
7 
8 
9 #include <string>
10 #include <vector>
11 #include <map>
12 
13 #include <ros/types.h>
14 #include <ros/serialization.h>
16 #include <ros/message_operations.h>
17 
18 
19 namespace rosgraph_msgs
20 {
21 template <class ContainerAllocator>
23 {
25 
27  : topic()
28  , node_pub()
29  , node_sub()
30  , window_start()
31  , window_stop()
32  , delivered_msgs(0)
33  , dropped_msgs(0)
34  , traffic(0)
35  , period_mean()
36  , period_stddev()
37  , period_max()
38  , stamp_age_mean()
40  , stamp_age_max() {
41  }
42  TopicStatistics_(const ContainerAllocator& _alloc)
43  : topic(_alloc)
44  , node_pub(_alloc)
45  , node_sub(_alloc)
46  , window_start()
47  , window_stop()
48  , delivered_msgs(0)
49  , dropped_msgs(0)
50  , traffic(0)
51  , period_mean()
52  , period_stddev()
53  , period_max()
54  , stamp_age_mean()
56  , stamp_age_max() {
57  (void)_alloc;
58  }
59 
60 
61 
62  typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _topic_type;
63  _topic_type topic;
64 
65  typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _node_pub_type;
66  _node_pub_type node_pub;
67 
68  typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _node_sub_type;
69  _node_sub_type node_sub;
70 
72  _window_start_type window_start;
73 
75  _window_stop_type window_stop;
76 
78  _delivered_msgs_type delivered_msgs;
79 
81  _dropped_msgs_type dropped_msgs;
82 
84  _traffic_type traffic;
85 
87  _period_mean_type period_mean;
88 
90  _period_stddev_type period_stddev;
91 
93  _period_max_type period_max;
94 
96  _stamp_age_mean_type stamp_age_mean;
97 
99  _stamp_age_stddev_type stamp_age_stddev;
100 
102  _stamp_age_max_type stamp_age_max;
103 
104 
105 
106 
109 
110 }; // struct TopicStatistics_
111 
112 typedef ::rosgraph_msgs::TopicStatistics_<std::allocator<void> > TopicStatistics;
113 
116 
117 // constants requiring out of line definition
118 
119 
120 
121 template<typename ContainerAllocator>
122 std::ostream& operator<<(std::ostream& s, const ::rosgraph_msgs::TopicStatistics_<ContainerAllocator> & v)
123 {
125 return s;
126 }
127 
128 } // namespace rosgraph_msgs
129 
130 namespace rs2rosinternal
131 {
132 namespace message_traits
133 {
134 
135 
136 
137 // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': False}
138 // {'rosgraph_msgs': ['/tmp/binarydeb/ros-kinetic-rosgraph-msgs-1.11.2/msg'], 'std_msgs': ['/opt/ros/kinetic/share/std_msgs/cmake/../msg']}
139 
140 // !!!!!!!!!!! ['__class__', '__delattr__', '__dict__', '__doc__', '__eq__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_parsed_fields', 'constants', 'fields', 'full_name', 'has_header', 'header_present', 'names', 'package', 'parsed_fields', 'short_name', 'text', 'types']
141 
142 
143 
144 
145 template <class ContainerAllocator>
146 struct IsFixedSize< ::rosgraph_msgs::TopicStatistics_<ContainerAllocator> >
147  : FalseType
148  { };
149 
150 template <class ContainerAllocator>
151 struct IsFixedSize< ::rosgraph_msgs::TopicStatistics_<ContainerAllocator> const>
152  : FalseType
153  { };
154 
155 template <class ContainerAllocator>
156 struct IsMessage< ::rosgraph_msgs::TopicStatistics_<ContainerAllocator> >
157  : TrueType
158  { };
159 
160 template <class ContainerAllocator>
161 struct IsMessage< ::rosgraph_msgs::TopicStatistics_<ContainerAllocator> const>
162  : TrueType
163  { };
164 
165 template <class ContainerAllocator>
166 struct HasHeader< ::rosgraph_msgs::TopicStatistics_<ContainerAllocator> >
167  : FalseType
168  { };
169 
170 template <class ContainerAllocator>
171 struct HasHeader< ::rosgraph_msgs::TopicStatistics_<ContainerAllocator> const>
172  : FalseType
173  { };
174 
175 
176 template<class ContainerAllocator>
177 struct MD5Sum< ::rosgraph_msgs::TopicStatistics_<ContainerAllocator> >
178 {
179  static const char* value()
180  {
181  return "10152ed868c5097a5e2e4a89d7daa710";
182  }
183 
184  static const char* value(const ::rosgraph_msgs::TopicStatistics_<ContainerAllocator>&) { return value(); }
185  static const uint64_t static_value1 = 0x10152ed868c5097aULL;
186  static const uint64_t static_value2 = 0x5e2e4a89d7daa710ULL;
187 };
188 
189 template<class ContainerAllocator>
190 struct DataType< ::rosgraph_msgs::TopicStatistics_<ContainerAllocator> >
191 {
192  static const char* value()
193  {
194  return "rosgraph_msgs/TopicStatistics";
195  }
196 
197  static const char* value(const ::rosgraph_msgs::TopicStatistics_<ContainerAllocator>&) { return value(); }
198 };
199 
200 template<class ContainerAllocator>
201 struct Definition< ::rosgraph_msgs::TopicStatistics_<ContainerAllocator> >
202 {
203  static const char* value()
204  {
205  return "# name of the topic\n\
206 string topic\n\
207 \n\
208 # node id of the publisher\n\
209 string node_pub\n\
210 \n\
211 # node id of the subscriber\n\
212 string node_sub\n\
213 \n\
214 # the statistics apply to this time window\n\
215 time window_start\n\
216 time window_stop\n\
217 \n\
218 # number of messages delivered during the window\n\
219 int32 delivered_msgs\n\
220 # numbers of messages dropped during the window\n\
221 int32 dropped_msgs\n\
222 \n\
223 # traffic during the window, in bytes\n\
224 int32 traffic\n\
225 \n\
226 # mean/stddev/max period between two messages\n\
227 duration period_mean\n\
228 duration period_stddev\n\
229 duration period_max\n\
230 \n\
231 # mean/stddev/max age of the message based on the\n\
232 # timestamp in the message header. In case the\n\
233 # message does not have a header, it will be 0.\n\
234 duration stamp_age_mean\n\
235 duration stamp_age_stddev\n\
236 duration stamp_age_max\n\
237 ";
238  }
239 
240  static const char* value(const ::rosgraph_msgs::TopicStatistics_<ContainerAllocator>&) { return value(); }
241 };
242 
243 } // namespace message_traits
244 } // namespace rs2rosinternal
245 
246 namespace rs2rosinternal
247 {
248 namespace serialization
249 {
250 
251  template<class ContainerAllocator> struct Serializer< ::rosgraph_msgs::TopicStatistics_<ContainerAllocator> >
252  {
253  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
254  {
255  stream.next(m.topic);
256  stream.next(m.node_pub);
257  stream.next(m.node_sub);
258  stream.next(m.window_start);
259  stream.next(m.window_stop);
260  stream.next(m.delivered_msgs);
261  stream.next(m.dropped_msgs);
262  stream.next(m.traffic);
263  stream.next(m.period_mean);
264  stream.next(m.period_stddev);
265  stream.next(m.period_max);
266  stream.next(m.stamp_age_mean);
267  stream.next(m.stamp_age_stddev);
268  stream.next(m.stamp_age_max);
269  }
270 
272  }; // struct TopicStatistics_
273 
274 } // namespace serialization
275 } // namespace rs2rosinternal
276 
277 namespace rs2rosinternal
278 {
279 namespace message_operations
280 {
281 
282 template<class ContainerAllocator>
283 struct Printer< ::rosgraph_msgs::TopicStatistics_<ContainerAllocator> >
284 {
285  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::rosgraph_msgs::TopicStatistics_<ContainerAllocator>& v)
286  {
287  s << indent << "topic: ";
288  Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.topic);
289  s << indent << "node_pub: ";
290  Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.node_pub);
291  s << indent << "node_sub: ";
292  Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.node_sub);
293  s << indent << "window_start: ";
294  Printer<rs2rosinternal::Time>::stream(s, indent + " ", v.window_start);
295  s << indent << "window_stop: ";
296  Printer<rs2rosinternal::Time>::stream(s, indent + " ", v.window_stop);
297  s << indent << "delivered_msgs: ";
298  Printer<int32_t>::stream(s, indent + " ", v.delivered_msgs);
299  s << indent << "dropped_msgs: ";
300  Printer<int32_t>::stream(s, indent + " ", v.dropped_msgs);
301  s << indent << "traffic: ";
302  Printer<int32_t>::stream(s, indent + " ", v.traffic);
303  s << indent << "period_mean: ";
304  Printer<rs2rosinternal::Duration>::stream(s, indent + " ", v.period_mean);
305  s << indent << "period_stddev: ";
306  Printer<rs2rosinternal::Duration>::stream(s, indent + " ", v.period_stddev);
307  s << indent << "period_max: ";
308  Printer<rs2rosinternal::Duration>::stream(s, indent + " ", v.period_max);
309  s << indent << "stamp_age_mean: ";
310  Printer<rs2rosinternal::Duration>::stream(s, indent + " ", v.stamp_age_mean);
311  s << indent << "stamp_age_stddev: ";
312  Printer<rs2rosinternal::Duration>::stream(s, indent + " ", v.stamp_age_stddev);
313  s << indent << "stamp_age_max: ";
314  Printer<rs2rosinternal::Duration>::stream(s, indent + " ", v.stamp_age_max);
315  }
316 };
317 
318 } // namespace message_operations
319 } // namespace rs2rosinternal
320 
321 #endif // ROSGRAPH_MSGS_MESSAGE_TOPICSTATISTICS_H
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
GLdouble s
rs2rosinternal::Duration _stamp_age_stddev_type
rs2rosinternal::Time _window_stop_type
const GLfloat * m
Definition: glext.h:6814
Specialize to provide the md5sum for a message.
::rosgraph_msgs::TopicStatistics_< std::allocator< void > > TopicStatistics
boost::shared_ptr< ::rosgraph_msgs::TopicStatistics_< ContainerAllocator > const > ConstPtr
boost::shared_ptr< ::rosgraph_msgs::TopicStatistics > TopicStatisticsPtr
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
GLsizei const GLchar *const * string
Specialize to provide the datatype for a message.
HasHeader informs whether or not there is a header that gets serialized as the first thing in the mes...
GLuint GLuint stream
Definition: glext.h:1790
TopicStatistics_(const ContainerAllocator &_alloc)
rs2rosinternal::Time _window_start_type
A fixed-size datatype is one whose size is constant, i.e. it has no variable-length arrays or strings...
boost::shared_ptr< ::rosgraph_msgs::TopicStatistics const > TopicStatisticsConstPtr
Duration representation for use with the Time class.
Definition: duration.h:108
Stream base-class, provides common functionality for IStream and OStream.
TopicStatistics_< ContainerAllocator > Type
_stamp_age_mean_type stamp_age_mean
rs2rosinternal::Duration _period_mean_type
rs2rosinternal::Duration _stamp_age_max_type
_stamp_age_max_type stamp_age_max
static void stream(Stream &s, const std::string &indent, const ::rosgraph_msgs::TopicStatistics_< ContainerAllocator > &v)
Time representation. May either represent wall clock time or ROS clock time.
Definition: time.h:177
#define ROS_DECLARE_ALLINONE_SERIALIZER
Declare your serializer to use an allInOne member instead of requiring 3 different serialization func...
unsigned __int64 uint64_t
Definition: stdint.h:90
Specialize to provide the definition for a message.
rs2rosinternal::Duration _stamp_age_mean_type
rs2rosinternal::Duration _period_stddev_type
std::basic_string< char, std::char_traits< char >, typename ContainerAllocator::template rebind< char >::other > _node_pub_type
_delivered_msgs_type delivered_msgs
_stamp_age_stddev_type stamp_age_stddev
static const char * value(const ::rosgraph_msgs::TopicStatistics_< ContainerAllocator > &)
static const char * value(const ::rosgraph_msgs::TopicStatistics_< ContainerAllocator > &)
static const char * value(const ::rosgraph_msgs::TopicStatistics_< ContainerAllocator > &)
boost::shared_ptr< ::rosgraph_msgs::TopicStatistics_< ContainerAllocator > > Ptr
rs2rosinternal::Duration _period_max_type
Templated serialization class. Default implementation provides backwards compatibility with old messa...
signed int int32_t
Definition: stdint.h:77
std::basic_string< char, std::char_traits< char >, typename ContainerAllocator::template rebind< char >::other > _node_sub_type
std::basic_string< char, std::char_traits< char >, typename ContainerAllocator::template rebind< char >::other > _topic_type
_period_stddev_type period_stddev
GLdouble v


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:12