LIDinputstateMsg.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_xd/LIDinputstateMsg.msg
3 // DO NOT EDIT!
4 
5 
6 #ifndef SICK_SCAN_XD_MESSAGE_LIDINPUTSTATEMSG_H
7 #define SICK_SCAN_XD_MESSAGE_LIDINPUTSTATEMSG_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  , input_state()
33  , active_fieldset(0)
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  LIDinputstateMsg_(const ContainerAllocator& _alloc)
44  : header(_alloc)
45  , version_number(0)
46  , system_counter(0)
47  , input_state(_alloc)
48  , active_fieldset(0)
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 std::allocator_traits<ContainerAllocator>::template rebind_alloc<uint8_t>> _input_state_type;
73 
74  typedef int32_t _active_fieldset_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::LIDinputstateMsg_<ContainerAllocator> > Ptr;
106  typedef std::shared_ptr< ::sick_scan_xd::LIDinputstateMsg_<ContainerAllocator> const> ConstPtr;
107 
108 }; // struct LIDinputstateMsg_
109 
110 typedef ::sick_scan_xd::LIDinputstateMsg_<std::allocator<void> > LIDinputstateMsg;
111 
112 typedef std::shared_ptr< ::sick_scan_xd::LIDinputstateMsg > LIDinputstateMsgPtr;
113 typedef std::shared_ptr< ::sick_scan_xd::LIDinputstateMsg const> LIDinputstateMsgConstPtr;
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::LIDinputstateMsg_<ContainerAllocator> & v)
121 {
123 return s;
124 }
125 
126 
127 template<typename ContainerAllocator1, typename ContainerAllocator2>
128 bool operator==(const ::sick_scan_xd::LIDinputstateMsg_<ContainerAllocator1> & lhs, const ::sick_scan_xd::LIDinputstateMsg_<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.input_state == rhs.input_state &&
134  lhs.active_fieldset == rhs.active_fieldset &&
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::LIDinputstateMsg_<ContainerAllocator1> & lhs, const ::sick_scan_xd::LIDinputstateMsg_<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 IsMessage< ::sick_scan_xd::LIDinputstateMsg_<ContainerAllocator> >
165  : TrueType
166  { };
167 
168 template <class ContainerAllocator>
169 struct IsMessage< ::sick_scan_xd::LIDinputstateMsg_<ContainerAllocator> const>
170  : TrueType
171  { };
172 
173 template <class ContainerAllocator>
174 struct IsFixedSize< ::sick_scan_xd::LIDinputstateMsg_<ContainerAllocator> >
175  : FalseType
176  { };
177 
178 template <class ContainerAllocator>
179 struct IsFixedSize< ::sick_scan_xd::LIDinputstateMsg_<ContainerAllocator> const>
180  : FalseType
181  { };
182 
183 template <class ContainerAllocator>
184 struct HasHeader< ::sick_scan_xd::LIDinputstateMsg_<ContainerAllocator> >
185  : TrueType
186  { };
187 
188 template <class ContainerAllocator>
189 struct HasHeader< ::sick_scan_xd::LIDinputstateMsg_<ContainerAllocator> const>
190  : TrueType
191  { };
192 
193 
194 template<class ContainerAllocator>
195 struct MD5Sum< ::sick_scan_xd::LIDinputstateMsg_<ContainerAllocator> >
196 {
197  static const char* value()
198  {
199  return "9733baf8db424fa686b779e20fb5e171";
200  }
201 
202  static const char* value(const ::sick_scan_xd::LIDinputstateMsg_<ContainerAllocator>&) { return value(); }
203  static const uint64_t static_value1 = 0x9733baf8db424fa6ULL;
204  static const uint64_t static_value2 = 0x86b779e20fb5e171ULL;
205 };
206 
207 template<class ContainerAllocator>
208 struct DataType< ::sick_scan_xd::LIDinputstateMsg_<ContainerAllocator> >
209 {
210  static const char* value()
211  {
212  return "sick_scan_xd/LIDinputstateMsg";
213  }
214 
215  static const char* value(const ::sick_scan_xd::LIDinputstateMsg_<ContainerAllocator>&) { return value(); }
216 };
217 
218 template<class ContainerAllocator>
219 struct Definition< ::sick_scan_xd::LIDinputstateMsg_<ContainerAllocator> >
220 {
221  static const char* value()
222  {
223  return "# This message contains the \"sSN LIDinputstate\" message of a Sick laser scanner as an ros message.\n"
224 "#\n"
225 "\n"
226 "std_msgs/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 input states\n"
233 "uint8[] input_state # input states, each state with value 0 (not active), 1 (active) or 2 (not used)\n"
234 "int32 active_fieldset # active fieldset\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::LIDinputstateMsg_<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::LIDinputstateMsg_<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.input_state);
283  stream.next(m.active_fieldset);
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 LIDinputstateMsg_
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::LIDinputstateMsg_<ContainerAllocator> >
307 {
308  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sick_scan_xd::LIDinputstateMsg_<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 << "input_state[]" << std::endl;
318  for (size_t i = 0; i < v.input_state.size(); ++i)
319  {
320  s << indent << " input_state[" << i << "]: ";
321  Printer<uint8_t>::stream(s, indent + " ", v.input_state[i]);
322  }
323  s << indent << "active_fieldset: ";
324  Printer<int32_t>::stream(s, indent + " ", v.active_fieldset);
325  s << indent << "time_state: ";
326  Printer<uint16_t>::stream(s, indent + " ", v.time_state);
327  s << indent << "year: ";
328  Printer<uint16_t>::stream(s, indent + " ", v.year);
329  s << indent << "month: ";
330  Printer<uint8_t>::stream(s, indent + " ", v.month);
331  s << indent << "day: ";
332  Printer<uint8_t>::stream(s, indent + " ", v.day);
333  s << indent << "hour: ";
334  Printer<uint8_t>::stream(s, indent + " ", v.hour);
335  s << indent << "minute: ";
336  Printer<uint8_t>::stream(s, indent + " ", v.minute);
337  s << indent << "second: ";
338  Printer<uint8_t>::stream(s, indent + " ", v.second);
339  s << indent << "microsecond: ";
340  Printer<uint32_t>::stream(s, indent + " ", v.microsecond);
341  }
342 };
343 
344 } // namespace message_operations
345 } // namespace roswrap
346 
347 #endif // SICK_SCAN_XD_MESSAGE_LIDINPUTSTATEMSG_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
sick_scan_xd::operator<<
std::ostream & operator<<(std::ostream &s, const ::sick_scan_xd::ColaMsgSrvRequest_< ContainerAllocator > &v)
Definition: ColaMsgSrvRequest.h:59
sick_scan_xd::LIDinputstateMsg_::second
_second_type second
Definition: LIDinputstateMsg.h:96
sick_scan_xd::LIDinputstateMsg_::_month_type
uint8_t _month_type
Definition: LIDinputstateMsg.h:83
sick_scan_xd::LIDinputstateMsg_::_year_type
uint16_t _year_type
Definition: LIDinputstateMsg.h:80
multiscan_pcap_player.indent
indent
Definition: multiscan_pcap_player.py:252
sick_scan_xd::LIDinputstateMsg_::_minute_type
uint8_t _minute_type
Definition: LIDinputstateMsg.h:92
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::LIDinputstateMsg_::hour
_hour_type hour
Definition: LIDinputstateMsg.h:90
roswrap::message_traits::DataType< ::sick_scan_xd::LIDinputstateMsg_< ContainerAllocator > >::value
static const char * value()
Definition: LIDinputstateMsg.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
sick_scan_xd::LIDinputstateMsg_::input_state
_input_state_type input_state
Definition: LIDinputstateMsg.h:72
const
#define const
Definition: getopt.c:38
sick_scan_xd::LIDinputstateMsg_::_system_counter_type
uint32_t _system_counter_type
Definition: LIDinputstateMsg.h:68
s
XmlRpcServer s
sick_scan_xd::LIDinputstateMsg_::_hour_type
uint8_t _hour_type
Definition: LIDinputstateMsg.h:89
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
roswrap::message_traits::Definition< ::sick_scan_xd::LIDinputstateMsg_< ContainerAllocator > >::value
static const char * value(const ::sick_scan_xd::LIDinputstateMsg_< ContainerAllocator > &)
Definition: LIDinputstateMsg.h:264
roswrap::message_traits::MD5Sum< ::sick_scan_xd::LIDinputstateMsg_< ContainerAllocator > >::value
static const char * value(const ::sick_scan_xd::LIDinputstateMsg_< ContainerAllocator > &)
Definition: LIDinputstateMsg.h:202
sick_scan_xd::LIDinputstateMsg_::time_state
_time_state_type time_state
Definition: LIDinputstateMsg.h:78
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
sick_scan_xd
Definition: abstract_parser.cpp:65
sick_scan_xd::LIDinputstateMsg_::microsecond
_microsecond_type microsecond
Definition: LIDinputstateMsg.h:99
sick_scan_xd::LIDinputstateMsg_::_input_state_type
std::vector< uint8_t, typename std::allocator_traits< ContainerAllocator >::template rebind_alloc< uint8_t > > _input_state_type
Definition: LIDinputstateMsg.h:71
roswrap::message_traits::DataType
Specialize to provide the datatype for a message.
Definition: message_traits.h:135
sick_scan_xd::LIDinputstateMsg_::ConstPtr
std::shared_ptr< ::sick_scan_xd::LIDinputstateMsg_< ContainerAllocator > const > ConstPtr
Definition: LIDinputstateMsg.h:106
roswrap::message_traits::MD5Sum< ::sick_scan_xd::LIDinputstateMsg_< ContainerAllocator > >::value
static const char * value()
Definition: LIDinputstateMsg.h:197
roswrap::message_traits::Definition
Specialize to provide the definition for a message.
Definition: message_traits.h:152
sick_scan_xd::LIDinputstateMsg_::LIDinputstateMsg_
LIDinputstateMsg_()
Definition: LIDinputstateMsg.h:28
sick_scan_xd::LIDinputstateMsg_::LIDinputstateMsg_
LIDinputstateMsg_(const ContainerAllocator &_alloc)
Definition: LIDinputstateMsg.h:43
sick_scan_xd::LIDinputstateMsg_::_time_state_type
uint16_t _time_state_type
Definition: LIDinputstateMsg.h:77
sick_scan_xd::LIDinputstateMsgPtr
std::shared_ptr< ::sick_scan_xd::LIDinputstateMsg > LIDinputstateMsgPtr
Definition: LIDinputstateMsg.h:112
sick_scan_xd::LIDinputstateMsg_::Type
LIDinputstateMsg_< ContainerAllocator > Type
Definition: LIDinputstateMsg.h:26
sick_scan_xd::LIDinputstateMsg_
Definition: LIDinputstateMsg.h:24
roswrap
Definition: param_modi.cpp:41
sick_scan_xd::LIDinputstateMsg_::_day_type
uint8_t _day_type
Definition: LIDinputstateMsg.h:86
sick_scan_xd::LIDinputstateMsg_::header
_header_type header
Definition: LIDinputstateMsg.h:63
roswrap::message_operations::Printer
Definition: message_operations.h:40
std_msgs::Header_
Definition: Header.h:23
sick_scan_xd::LIDinputstateMsg_::year
_year_type year
Definition: LIDinputstateMsg.h:81
sick_scan_xd::LIDinputstateMsg_::_microsecond_type
uint32_t _microsecond_type
Definition: LIDinputstateMsg.h:98
sick_scan_xd::LIDinputstateMsgConstPtr
std::shared_ptr< ::sick_scan_xd::LIDinputstateMsg const > LIDinputstateMsgConstPtr
Definition: LIDinputstateMsg.h:113
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::LIDinputstateMsg_::_header_type
::std_msgs::Header_< ContainerAllocator > _header_type
Definition: LIDinputstateMsg.h:62
sick_scan_xd::LIDinputstateMsg
::sick_scan_xd::LIDinputstateMsg_< std::allocator< void > > LIDinputstateMsg
Definition: LIDinputstateMsg.h:110
roswrap::serialization::Serializer< ::sick_scan_xd::LIDinputstateMsg_< ContainerAllocator > >::allInOne
static void allInOne(Stream &stream, T m)
Definition: LIDinputstateMsg.h:277
roswrap::message_traits::IsMessage
Am I message or not.
Definition: message_traits.h:112
sick_scan_xd::LIDinputstateMsg_::active_fieldset
_active_fieldset_type active_fieldset
Definition: LIDinputstateMsg.h:75
sick_scan_xd::operator==
bool operator==(const ::sick_scan_xd::ColaMsgSrvRequest_< ContainerAllocator1 > &lhs, const ::sick_scan_xd::ColaMsgSrvRequest_< ContainerAllocator2 > &rhs)
Definition: ColaMsgSrvRequest.h:67
sick_scan_xd::LIDinputstateMsg_::Ptr
std::shared_ptr< ::sick_scan_xd::LIDinputstateMsg_< ContainerAllocator > > Ptr
Definition: LIDinputstateMsg.h:105
sick_scan_base.h
roswrap::serialization::Stream
Stream base-class, provides common functionality for IStream and OStream.
Definition: serialization.h:705
sick_scan_xd::LIDinputstateMsg_::month
_month_type month
Definition: LIDinputstateMsg.h:84
sick_scan_xd::LIDinputstateMsg_::_second_type
uint8_t _second_type
Definition: LIDinputstateMsg.h:95
roswrap::message_traits::Definition< ::sick_scan_xd::LIDinputstateMsg_< ContainerAllocator > >::value
static const char * value()
Definition: LIDinputstateMsg.h:221
sick_scan_xd::LIDinputstateMsg_::_active_fieldset_type
int32_t _active_fieldset_type
Definition: LIDinputstateMsg.h:74
roswrap::message_operations::Printer< ::sick_scan_xd::LIDinputstateMsg_< ContainerAllocator > >::stream
static void stream(Stream &s, const std::string &indent, const ::sick_scan_xd::LIDinputstateMsg_< ContainerAllocator > &v)
Definition: LIDinputstateMsg.h:308
sick_scan_xd::LIDinputstateMsg_::minute
_minute_type minute
Definition: LIDinputstateMsg.h:93
sick_scan_xd::LIDinputstateMsg_::day
_day_type day
Definition: LIDinputstateMsg.h:87
sick_scan_xd::LIDinputstateMsg_::version_number
_version_number_type version_number
Definition: LIDinputstateMsg.h:66
sick_scan_xd::LIDinputstateMsg_::system_counter
_system_counter_type system_counter
Definition: LIDinputstateMsg.h:69
roswrap::message_traits::DataType< ::sick_scan_xd::LIDinputstateMsg_< ContainerAllocator > >::value
static const char * value(const ::sick_scan_xd::LIDinputstateMsg_< ContainerAllocator > &)
Definition: LIDinputstateMsg.h:215
Header.h
sick_scan_xd::LIDinputstateMsg_::_version_number_type
uint16_t _version_number_type
Definition: LIDinputstateMsg.h:65


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