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


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