DiagnosticArray.h
Go to the documentation of this file.
1 #include "sick_scan/sick_scan_base.h" /* Base definitions included in all header files, added by add_sick_scan_base_header.py. Do not edit this line. */
2 // Generated by gencpp from file diagnostic_msgs/DiagnosticArray.msg
3 // DO NOT EDIT!
4 
5 
6 #ifndef DIAGNOSTIC_MSGS_MESSAGE_DIAGNOSTICARRAY_H
7 #define DIAGNOSTIC_MSGS_MESSAGE_DIAGNOSTICARRAY_H
8 
9 
10 #include <string>
11 #include <vector>
12 #include <map>
13 
14 #include <ros/types.h>
15 #include <ros/serialization.h>
16 #include <ros/builtin_message_traits.h>
17 #include <ros/message_operations.h>
18 
19 #include <std_msgs/Header.h>
21 
22 namespace diagnostic_msgs
23 {
24 template <class ContainerAllocator>
26 {
28 
30  : header()
31  , status() {
32  }
33  DiagnosticArray_(const ContainerAllocator& _alloc)
34  : header(_alloc)
35  , status(_alloc) {
36  (void)_alloc;
37  }
38 
39 
40 
41  typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
43 
44  typedef std::vector< ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator> >::other > _status_type;
46 
47 
48 
49 
50  typedef std::shared_ptr< ::diagnostic_msgs::DiagnosticArray_<ContainerAllocator> > Ptr;
51  typedef std::shared_ptr< ::diagnostic_msgs::DiagnosticArray_<ContainerAllocator> const> ConstPtr;
52 
53 }; // struct DiagnosticArray_
54 
55 typedef ::diagnostic_msgs::DiagnosticArray_<std::allocator<void> > DiagnosticArray;
56 
57 typedef std::shared_ptr< ::diagnostic_msgs::DiagnosticArray > DiagnosticArrayPtr;
58 typedef std::shared_ptr< ::diagnostic_msgs::DiagnosticArray const> DiagnosticArrayConstPtr;
59 
60 // constants requiring out of line definition
61 
62 
63 
64 template<typename ContainerAllocator>
65 std::ostream& operator<<(std::ostream& s, const ::diagnostic_msgs::DiagnosticArray_<ContainerAllocator> & v)
66 {
68 return s;
69 }
70 
71 } // namespace diagnostic_msgs
72 
73 namespace roswrap
74 {
75 namespace message_traits
76 {
77 
78 
79 
80 // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': True}
81 // {'std_msgs': ['/opt/ros/kinetic/share/std_msgs/cmake/../msg'], 'diagnostic_msgs': ['/tmp/binarydeb/ros-kinetic-diagnostic-msgs-1.12.5/msg']}
82 
83 // !!!!!!!!!!! ['__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']
84 
85 
86 
87 
88 template <class ContainerAllocator>
89 struct IsFixedSize< ::diagnostic_msgs::DiagnosticArray_<ContainerAllocator> >
90  : FalseType
91  { };
92 
93 template <class ContainerAllocator>
94 struct IsFixedSize< ::diagnostic_msgs::DiagnosticArray_<ContainerAllocator> const>
95  : FalseType
96  { };
97 
98 template <class ContainerAllocator>
99 struct IsMessage< ::diagnostic_msgs::DiagnosticArray_<ContainerAllocator> >
100  : TrueType
101  { };
102 
103 template <class ContainerAllocator>
104 struct IsMessage< ::diagnostic_msgs::DiagnosticArray_<ContainerAllocator> const>
105  : TrueType
106  { };
107 
108 template <class ContainerAllocator>
109 struct HasHeader< ::diagnostic_msgs::DiagnosticArray_<ContainerAllocator> >
110  : TrueType
111  { };
112 
113 template <class ContainerAllocator>
114 struct HasHeader< ::diagnostic_msgs::DiagnosticArray_<ContainerAllocator> const>
115  : TrueType
116  { };
117 
118 
119 template<class ContainerAllocator>
120 struct MD5Sum< ::diagnostic_msgs::DiagnosticArray_<ContainerAllocator> >
121 {
122  static const char* value()
123  {
124  return "60810da900de1dd6ddd437c3503511da";
125  }
126 
127  static const char* value(const ::diagnostic_msgs::DiagnosticArray_<ContainerAllocator>&) { return value(); }
128  static const uint64_t static_value1 = 0x60810da900de1dd6ULL;
129  static const uint64_t static_value2 = 0xddd437c3503511daULL;
130 };
131 
132 template<class ContainerAllocator>
133 struct DataType< ::diagnostic_msgs::DiagnosticArray_<ContainerAllocator> >
134 {
135  static const char* value()
136  {
137  return "diagnostic_msgs/DiagnosticArray";
138  }
139 
140  static const char* value(const ::diagnostic_msgs::DiagnosticArray_<ContainerAllocator>&) { return value(); }
141 };
142 
143 template<class ContainerAllocator>
144 struct Definition< ::diagnostic_msgs::DiagnosticArray_<ContainerAllocator> >
145 {
146  static const char* value()
147  {
148  return "# This message is used to send diagnostic information about the state of the robot\n\
149 Header header #for timestamp\n\
150 DiagnosticStatus[] status # an array of components being reported on\n\
151 ================================================================================\n\
152 MSG: std_msgs/Header\n\
153 # Standard metadata for higher-level stamped data types.\n\
154 # This is generally used to communicate timestamped data \n\
155 # in a particular coordinate frame.\n\
156 # \n\
157 # sequence ID: consecutively increasing ID \n\
158 uint32 seq\n\
159 #Two-integer timestamp that is expressed as:\n\
160 # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
161 # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
162 # time-handling sugar is provided by the client library\n\
163 time stamp\n\
164 #Frame this data is associated with\n\
165 # 0: no frame\n\
166 # 1: global frame\n\
167 string frame_id\n\
168 \n\
169 ================================================================================\n\
170 MSG: diagnostic_msgs/DiagnosticStatus\n\
171 # This message holds the status of an individual component of the robot.\n\
172 # \n\
173 \n\
174 # Possible levels of operations\n\
175 byte OK=0\n\
176 byte WARN=1\n\
177 byte ERROR=2\n\
178 byte STALE=3\n\
179 \n\
180 byte level # level of operation enumerated above \n\
181 string name # a description of the test/component reporting\n\
182 string message # a description of the status\n\
183 string hardware_id # a hardware unique string\n\
184 KeyValue[] values # an array of values associated with the status\n\
185 \n\
186 \n\
187 ================================================================================\n\
188 MSG: diagnostic_msgs/KeyValue\n\
189 string key # what to label this value when viewing\n\
190 string value # a value to track over time\n\
191 ";
192  }
193 
194  static const char* value(const ::diagnostic_msgs::DiagnosticArray_<ContainerAllocator>&) { return value(); }
195 };
196 
197 } // namespace message_traits
198 } // namespace roswrap
199 
200 namespace roswrap
201 {
202 namespace serialization
203 {
204 
205  template<class ContainerAllocator> struct Serializer< ::diagnostic_msgs::DiagnosticArray_<ContainerAllocator> >
206  {
207  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
208  {
209  stream.next(m.header);
210  stream.next(m.status);
211  }
212 
214  }; // struct DiagnosticArray_
215 
216 } // namespace serialization
217 } // namespace roswrap
218 
219 namespace roswrap
220 {
221 namespace message_operations
222 {
223 
224 template<class ContainerAllocator>
225 struct Printer< ::diagnostic_msgs::DiagnosticArray_<ContainerAllocator> >
226 {
227  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::diagnostic_msgs::DiagnosticArray_<ContainerAllocator>& v)
228  {
229  s << indent << "header: ";
230  s << std::endl;
232  s << indent << "status[]" << std::endl;
233  for (size_t i = 0; i < v.status.size(); ++i)
234  {
235  s << indent << " status[" << i << "]: ";
236  s << std::endl;
237  s << indent;
239  }
240  }
241 };
242 
243 } // namespace message_operations
244 } // namespace roswrap
245 
246 #endif // DIAGNOSTIC_MSGS_MESSAGE_DIAGNOSTICARRAY_H
roswrap::message_traits::FalseType
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
Definition: message_traits.h:89
diagnostic_msgs::DiagnosticArray_::_header_type
::std_msgs::Header_< ContainerAllocator > _header_type
Definition: DiagnosticArray.h:41
diagnostic_msgs::DiagnosticArray_
Definition: DiagnosticArray.h:25
roswrap::message_traits::MD5Sum< ::diagnostic_msgs::DiagnosticArray_< ContainerAllocator > >::value
static const char * value()
Definition: DiagnosticArray.h:122
multiscan_pcap_player.indent
indent
Definition: multiscan_pcap_player.py:252
roswrap::serialization::Serializer
Templated serialization class. Default implementation provides backwards compatibility with old messa...
Definition: serialization.h:120
roswrap::message_traits::Definition< ::diagnostic_msgs::DiagnosticArray_< ContainerAllocator > >::value
static const char * value(const ::diagnostic_msgs::DiagnosticArray_< ContainerAllocator > &)
Definition: DiagnosticArray.h:194
roswrap::message_traits::HasHeader
HasHeader informs whether or not there is a header that gets serialized as the first thing in the mes...
Definition: message_traits.h:107
roswrap::message_traits::DataType< ::diagnostic_msgs::DiagnosticArray_< ContainerAllocator > >::value
static const char * value(const ::diagnostic_msgs::DiagnosticArray_< ContainerAllocator > &)
Definition: DiagnosticArray.h:140
const
#define const
Definition: getopt.c:38
s
XmlRpcServer s
diagnostic_msgs::DiagnosticArray_::ConstPtr
std::shared_ptr< ::diagnostic_msgs::DiagnosticArray_< ContainerAllocator > const > ConstPtr
Definition: DiagnosticArray.h:51
roswrap::message_operations::Printer::stream
static void stream(Stream &s, const std::string &indent, const M &value)
Definition: message_operations.h:43
DiagnosticStatus.h
roswrap::message_traits::IsFixedSize
A fixed-size datatype is one whose size is constant, i.e. it has no variable-length arrays or strings...
Definition: message_traits.h:103
roswrap::message_operations::Printer< ::diagnostic_msgs::DiagnosticArray_< ContainerAllocator > >::stream
static void stream(Stream &s, const std::string &indent, const ::diagnostic_msgs::DiagnosticArray_< ContainerAllocator > &v)
Definition: DiagnosticArray.h:227
ros::message_operations::Printer
ROS_DECLARE_ALLINONE_SERIALIZER
#define ROS_DECLARE_ALLINONE_SERIALIZER
Declare your serializer to use an allInOne member instead of requiring 3 different serialization func...
Definition: serialization.h:74
roswrap::message_traits::DataType
Specialize to provide the datatype for a message.
Definition: message_traits.h:135
roswrap::message_traits::Definition
Specialize to provide the definition for a message.
Definition: message_traits.h:152
diagnostic_msgs::DiagnosticArray_::status
_status_type status
Definition: DiagnosticArray.h:45
diagnostic_msgs::DiagnosticArrayConstPtr
std::shared_ptr< ::diagnostic_msgs::DiagnosticArray const > DiagnosticArrayConstPtr
Definition: DiagnosticArray.h:58
diagnostic_msgs::operator<<
std::ostream & operator<<(std::ostream &s, const ::diagnostic_msgs::AddDiagnosticsRequest_< ContainerAllocator > &v)
Definition: AddDiagnosticsRequest.h:58
diagnostic_msgs::DiagnosticArray_::DiagnosticArray_
DiagnosticArray_(const ContainerAllocator &_alloc)
Definition: DiagnosticArray.h:33
diagnostic_msgs::DiagnosticArrayPtr
std::shared_ptr< ::diagnostic_msgs::DiagnosticArray > DiagnosticArrayPtr
Definition: DiagnosticArray.h:57
diagnostic_msgs::DiagnosticArray_::header
_header_type header
Definition: DiagnosticArray.h:42
diagnostic_msgs::DiagnosticArray_::_status_type
std::vector< ::diagnostic_msgs::DiagnosticStatus_< ContainerAllocator >, typename ContainerAllocator::template rebind< ::diagnostic_msgs::DiagnosticStatus_< ContainerAllocator > >::other > _status_type
Definition: DiagnosticArray.h:44
roswrap::serialization::Serializer< ::diagnostic_msgs::DiagnosticArray_< ContainerAllocator > >::allInOne
static void allInOne(Stream &stream, T m)
Definition: DiagnosticArray.h:207
roswrap
Definition: param_modi.cpp:41
roswrap::message_operations::Printer
Definition: message_operations.h:40
std_msgs::Header_
Definition: Header.h:23
roswrap::message_traits::Definition< ::diagnostic_msgs::DiagnosticArray_< ContainerAllocator > >::value
static const char * value()
Definition: DiagnosticArray.h:146
diagnostic_msgs::DiagnosticArray_::DiagnosticArray_
DiagnosticArray_()
Definition: DiagnosticArray.h:29
roswrap::message_traits::TrueType
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
Definition: message_traits.h:79
roswrap::message_traits::MD5Sum
Specialize to provide the md5sum for a message.
Definition: message_traits.h:118
roswrap::message_traits::IsMessage
Am I message or not.
Definition: message_traits.h:112
roswrap::message_traits::MD5Sum< ::diagnostic_msgs::DiagnosticArray_< ContainerAllocator > >::value
static const char * value(const ::diagnostic_msgs::DiagnosticArray_< ContainerAllocator > &)
Definition: DiagnosticArray.h:127
diagnostic_msgs::DiagnosticArray_::Type
DiagnosticArray_< ContainerAllocator > Type
Definition: DiagnosticArray.h:27
diagnostic_msgs
Definition: AddDiagnostics.h:16
sick_scan_base.h
roswrap::message_traits::DataType< ::diagnostic_msgs::DiagnosticArray_< ContainerAllocator > >::value
static const char * value()
Definition: DiagnosticArray.h:135
roswrap::serialization::Stream
Stream base-class, provides common functionality for IStream and OStream.
Definition: serialization.h:705
Header.h
diagnostic_msgs::DiagnosticArray
::diagnostic_msgs::DiagnosticArray_< std::allocator< void > > DiagnosticArray
Definition: DiagnosticArray.h:55
diagnostic_msgs::DiagnosticArray_::Ptr
std::shared_ptr< ::diagnostic_msgs::DiagnosticArray_< ContainerAllocator > > Ptr
Definition: DiagnosticArray.h:50


sick_scan_xd
Author(s): Michael Lehning , Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:08