DiagnosticStatus.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/DiagnosticStatus.msg
3 // DO NOT EDIT!
4 
5 
6 #ifndef DIAGNOSTIC_MSGS_MESSAGE_DIAGNOSTICSTATUS_H
7 #define DIAGNOSTIC_MSGS_MESSAGE_DIAGNOSTICSTATUS_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 
20 
21 namespace diagnostic_msgs
22 {
23  template <class ContainerAllocator>
25  {
27 
29  : level(0)
30  , name()
31  , message()
32  , hardware_id()
33  , values() {
34  }
35  DiagnosticStatus_(const ContainerAllocator& _alloc)
36  : level(0)
37  , name(_alloc)
38  , message(_alloc)
39  , hardware_id(_alloc)
40  , values(_alloc) {
41  (void)_alloc;
42  }
43 
44 
45 
46  typedef int8_t _level_type;
48 
49  typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _name_type;
51 
52  typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _message_type;
54 
55  typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _hardware_id_type;
57 
58  typedef std::vector< ::diagnostic_msgs::KeyValue_<ContainerAllocator>, typename ContainerAllocator::template rebind< ::diagnostic_msgs::KeyValue_<ContainerAllocator> >::other > _values_type;
60 #ifdef _MSC_VER
61  enum { OK = 0, WARN = 1, __ERROR = 2, STALE = 3 };
62 #else
63  enum { OK = 0 };
64  enum { WARN = 1 };
65  enum { ERROR = 2 }; // Achtung: Unter Windows bereits in wingdi.h vorbelegt.
66  enum { STALE = 3 };
67 #endif
68  typedef std::shared_ptr< ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator> > Ptr;
69  typedef std::shared_ptr< ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator> const> ConstPtr;
70 
71  }; // struct DiagnosticStatus_
72 
73  typedef ::diagnostic_msgs::DiagnosticStatus_<std::allocator<void> > DiagnosticStatus;
74 
75  typedef std::shared_ptr< ::diagnostic_msgs::DiagnosticStatus > DiagnosticStatusPtr;
76  typedef std::shared_ptr< ::diagnostic_msgs::DiagnosticStatus const> DiagnosticStatusConstPtr;
77 
78  // constants requiring out of line definition
79 
80 
81 
82 
83 
84 
85 
86 
87 
88 
89 
90  template<typename ContainerAllocator>
91  std::ostream& operator<<(std::ostream& s, const ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator> & v)
92  {
94  return s;
95  }
96 
97  } // namespace diagnostic_msgs
98 
99 namespace roswrap
100 {
101  namespace message_traits
102  {
103 
104 
105 
106  // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': False}
107  // {'std_msgs': ['/opt/ros/kinetic/share/std_msgs/cmake/../msg'], 'diagnostic_msgs': ['/tmp/binarydeb/ros-kinetic-diagnostic-msgs-1.12.5/msg']}
108 
109  // !!!!!!!!!!! ['__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']
110 
111 
112 
113 
114  template <class ContainerAllocator>
115  struct IsFixedSize< ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator> >
116  : FalseType
117  { };
118 
119  template <class ContainerAllocator>
120  struct IsFixedSize< ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator> const>
121  : FalseType
122  { };
123 
124  template <class ContainerAllocator>
125  struct IsMessage< ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator> >
126  : TrueType
127  { };
128 
129  template <class ContainerAllocator>
130  struct IsMessage< ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator> const>
131  : TrueType
132  { };
133 
134  template <class ContainerAllocator>
135  struct HasHeader< ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator> >
136  : FalseType
137  { };
138 
139  template <class ContainerAllocator>
140  struct HasHeader< ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator> const>
141  : FalseType
142  { };
143 
144 
145  template<class ContainerAllocator>
146  struct MD5Sum< ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator> >
147  {
148  static const char* value()
149  {
150  return "d0ce08bc6e5ba34c7754f563a9cabaf1";
151  }
152 
153  static const char* value(const ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator>&) { return value(); }
154  static const uint64_t static_value1 = 0xd0ce08bc6e5ba34cULL;
155  static const uint64_t static_value2 = 0x7754f563a9cabaf1ULL;
156  };
157 
158  template<class ContainerAllocator>
159  struct DataType< ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator> >
160  {
161  static const char* value()
162  {
163  return "diagnostic_msgs/DiagnosticStatus";
164  }
165 
166  static const char* value(const ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator>&) { return value(); }
167  };
168 
169  template<class ContainerAllocator>
170  struct Definition< ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator> >
171  {
172  static const char* value()
173  {
174  return "# This message holds the status of an individual component of the robot.\n\
175 # \n\
176 \n\
177 # Possible levels of operations\n\
178 byte OK=0\n\
179 byte WARN=1\n\
180 byte ERROR=2\n\
181 byte STALE=3\n\
182 \n\
183 byte level # level of operation enumerated above \n\
184 string name # a description of the test/component reporting\n\
185 string message # a description of the status\n\
186 string hardware_id # a hardware unique string\n\
187 KeyValue[] values # an array of values associated with the status\n\
188 \n\
189 \n\
190 ================================================================================\n\
191 MSG: diagnostic_msgs/KeyValue\n\
192 string key # what to label this value when viewing\n\
193 string value # a value to track over time\n\
194 ";
195  }
196 
197  static const char* value(const ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator>&) { return value(); }
198  };
199 
200  } // namespace message_traits
201 } // namespace roswrap
202 
203 namespace roswrap
204 {
205  namespace serialization
206  {
207 
208  template<class ContainerAllocator> struct Serializer< ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator> >
209  {
210  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
211  {
212  stream.next(m.level);
213  stream.next(m.name);
214  stream.next(m.message);
215  stream.next(m.hardware_id);
216  stream.next(m.values);
217  }
218 
220  }; // struct DiagnosticStatus_
221 
222  } // namespace serialization
223 } // namespace roswrap
224 
225 namespace roswrap
226 {
227  namespace message_operations
228  {
229 
230  template<class ContainerAllocator>
231  struct Printer< ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator> >
232  {
233  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator>& v)
234  {
235  s << indent << "level: ";
236  Printer<int8_t>::stream(s, indent + " ", v.level);
237  s << indent << "name: ";
238  Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name);
239  s << indent << "message: ";
240  Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.message);
241  s << indent << "hardware_id: ";
242  Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.hardware_id);
243  s << indent << "values[]" << std::endl;
244  for (size_t i = 0; i < v.values.size(); ++i)
245  {
246  s << indent << " values[" << i << "]: ";
247  s << std::endl;
248  s << indent;
250  }
251  }
252  };
253 
254  } // namespace message_operations
255 } // namespace roswrap
256 
257 #endif // DIAGNOSTIC_MSGS_MESSAGE_DIAGNOSTICSTATUS_H
roswrap::message_traits::MD5Sum< ::diagnostic_msgs::DiagnosticStatus_< ContainerAllocator > >::value
static const char * value()
Definition: DiagnosticStatus.h:148
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::DiagnosticStatus_::OK
@ OK
Definition: DiagnosticStatus.h:63
diagnostic_msgs::DiagnosticStatus_::values
_values_type values
Definition: DiagnosticStatus.h:59
multiscan_pcap_player.indent
indent
Definition: multiscan_pcap_player.py:252
KeyValue.h
roswrap::serialization::Serializer
Templated serialization class. Default implementation provides backwards compatibility with old messa...
Definition: serialization.h:120
diagnostic_msgs::DiagnosticStatus_::_level_type
int8_t _level_type
Definition: DiagnosticStatus.h:46
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::Definition< ::diagnostic_msgs::DiagnosticStatus_< ContainerAllocator > >::value
static const char * value()
Definition: DiagnosticStatus.h:172
roswrap::message_traits::MD5Sum< ::diagnostic_msgs::DiagnosticStatus_< ContainerAllocator > >::value
static const char * value(const ::diagnostic_msgs::DiagnosticStatus_< ContainerAllocator > &)
Definition: DiagnosticStatus.h:153
const
#define const
Definition: getopt.c:38
diagnostic_msgs::DiagnosticStatus_::Ptr
std::shared_ptr< ::diagnostic_msgs::DiagnosticStatus_< ContainerAllocator > > Ptr
Definition: DiagnosticStatus.h:68
diagnostic_msgs::DiagnosticStatus_::Type
DiagnosticStatus_< ContainerAllocator > Type
Definition: DiagnosticStatus.h:26
diagnostic_msgs::DiagnosticStatus_::level
_level_type level
Definition: DiagnosticStatus.h:47
s
XmlRpcServer s
roswrap::message_operations::Printer::stream
static void stream(Stream &s, const std::string &indent, const M &value)
Definition: message_operations.h:43
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
diagnostic_msgs::DiagnosticStatus
::diagnostic_msgs::DiagnosticStatus_< std::allocator< void > > DiagnosticStatus
Definition: DiagnosticStatus.h:73
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::serialization::Serializer< ::diagnostic_msgs::DiagnosticStatus_< ContainerAllocator > >::allInOne
static void allInOne(Stream &stream, T m)
Definition: DiagnosticStatus.h:210
roswrap::message_traits::DataType< ::diagnostic_msgs::DiagnosticStatus_< ContainerAllocator > >::value
static const char * value(const ::diagnostic_msgs::DiagnosticStatus_< ContainerAllocator > &)
Definition: DiagnosticStatus.h:166
roswrap::message_traits::DataType
Specialize to provide the datatype for a message.
Definition: message_traits.h:135
diagnostic_msgs::DiagnosticStatus_::message
_message_type message
Definition: DiagnosticStatus.h:53
roswrap::message_traits::Definition
Specialize to provide the definition for a message.
Definition: message_traits.h:152
diagnostic_msgs::DiagnosticStatus_::_values_type
std::vector< ::diagnostic_msgs::KeyValue_< ContainerAllocator >, typename ContainerAllocator::template rebind< ::diagnostic_msgs::KeyValue_< ContainerAllocator > >::other > _values_type
Definition: DiagnosticStatus.h:58
diagnostic_msgs::DiagnosticStatusConstPtr
std::shared_ptr< ::diagnostic_msgs::DiagnosticStatus const > DiagnosticStatusConstPtr
Definition: DiagnosticStatus.h:76
roswrap::message_traits::Definition< ::diagnostic_msgs::DiagnosticStatus_< ContainerAllocator > >::value
static const char * value(const ::diagnostic_msgs::DiagnosticStatus_< ContainerAllocator > &)
Definition: DiagnosticStatus.h:197
diagnostic_msgs::operator<<
std::ostream & operator<<(std::ostream &s, const ::diagnostic_msgs::AddDiagnosticsRequest_< ContainerAllocator > &v)
Definition: AddDiagnosticsRequest.h:58
diagnostic_msgs::DiagnosticStatus_::_name_type
std::basic_string< char, std::char_traits< char >, typename ContainerAllocator::template rebind< char >::other > _name_type
Definition: DiagnosticStatus.h:49
roswrap::message_operations::Printer< ::diagnostic_msgs::DiagnosticStatus_< ContainerAllocator > >::stream
static void stream(Stream &s, const std::string &indent, const ::diagnostic_msgs::DiagnosticStatus_< ContainerAllocator > &v)
Definition: DiagnosticStatus.h:233
diagnostic_msgs::DiagnosticStatus_::WARN
@ WARN
Definition: DiagnosticStatus.h:64
diagnostic_msgs::DiagnosticStatus_::ConstPtr
std::shared_ptr< ::diagnostic_msgs::DiagnosticStatus_< ContainerAllocator > const > ConstPtr
Definition: DiagnosticStatus.h:69
roswrap
Definition: param_modi.cpp:41
diagnostic_msgs::DiagnosticStatus_::_hardware_id_type
std::basic_string< char, std::char_traits< char >, typename ContainerAllocator::template rebind< char >::other > _hardware_id_type
Definition: DiagnosticStatus.h:55
roswrap::message_operations::Printer
Definition: message_operations.h:40
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
diagnostic_msgs::DiagnosticStatus_::hardware_id
_hardware_id_type hardware_id
Definition: DiagnosticStatus.h:56
diagnostic_msgs::DiagnosticStatusPtr
std::shared_ptr< ::diagnostic_msgs::DiagnosticStatus > DiagnosticStatusPtr
Definition: DiagnosticStatus.h:75
diagnostic_msgs::DiagnosticStatus_::_message_type
std::basic_string< char, std::char_traits< char >, typename ContainerAllocator::template rebind< char >::other > _message_type
Definition: DiagnosticStatus.h:52
roswrap::message_traits::IsMessage
Am I message or not.
Definition: message_traits.h:112
diagnostic_msgs
Definition: AddDiagnostics.h:16
diagnostic_msgs::DiagnosticStatus_::DiagnosticStatus_
DiagnosticStatus_()
Definition: DiagnosticStatus.h:28
sick_scan_base.h
roswrap::serialization::Stream
Stream base-class, provides common functionality for IStream and OStream.
Definition: serialization.h:705
roswrap::message_traits::DataType< ::diagnostic_msgs::DiagnosticStatus_< ContainerAllocator > >::value
static const char * value()
Definition: DiagnosticStatus.h:161
diagnostic_msgs::DiagnosticStatus_::name
_name_type name
Definition: DiagnosticStatus.h:50
diagnostic_msgs::DiagnosticStatus_::STALE
@ STALE
Definition: DiagnosticStatus.h:66
diagnostic_msgs::DiagnosticStatus_
Definition: DiagnosticStatus.h:24
diagnostic_msgs::DiagnosticStatus_::DiagnosticStatus_
DiagnosticStatus_(const ContainerAllocator &_alloc)
Definition: DiagnosticStatus.h:35
diagnostic_msgs::DiagnosticStatus_::ERROR
@ ERROR
Definition: DiagnosticStatus.h:65


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