LIDoutputstateMsg.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 sick_scan/LIDoutputstateMsg.msg
3 // DO NOT EDIT!
4 
5 
6 #ifndef SICK_SCAN_MESSAGE_LIDOUTPUTSTATEMSG_H
7 #define SICK_SCAN_MESSAGE_LIDOUTPUTSTATEMSG_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>
20 
21 namespace sick_scan_xd
22 {
23 template <class ContainerAllocator>
25 {
27 
29  : header()
30  , version_number(0)
31  , system_counter(0)
32  , output_state()
33  , output_count()
34  , time_state(0)
35  , year(0)
36  , month(0)
37  , day(0)
38  , hour(0)
39  , minute(0)
40  , second(0)
41  , microsecond(0) {
42  }
43  LIDoutputstateMsg_(const ContainerAllocator& _alloc)
44  : header(_alloc)
45  , version_number(0)
46  , system_counter(0)
47  , output_state(_alloc)
48  , output_count(_alloc)
49  , time_state(0)
50  , year(0)
51  , month(0)
52  , day(0)
53  , hour(0)
54  , minute(0)
55  , second(0)
56  , microsecond(0) {
57  (void)_alloc;
58  }
59 
60 
61 
62  typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
64 
65  typedef uint16_t _version_number_type;
67 
68  typedef uint32_t _system_counter_type;
70 
71  typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > _output_state_type;
73 
74  typedef std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > _output_count_type;
76 
77  typedef uint16_t _time_state_type;
79 
80  typedef uint16_t _year_type;
82 
83  typedef uint8_t _month_type;
85 
86  typedef uint8_t _day_type;
88 
89  typedef uint8_t _hour_type;
91 
92  typedef uint8_t _minute_type;
94 
95  typedef uint8_t _second_type;
97 
98  typedef uint32_t _microsecond_type;
100 
101 
102 
103 
104 
105  typedef std::shared_ptr< ::sick_scan_xd::LIDoutputstateMsg_<ContainerAllocator> > Ptr;
106  typedef std::shared_ptr< ::sick_scan_xd::LIDoutputstateMsg_<ContainerAllocator> const> ConstPtr;
107 
108 }; // struct LIDoutputstateMsg_
109 
110 typedef ::sick_scan_xd::LIDoutputstateMsg_<std::allocator<void> > LIDoutputstateMsg;
111 
112 typedef std::shared_ptr< ::sick_scan_xd::LIDoutputstateMsg > LIDoutputstateMsgPtr;
113 typedef std::shared_ptr< ::sick_scan_xd::LIDoutputstateMsg const> LIDoutputstateMsgConstPtr;
114 
115 // constants requiring out of line definition
116 
117 
118 
119 template<typename ContainerAllocator>
120 std::ostream& operator<<(std::ostream& s, const ::sick_scan_xd::LIDoutputstateMsg_<ContainerAllocator> & v)
121 {
123 return s;
124 }
125 
126 
127 template<typename ContainerAllocator1, typename ContainerAllocator2>
128 bool operator==(const ::sick_scan_xd::LIDoutputstateMsg_<ContainerAllocator1> & lhs, const ::sick_scan_xd::LIDoutputstateMsg_<ContainerAllocator2> & rhs)
129 {
130  return lhs.header == rhs.header &&
131  lhs.version_number == rhs.version_number &&
132  lhs.system_counter == rhs.system_counter &&
133  lhs.output_state == rhs.output_state &&
134  lhs.output_count == rhs.output_count &&
135  lhs.time_state == rhs.time_state &&
136  lhs.year == rhs.year &&
137  lhs.month == rhs.month &&
138  lhs.day == rhs.day &&
139  lhs.hour == rhs.hour &&
140  lhs.minute == rhs.minute &&
141  lhs.second == rhs.second &&
142  lhs.microsecond == rhs.microsecond;
143 }
144 
145 template<typename ContainerAllocator1, typename ContainerAllocator2>
146 bool operator!=(const ::sick_scan_xd::LIDoutputstateMsg_<ContainerAllocator1> & lhs, const ::sick_scan_xd::LIDoutputstateMsg_<ContainerAllocator2> & rhs)
147 {
148  return !(lhs == rhs);
149 }
150 
151 
152 } // namespace sick_scan_xd
153 
154 namespace roswrap
155 {
156 namespace message_traits
157 {
158 
159 
160 
161 
162 
163 template <class ContainerAllocator>
164 struct IsFixedSize< ::sick_scan_xd::LIDoutputstateMsg_<ContainerAllocator> >
165  : FalseType
166  { };
167 
168 template <class ContainerAllocator>
169 struct IsFixedSize< ::sick_scan_xd::LIDoutputstateMsg_<ContainerAllocator> const>
170  : FalseType
171  { };
172 
173 template <class ContainerAllocator>
174 struct IsMessage< ::sick_scan_xd::LIDoutputstateMsg_<ContainerAllocator> >
175  : TrueType
176  { };
177 
178 template <class ContainerAllocator>
179 struct IsMessage< ::sick_scan_xd::LIDoutputstateMsg_<ContainerAllocator> const>
180  : TrueType
181  { };
182 
183 template <class ContainerAllocator>
184 struct HasHeader< ::sick_scan_xd::LIDoutputstateMsg_<ContainerAllocator> >
185  : TrueType
186  { };
187 
188 template <class ContainerAllocator>
189 struct HasHeader< ::sick_scan_xd::LIDoutputstateMsg_<ContainerAllocator> const>
190  : TrueType
191  { };
192 
193 
194 template<class ContainerAllocator>
195 struct MD5Sum< ::sick_scan_xd::LIDoutputstateMsg_<ContainerAllocator> >
196 {
197  static const char* value()
198  {
199  return "e31d4eb61fa1d840e24cb97a0ef71ace";
200  }
201 
202  static const char* value(const ::sick_scan_xd::LIDoutputstateMsg_<ContainerAllocator>&) { return value(); }
203  static const uint64_t static_value1 = 0xe31d4eb61fa1d840ULL;
204  static const uint64_t static_value2 = 0xe24cb97a0ef71aceULL;
205 };
206 
207 template<class ContainerAllocator>
208 struct DataType< ::sick_scan_xd::LIDoutputstateMsg_<ContainerAllocator> >
209 {
210  static const char* value()
211  {
212  return "sick_scan/LIDoutputstateMsg";
213  }
214 
215  static const char* value(const ::sick_scan_xd::LIDoutputstateMsg_<ContainerAllocator>&) { return value(); }
216 };
217 
218 template<class ContainerAllocator>
219 struct Definition< ::sick_scan_xd::LIDoutputstateMsg_<ContainerAllocator> >
220 {
221  static const char* value()
222  {
223  return "# This message contains the \"sSN LIDoutputstate\" message of a Sick laser scanner as an ros message.\n"
224 "#\n"
225 "\n"
226 "Header header\n"
227 "\n"
228 "# Status code\n"
229 "uint16 version_number # Status code version number\n"
230 "uint32 system_counter # Status code system counter (time in microsec since power up, max. 71 min then starting from 0 again)\n"
231 "\n"
232 "# Array of output states (state and count)\n"
233 "uint8[] output_state # output states, each state with value 0 (not active), 1 (active) or 2 (not used)\n"
234 "uint32[] output_count # output counter\n"
235 "\n"
236 "# Time block (sensortime from the last change of min. one of the outputs)\n"
237 "uint16 time_state # No time data: 0, Time data: 1\n"
238 "uint16 year # f.e. 2021\n"
239 "uint8 month # 1 ... 12\n"
240 "uint8 day # 1 ... 31\n"
241 "uint8 hour # 0 ... 23\n"
242 "uint8 minute # 0 ... 59\n"
243 "uint8 second # 0 ... 59\n"
244 "uint32 microsecond # 0 ... 999999\n"
245 "\n"
246 "================================================================================\n"
247 "MSG: std_msgs/Header\n"
248 "# Standard metadata for higher-level stamped data types.\n"
249 "# This is generally used to communicate timestamped data \n"
250 "# in a particular coordinate frame.\n"
251 "# \n"
252 "# sequence ID: consecutively increasing ID \n"
253 "uint32 seq\n"
254 "#Two-integer timestamp that is expressed as:\n"
255 "# * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n"
256 "# * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n"
257 "# time-handling sugar is provided by the client library\n"
258 "time stamp\n"
259 "#Frame this data is associated with\n"
260 "string frame_id\n"
261 ;
262  }
263 
264  static const char* value(const ::sick_scan_xd::LIDoutputstateMsg_<ContainerAllocator>&) { return value(); }
265 };
266 
267 } // namespace message_traits
268 } // namespace roswrap
269 
270 namespace roswrap
271 {
272 namespace serialization
273 {
274 
275  template<class ContainerAllocator> struct Serializer< ::sick_scan_xd::LIDoutputstateMsg_<ContainerAllocator> >
276  {
277  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
278  {
279  stream.next(m.header);
280  stream.next(m.version_number);
281  stream.next(m.system_counter);
282  stream.next(m.output_state);
283  stream.next(m.output_count);
284  stream.next(m.time_state);
285  stream.next(m.year);
286  stream.next(m.month);
287  stream.next(m.day);
288  stream.next(m.hour);
289  stream.next(m.minute);
290  stream.next(m.second);
291  stream.next(m.microsecond);
292  }
293 
295  }; // struct LIDoutputstateMsg_
296 
297 } // namespace serialization
298 } // namespace roswrap
299 
300 namespace roswrap
301 {
302 namespace message_operations
303 {
304 
305 template<class ContainerAllocator>
306 struct Printer< ::sick_scan_xd::LIDoutputstateMsg_<ContainerAllocator> >
307 {
308  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sick_scan_xd::LIDoutputstateMsg_<ContainerAllocator>& v)
309  {
310  s << indent << "header: ";
311  s << std::endl;
313  s << indent << "version_number: ";
314  Printer<uint16_t>::stream(s, indent + " ", v.version_number);
315  s << indent << "system_counter: ";
316  Printer<uint32_t>::stream(s, indent + " ", v.system_counter);
317  s << indent << "output_state[]" << std::endl;
318  for (size_t i = 0; i < v.output_state.size(); ++i)
319  {
320  s << indent << " output_state[" << i << "]: ";
321  Printer<uint8_t>::stream(s, indent + " ", v.output_state[i]);
322  }
323  s << indent << "output_count[]" << std::endl;
324  for (size_t i = 0; i < v.output_count.size(); ++i)
325  {
326  s << indent << " output_count[" << i << "]: ";
327  Printer<uint32_t>::stream(s, indent + " ", v.output_count[i]);
328  }
329  s << indent << "time_state: ";
330  Printer<uint16_t>::stream(s, indent + " ", v.time_state);
331  s << indent << "year: ";
332  Printer<uint16_t>::stream(s, indent + " ", v.year);
333  s << indent << "month: ";
334  Printer<uint8_t>::stream(s, indent + " ", v.month);
335  s << indent << "day: ";
336  Printer<uint8_t>::stream(s, indent + " ", v.day);
337  s << indent << "hour: ";
338  Printer<uint8_t>::stream(s, indent + " ", v.hour);
339  s << indent << "minute: ";
340  Printer<uint8_t>::stream(s, indent + " ", v.minute);
341  s << indent << "second: ";
342  Printer<uint8_t>::stream(s, indent + " ", v.second);
343  s << indent << "microsecond: ";
344  Printer<uint32_t>::stream(s, indent + " ", v.microsecond);
345  }
346 };
347 
348 } // namespace message_operations
349 } // namespace roswrap
350 
351 #endif // SICK_SCAN_MESSAGE_LIDOUTPUTSTATEMSG_H
sick_scan_xd::LIDoutputstateMsg_::header
_header_type header
Definition: LIDoutputstateMsg.h:63
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
sick_scan_xd::operator<<
std::ostream & operator<<(std::ostream &s, const ::sick_scan_xd::ColaMsgSrvRequest_< ContainerAllocator > &v)
Definition: ColaMsgSrvRequest.h:59
sick_scan_xd::LIDoutputstateMsg_::_header_type
::std_msgs::Header_< ContainerAllocator > _header_type
Definition: LIDoutputstateMsg.h:62
sick_scan_xd::LIDoutputstateMsg_::system_counter
_system_counter_type system_counter
Definition: LIDoutputstateMsg.h:69
sick_scan_xd::LIDoutputstateMsg_::_year_type
uint16_t _year_type
Definition: LIDoutputstateMsg.h:80
multiscan_pcap_player.indent
indent
Definition: multiscan_pcap_player.py:252
sick_scan_xd::operator!=
bool operator!=(const ::sick_scan_xd::ColaMsgSrvRequest_< ContainerAllocator1 > &lhs, const ::sick_scan_xd::ColaMsgSrvRequest_< ContainerAllocator2 > &rhs)
Definition: ColaMsgSrvRequest.h:73
roswrap::serialization::Serializer
Templated serialization class. Default implementation provides backwards compatibility with old messa...
Definition: serialization.h:120
sick_scan_xd::LIDoutputstateMsg_::_month_type
uint8_t _month_type
Definition: LIDoutputstateMsg.h:83
roswrap::message_traits::DataType< ::sick_scan_xd::LIDoutputstateMsg_< ContainerAllocator > >::value
static const char * value()
Definition: LIDoutputstateMsg.h:210
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::MD5Sum< ::sick_scan_xd::LIDoutputstateMsg_< ContainerAllocator > >::value
static const char * value()
Definition: LIDoutputstateMsg.h:197
sick_scan_xd::LIDoutputstateMsg_::minute
_minute_type minute
Definition: LIDoutputstateMsg.h:93
const
#define const
Definition: getopt.c:38
s
XmlRpcServer s
sick_scan_xd::LIDoutputstateMsg_::month
_month_type month
Definition: LIDoutputstateMsg.h:84
sick_scan_xd::LIDoutputstateMsg_::_hour_type
uint8_t _hour_type
Definition: LIDoutputstateMsg.h:89
sick_scan_xd::LIDoutputstateMsg_
Definition: LIDoutputstateMsg.h:24
sick_scan_xd::LIDoutputstateMsg_::_day_type
uint8_t _day_type
Definition: LIDoutputstateMsg.h:86
sick_scan_xd::LIDoutputstateMsg_::_system_counter_type
uint32_t _system_counter_type
Definition: LIDoutputstateMsg.h:68
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
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< ::sick_scan_xd::LIDoutputstateMsg_< ContainerAllocator > >::allInOne
static void allInOne(Stream &stream, T m)
Definition: LIDoutputstateMsg.h:277
sick_scan_xd::LIDoutputstateMsg_::second
_second_type second
Definition: LIDoutputstateMsg.h:96
sick_scan_xd
Definition: abstract_parser.cpp:65
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
sick_scan_xd::LIDoutputstateMsg_::_minute_type
uint8_t _minute_type
Definition: LIDoutputstateMsg.h:92
sick_scan_xd::LIDoutputstateMsg_::_time_state_type
uint16_t _time_state_type
Definition: LIDoutputstateMsg.h:77
sick_scan_xd::LIDoutputstateMsg_::LIDoutputstateMsg_
LIDoutputstateMsg_()
Definition: LIDoutputstateMsg.h:28
sick_scan_xd::LIDoutputstateMsg_::Type
LIDoutputstateMsg_< ContainerAllocator > Type
Definition: LIDoutputstateMsg.h:26
roswrap::message_operations::Printer< ::sick_scan_xd::LIDoutputstateMsg_< ContainerAllocator > >::stream
static void stream(Stream &s, const std::string &indent, const ::sick_scan_xd::LIDoutputstateMsg_< ContainerAllocator > &v)
Definition: LIDoutputstateMsg.h:308
sick_scan_xd::LIDoutputstateMsg_::Ptr
std::shared_ptr< ::sick_scan_xd::LIDoutputstateMsg_< ContainerAllocator > > Ptr
Definition: LIDoutputstateMsg.h:105
sick_scan_xd::LIDoutputstateMsg_::output_count
_output_count_type output_count
Definition: LIDoutputstateMsg.h:75
sick_scan_xd::LIDoutputstateMsg_::day
_day_type day
Definition: LIDoutputstateMsg.h:87
sick_scan_xd::LIDoutputstateMsg
::sick_scan_xd::LIDoutputstateMsg_< std::allocator< void > > LIDoutputstateMsg
Definition: LIDoutputstateMsg.h:110
roswrap
Definition: param_modi.cpp:41
roswrap::message_operations::Printer
Definition: message_operations.h:40
sick_scan_xd::LIDoutputstateMsg_::ConstPtr
std::shared_ptr< ::sick_scan_xd::LIDoutputstateMsg_< ContainerAllocator > const > ConstPtr
Definition: LIDoutputstateMsg.h:106
std_msgs::Header_
Definition: Header.h:23
sick_scan_xd::LIDoutputstateMsgPtr
std::shared_ptr< ::sick_scan_xd::LIDoutputstateMsg > LIDoutputstateMsgPtr
Definition: LIDoutputstateMsg.h:112
roswrap::message_traits::MD5Sum< ::sick_scan_xd::LIDoutputstateMsg_< ContainerAllocator > >::value
static const char * value(const ::sick_scan_xd::LIDoutputstateMsg_< ContainerAllocator > &)
Definition: LIDoutputstateMsg.h:202
sick_scan_xd::LIDoutputstateMsg_::_second_type
uint8_t _second_type
Definition: LIDoutputstateMsg.h:95
roswrap::message_traits::Definition< ::sick_scan_xd::LIDoutputstateMsg_< ContainerAllocator > >::value
static const char * value(const ::sick_scan_xd::LIDoutputstateMsg_< ContainerAllocator > &)
Definition: LIDoutputstateMsg.h:264
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
sick_scan_xd::LIDoutputstateMsgConstPtr
std::shared_ptr< ::sick_scan_xd::LIDoutputstateMsg const > LIDoutputstateMsgConstPtr
Definition: LIDoutputstateMsg.h:113
roswrap::message_traits::IsMessage
Am I message or not.
Definition: message_traits.h:112
sick_scan_xd::LIDoutputstateMsg_::output_state
_output_state_type output_state
Definition: LIDoutputstateMsg.h:72
sick_scan_xd::operator==
bool operator==(const ::sick_scan_xd::ColaMsgSrvRequest_< ContainerAllocator1 > &lhs, const ::sick_scan_xd::ColaMsgSrvRequest_< ContainerAllocator2 > &rhs)
Definition: ColaMsgSrvRequest.h:67
roswrap::message_traits::DataType< ::sick_scan_xd::LIDoutputstateMsg_< ContainerAllocator > >::value
static const char * value(const ::sick_scan_xd::LIDoutputstateMsg_< ContainerAllocator > &)
Definition: LIDoutputstateMsg.h:215
sick_scan_base.h
roswrap::serialization::Stream
Stream base-class, provides common functionality for IStream and OStream.
Definition: serialization.h:705
sick_scan_xd::LIDoutputstateMsg_::hour
_hour_type hour
Definition: LIDoutputstateMsg.h:90
sick_scan_xd::LIDoutputstateMsg_::year
_year_type year
Definition: LIDoutputstateMsg.h:81
roswrap::message_traits::Definition< ::sick_scan_xd::LIDoutputstateMsg_< ContainerAllocator > >::value
static const char * value()
Definition: LIDoutputstateMsg.h:221
sick_scan_xd::LIDoutputstateMsg_::_output_state_type
std::vector< uint8_t, typename ContainerAllocator::template rebind< uint8_t >::other > _output_state_type
Definition: LIDoutputstateMsg.h:71
sick_scan_xd::LIDoutputstateMsg_::_output_count_type
std::vector< uint32_t, typename ContainerAllocator::template rebind< uint32_t >::other > _output_count_type
Definition: LIDoutputstateMsg.h:74
sick_scan_xd::LIDoutputstateMsg_::version_number
_version_number_type version_number
Definition: LIDoutputstateMsg.h:66
Header.h
sick_scan_xd::LIDoutputstateMsg_::_microsecond_type
uint32_t _microsecond_type
Definition: LIDoutputstateMsg.h:98
sick_scan_xd::LIDoutputstateMsg_::_version_number_type
uint16_t _version_number_type
Definition: LIDoutputstateMsg.h:65
sick_scan_xd::LIDoutputstateMsg_::LIDoutputstateMsg_
LIDoutputstateMsg_(const ContainerAllocator &_alloc)
Definition: LIDoutputstateMsg.h:43
sick_scan_xd::LIDoutputstateMsg_::microsecond
_microsecond_type microsecond
Definition: LIDoutputstateMsg.h:99
sick_scan_xd::LIDoutputstateMsg_::time_state
_time_state_type time_state
Definition: LIDoutputstateMsg.h:78


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