LFErecFieldMsg.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/LFErecFieldMsg.msg
3 // DO NOT EDIT!
4 
5 
6 #ifndef SICK_SCAN_MESSAGE_LFERECFIELDMSG_H
7 #define SICK_SCAN_MESSAGE_LFERECFIELDMSG_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 
20 namespace sick_scan_xd
21 {
22 template <class ContainerAllocator>
24 {
26 
28  : version_number(0)
29  , field_index(0)
30  , sys_count(0)
31  , dist_scale_factor(0.0)
32  , dist_scale_offset(0.0)
35  , field_result_mrs(0)
36  , time_state(0)
37  , year(0)
38  , month(0)
39  , day(0)
40  , hour(0)
41  , minute(0)
42  , second(0)
43  , microsecond(0) {
44  }
45  LFErecFieldMsg_(const ContainerAllocator& _alloc)
46  : version_number(0)
47  , field_index(0)
48  , sys_count(0)
49  , dist_scale_factor(0.0)
50  , dist_scale_offset(0.0)
53  , field_result_mrs(0)
54  , time_state(0)
55  , year(0)
56  , month(0)
57  , day(0)
58  , hour(0)
59  , minute(0)
60  , second(0)
61  , microsecond(0) {
62  (void)_alloc;
63  }
64 
65 
66 
67  typedef uint16_t _version_number_type;
69 
70  typedef uint8_t _field_index_type;
72 
73  typedef uint32_t _sys_count_type;
75 
76  typedef float _dist_scale_factor_type;
78 
79  typedef float _dist_scale_offset_type;
81 
82  typedef uint32_t _angle_scale_factor_type;
84 
85  typedef int32_t _angle_scale_offset_type;
87 
88  typedef uint8_t _field_result_mrs_type;
90 
91  typedef uint16_t _time_state_type;
93 
94  typedef uint16_t _year_type;
96 
97  typedef uint8_t _month_type;
99 
100  typedef uint8_t _day_type;
102 
103  typedef uint8_t _hour_type;
105 
106  typedef uint8_t _minute_type;
108 
109  typedef uint8_t _second_type;
111 
112  typedef uint32_t _microsecond_type;
114 
115 
116 
117 
118 
119  typedef std::shared_ptr< ::sick_scan_xd::LFErecFieldMsg_<ContainerAllocator> > Ptr;
120  typedef std::shared_ptr< ::sick_scan_xd::LFErecFieldMsg_<ContainerAllocator> const> ConstPtr;
121 
122 }; // struct LFErecFieldMsg_
123 
124 typedef ::sick_scan_xd::LFErecFieldMsg_<std::allocator<void> > LFErecFieldMsg;
125 
126 typedef std::shared_ptr< ::sick_scan_xd::LFErecFieldMsg > LFErecFieldMsgPtr;
127 typedef std::shared_ptr< ::sick_scan_xd::LFErecFieldMsg const> LFErecFieldMsgConstPtr;
128 
129 // constants requiring out of line definition
130 
131 
132 
133 template<typename ContainerAllocator>
134 std::ostream& operator<<(std::ostream& s, const ::sick_scan_xd::LFErecFieldMsg_<ContainerAllocator> & v)
135 {
137 return s;
138 }
139 
140 
141 template<typename ContainerAllocator1, typename ContainerAllocator2>
142 bool operator==(const ::sick_scan_xd::LFErecFieldMsg_<ContainerAllocator1> & lhs, const ::sick_scan_xd::LFErecFieldMsg_<ContainerAllocator2> & rhs)
143 {
144  return lhs.version_number == rhs.version_number &&
145  lhs.field_index == rhs.field_index &&
146  lhs.sys_count == rhs.sys_count &&
147  lhs.dist_scale_factor == rhs.dist_scale_factor &&
148  lhs.dist_scale_offset == rhs.dist_scale_offset &&
149  lhs.angle_scale_factor == rhs.angle_scale_factor &&
150  lhs.angle_scale_offset == rhs.angle_scale_offset &&
151  lhs.field_result_mrs == rhs.field_result_mrs &&
152  lhs.time_state == rhs.time_state &&
153  lhs.year == rhs.year &&
154  lhs.month == rhs.month &&
155  lhs.day == rhs.day &&
156  lhs.hour == rhs.hour &&
157  lhs.minute == rhs.minute &&
158  lhs.second == rhs.second &&
159  lhs.microsecond == rhs.microsecond;
160 }
161 
162 template<typename ContainerAllocator1, typename ContainerAllocator2>
163 bool operator!=(const ::sick_scan_xd::LFErecFieldMsg_<ContainerAllocator1> & lhs, const ::sick_scan_xd::LFErecFieldMsg_<ContainerAllocator2> & rhs)
164 {
165  return !(lhs == rhs);
166 }
167 
168 
169 } // namespace sick_scan_xd
170 
171 namespace roswrap
172 {
173 namespace message_traits
174 {
175 
176 
177 
178 
179 
180 template <class ContainerAllocator>
181 struct IsFixedSize< ::sick_scan_xd::LFErecFieldMsg_<ContainerAllocator> >
182  : TrueType
183  { };
184 
185 template <class ContainerAllocator>
186 struct IsFixedSize< ::sick_scan_xd::LFErecFieldMsg_<ContainerAllocator> const>
187  : TrueType
188  { };
189 
190 template <class ContainerAllocator>
191 struct IsMessage< ::sick_scan_xd::LFErecFieldMsg_<ContainerAllocator> >
192  : TrueType
193  { };
194 
195 template <class ContainerAllocator>
196 struct IsMessage< ::sick_scan_xd::LFErecFieldMsg_<ContainerAllocator> const>
197  : TrueType
198  { };
199 
200 template <class ContainerAllocator>
201 struct HasHeader< ::sick_scan_xd::LFErecFieldMsg_<ContainerAllocator> >
202  : FalseType
203  { };
204 
205 template <class ContainerAllocator>
206 struct HasHeader< ::sick_scan_xd::LFErecFieldMsg_<ContainerAllocator> const>
207  : FalseType
208  { };
209 
210 
211 template<class ContainerAllocator>
212 struct MD5Sum< ::sick_scan_xd::LFErecFieldMsg_<ContainerAllocator> >
213 {
214  static const char* value()
215  {
216  return "268600f47eb96b8f384e54c8bc6e18f6";
217  }
218 
219  static const char* value(const ::sick_scan_xd::LFErecFieldMsg_<ContainerAllocator>&) { return value(); }
220  static const uint64_t static_value1 = 0x268600f47eb96b8fULL;
221  static const uint64_t static_value2 = 0x384e54c8bc6e18f6ULL;
222 };
223 
224 template<class ContainerAllocator>
225 struct DataType< ::sick_scan_xd::LFErecFieldMsg_<ContainerAllocator> >
226 {
227  static const char* value()
228  {
229  return "sick_scan/LFErecFieldMsg";
230  }
231 
232  static const char* value(const ::sick_scan_xd::LFErecFieldMsg_<ContainerAllocator>&) { return value(); }
233 };
234 
235 template<class ContainerAllocator>
236 struct Definition< ::sick_scan_xd::LFErecFieldMsg_<ContainerAllocator> >
237 {
238  static const char* value()
239  {
240  return "# This message contains a single field of a \"sSN LFErec\" message of a Sick laser scanner as an ros message.\n"
241 "# See https://github.com/SICKAG/libsick_ldmrs/blob/master/src/sopas/LdmrsSopasLayer.cpp lines 1414 ff.\n"
242 "# Field result field_result_mrs is 0 (invalid/incorrect), 1 (free/clear) or 2 (infringed)\n"
243 "# Note: field indices are sorted in reverse order, i.e. with 2 configured fields, we typically have\n"
244 "# output_msg.fields[0].field_index = 1, output_msg.fields[0].field_result_mrs = 0 (invalid)\n"
245 "# output_msg.fields[1].field_index = 2, output_msg.fields[1].field_result_mrs = 1 or 2 (clear=1 or infringed=2)\n"
246 "# output_msg.fields[2].field_index = 3, output_msg.fields[2].field_result_mrs = 1 or 2 (clear=1 or infringed=2)\n"
247 "\n"
248 "uint16 version_number\n"
249 "uint8 field_index\n"
250 "uint32 sys_count\n"
251 "float32 dist_scale_factor\n"
252 "float32 dist_scale_offset\n"
253 "uint32 angle_scale_factor\n"
254 "int32 angle_scale_offset\n"
255 "uint8 field_result_mrs # field result is 0 (invalid/incorrect), 1 (free/clear) or 2 (infringed)\n"
256 "# Time block\n"
257 "uint16 time_state # No time data: 0, Time data: 1\n"
258 "uint16 year # f.e. 2021\n"
259 "uint8 month # 1 ... 12\n"
260 "uint8 day # 1 ... 31\n"
261 "uint8 hour # 0 ... 23\n"
262 "uint8 minute # 0 ... 59\n"
263 "uint8 second # 0 ... 59\n"
264 "uint32 microsecond # 0 ... 999999\n"
265 ;
266  }
267 
268  static const char* value(const ::sick_scan_xd::LFErecFieldMsg_<ContainerAllocator>&) { return value(); }
269 };
270 
271 } // namespace message_traits
272 } // namespace roswrap
273 
274 namespace roswrap
275 {
276 namespace serialization
277 {
278 
279  template<class ContainerAllocator> struct Serializer< ::sick_scan_xd::LFErecFieldMsg_<ContainerAllocator> >
280  {
281  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
282  {
283  stream.next(m.version_number);
284  stream.next(m.field_index);
285  stream.next(m.sys_count);
286  stream.next(m.dist_scale_factor);
287  stream.next(m.dist_scale_offset);
288  stream.next(m.angle_scale_factor);
289  stream.next(m.angle_scale_offset);
290  stream.next(m.field_result_mrs);
291  stream.next(m.time_state);
292  stream.next(m.year);
293  stream.next(m.month);
294  stream.next(m.day);
295  stream.next(m.hour);
296  stream.next(m.minute);
297  stream.next(m.second);
298  stream.next(m.microsecond);
299  }
300 
302  }; // struct LFErecFieldMsg_
303 
304 } // namespace serialization
305 } // namespace roswrap
306 
307 namespace roswrap
308 {
309 namespace message_operations
310 {
311 
312 template<class ContainerAllocator>
313 struct Printer< ::sick_scan_xd::LFErecFieldMsg_<ContainerAllocator> >
314 {
315  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sick_scan_xd::LFErecFieldMsg_<ContainerAllocator>& v)
316  {
317  s << indent << "version_number: ";
318  Printer<uint16_t>::stream(s, indent + " ", v.version_number);
319  s << indent << "field_index: ";
320  Printer<uint8_t>::stream(s, indent + " ", v.field_index);
321  s << indent << "sys_count: ";
322  Printer<uint32_t>::stream(s, indent + " ", v.sys_count);
323  s << indent << "dist_scale_factor: ";
324  Printer<float>::stream(s, indent + " ", v.dist_scale_factor);
325  s << indent << "dist_scale_offset: ";
326  Printer<float>::stream(s, indent + " ", v.dist_scale_offset);
327  s << indent << "angle_scale_factor: ";
328  Printer<uint32_t>::stream(s, indent + " ", v.angle_scale_factor);
329  s << indent << "angle_scale_offset: ";
330  Printer<int32_t>::stream(s, indent + " ", v.angle_scale_offset);
331  s << indent << "field_result_mrs: ";
332  Printer<uint8_t>::stream(s, indent + " ", v.field_result_mrs);
333  s << indent << "time_state: ";
334  Printer<uint16_t>::stream(s, indent + " ", v.time_state);
335  s << indent << "year: ";
336  Printer<uint16_t>::stream(s, indent + " ", v.year);
337  s << indent << "month: ";
338  Printer<uint8_t>::stream(s, indent + " ", v.month);
339  s << indent << "day: ";
340  Printer<uint8_t>::stream(s, indent + " ", v.day);
341  s << indent << "hour: ";
342  Printer<uint8_t>::stream(s, indent + " ", v.hour);
343  s << indent << "minute: ";
344  Printer<uint8_t>::stream(s, indent + " ", v.minute);
345  s << indent << "second: ";
346  Printer<uint8_t>::stream(s, indent + " ", v.second);
347  s << indent << "microsecond: ";
348  Printer<uint32_t>::stream(s, indent + " ", v.microsecond);
349  }
350 };
351 
352 } // namespace message_operations
353 } // namespace roswrap
354 
355 #endif // SICK_SCAN_MESSAGE_LFERECFIELDMSG_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::LFErecFieldMsg_::_field_result_mrs_type
uint8_t _field_result_mrs_type
Definition: LFErecFieldMsg.h:88
roswrap::message_traits::DataType< ::sick_scan_xd::LFErecFieldMsg_< ContainerAllocator > >::value
static const char * value()
Definition: LFErecFieldMsg.h:227
multiscan_pcap_player.indent
indent
Definition: multiscan_pcap_player.py:252
roswrap::message_traits::MD5Sum< ::sick_scan_xd::LFErecFieldMsg_< ContainerAllocator > >::value
static const char * value(const ::sick_scan_xd::LFErecFieldMsg_< ContainerAllocator > &)
Definition: LFErecFieldMsg.h:219
sick_scan_xd::LFErecFieldMsg_::time_state
_time_state_type time_state
Definition: LFErecFieldMsg.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::LFErecFieldMsg_::sys_count
_sys_count_type sys_count
Definition: LFErecFieldMsg.h:74
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::LFErecFieldMsgConstPtr
std::shared_ptr< ::sick_scan_xd::LFErecFieldMsg const > LFErecFieldMsgConstPtr
Definition: LFErecFieldMsg.h:127
sick_scan_xd::LFErecFieldMsg_::_angle_scale_factor_type
uint32_t _angle_scale_factor_type
Definition: LFErecFieldMsg.h:82
sick_scan_xd::LFErecFieldMsg_::year
_year_type year
Definition: LFErecFieldMsg.h:95
const
#define const
Definition: getopt.c:38
sick_scan_xd::LFErecFieldMsg_::_sys_count_type
uint32_t _sys_count_type
Definition: LFErecFieldMsg.h:73
s
XmlRpcServer s
sick_scan_xd::LFErecFieldMsg_::_day_type
uint8_t _day_type
Definition: LFErecFieldMsg.h:100
roswrap::message_traits::Definition< ::sick_scan_xd::LFErecFieldMsg_< ContainerAllocator > >::value
static const char * value()
Definition: LFErecFieldMsg.h:238
sick_scan_xd::LFErecFieldMsg_::Ptr
std::shared_ptr< ::sick_scan_xd::LFErecFieldMsg_< ContainerAllocator > > Ptr
Definition: LFErecFieldMsg.h:119
sick_scan_xd::LFErecFieldMsg_
Definition: LFErecFieldMsg.h:23
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
sick_scan_xd::LFErecFieldMsg_::_minute_type
uint8_t _minute_type
Definition: LFErecFieldMsg.h:106
sick_scan_xd::LFErecFieldMsg_::Type
LFErecFieldMsg_< ContainerAllocator > Type
Definition: LFErecFieldMsg.h:25
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::LFErecFieldMsg_::LFErecFieldMsg_
LFErecFieldMsg_(const ContainerAllocator &_alloc)
Definition: LFErecFieldMsg.h:45
sick_scan_xd::LFErecFieldMsg_::_field_index_type
uint8_t _field_index_type
Definition: LFErecFieldMsg.h:70
sick_scan_xd
Definition: abstract_parser.cpp:65
sick_scan_xd::LFErecFieldMsg_::angle_scale_offset
_angle_scale_offset_type angle_scale_offset
Definition: LFErecFieldMsg.h:86
roswrap::message_traits::DataType
Specialize to provide the datatype for a message.
Definition: message_traits.h:135
sick_scan_xd::LFErecFieldMsg_::_hour_type
uint8_t _hour_type
Definition: LFErecFieldMsg.h:103
sick_scan_xd::LFErecFieldMsg_::_month_type
uint8_t _month_type
Definition: LFErecFieldMsg.h:97
sick_scan_xd::LFErecFieldMsg_::microsecond
_microsecond_type microsecond
Definition: LFErecFieldMsg.h:113
roswrap::message_traits::Definition
Specialize to provide the definition for a message.
Definition: message_traits.h:152
sick_scan_xd::LFErecFieldMsg_::month
_month_type month
Definition: LFErecFieldMsg.h:98
sick_scan_xd::LFErecFieldMsg_::day
_day_type day
Definition: LFErecFieldMsg.h:101
roswrap::message_traits::MD5Sum< ::sick_scan_xd::LFErecFieldMsg_< ContainerAllocator > >::value
static const char * value()
Definition: LFErecFieldMsg.h:214
sick_scan_xd::LFErecFieldMsg_::_second_type
uint8_t _second_type
Definition: LFErecFieldMsg.h:109
sick_scan_xd::LFErecFieldMsg_::dist_scale_factor
_dist_scale_factor_type dist_scale_factor
Definition: LFErecFieldMsg.h:77
sick_scan_xd::LFErecFieldMsg_::field_result_mrs
_field_result_mrs_type field_result_mrs
Definition: LFErecFieldMsg.h:89
sick_scan_xd::LFErecFieldMsg_::angle_scale_factor
_angle_scale_factor_type angle_scale_factor
Definition: LFErecFieldMsg.h:83
sick_scan_xd::LFErecFieldMsg_::field_index
_field_index_type field_index
Definition: LFErecFieldMsg.h:71
sick_scan_xd::LFErecFieldMsg_::_angle_scale_offset_type
int32_t _angle_scale_offset_type
Definition: LFErecFieldMsg.h:85
sick_scan_xd::LFErecFieldMsg_::_microsecond_type
uint32_t _microsecond_type
Definition: LFErecFieldMsg.h:112
sick_scan_xd::LFErecFieldMsg_::version_number
_version_number_type version_number
Definition: LFErecFieldMsg.h:68
sick_scan_xd::LFErecFieldMsg_::hour
_hour_type hour
Definition: LFErecFieldMsg.h:104
roswrap
Definition: param_modi.cpp:41
roswrap::message_operations::Printer
Definition: message_operations.h:40
roswrap::message_traits::Definition< ::sick_scan_xd::LFErecFieldMsg_< ContainerAllocator > >::value
static const char * value(const ::sick_scan_xd::LFErecFieldMsg_< ContainerAllocator > &)
Definition: LFErecFieldMsg.h:268
sick_scan_xd::LFErecFieldMsg
::sick_scan_xd::LFErecFieldMsg_< std::allocator< void > > LFErecFieldMsg
Definition: LFErecFieldMsg.h:124
sick_scan_xd::LFErecFieldMsg_::ConstPtr
std::shared_ptr< ::sick_scan_xd::LFErecFieldMsg_< ContainerAllocator > const > ConstPtr
Definition: LFErecFieldMsg.h:120
sick_scan_xd::LFErecFieldMsg_::second
_second_type second
Definition: LFErecFieldMsg.h:110
sick_scan_xd::LFErecFieldMsg_::_dist_scale_factor_type
float _dist_scale_factor_type
Definition: LFErecFieldMsg.h:76
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::LFErecFieldMsg_::_year_type
uint16_t _year_type
Definition: LFErecFieldMsg.h:94
roswrap::message_traits::DataType< ::sick_scan_xd::LFErecFieldMsg_< ContainerAllocator > >::value
static const char * value(const ::sick_scan_xd::LFErecFieldMsg_< ContainerAllocator > &)
Definition: LFErecFieldMsg.h:232
sick_scan_xd::LFErecFieldMsg_::_time_state_type
uint16_t _time_state_type
Definition: LFErecFieldMsg.h:91
roswrap::message_traits::IsMessage
Am I message or not.
Definition: message_traits.h:112
sick_scan_xd::LFErecFieldMsg_::_version_number_type
uint16_t _version_number_type
Definition: LFErecFieldMsg.h:67
sick_scan_xd::LFErecFieldMsg_::minute
_minute_type minute
Definition: LFErecFieldMsg.h:107
roswrap::message_operations::Printer< ::sick_scan_xd::LFErecFieldMsg_< ContainerAllocator > >::stream
static void stream(Stream &s, const std::string &indent, const ::sick_scan_xd::LFErecFieldMsg_< ContainerAllocator > &v)
Definition: LFErecFieldMsg.h:315
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_base.h
roswrap::serialization::Stream
Stream base-class, provides common functionality for IStream and OStream.
Definition: serialization.h:705
sick_scan_xd::LFErecFieldMsgPtr
std::shared_ptr< ::sick_scan_xd::LFErecFieldMsg > LFErecFieldMsgPtr
Definition: LFErecFieldMsg.h:126
sick_scan_xd::LFErecFieldMsg_::_dist_scale_offset_type
float _dist_scale_offset_type
Definition: LFErecFieldMsg.h:79
sick_scan_xd::LFErecFieldMsg_::dist_scale_offset
_dist_scale_offset_type dist_scale_offset
Definition: LFErecFieldMsg.h:80
roswrap::serialization::Serializer< ::sick_scan_xd::LFErecFieldMsg_< ContainerAllocator > >::allInOne
static void allInOne(Stream &stream, T m)
Definition: LFErecFieldMsg.h:281
sick_scan_xd::LFErecFieldMsg_::LFErecFieldMsg_
LFErecFieldMsg_()
Definition: LFErecFieldMsg.h:27


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