Go to the documentation of this file.
6 #ifndef SICK_SCAN_MESSAGE_LFERECFIELDMSG_H
7 #define SICK_SCAN_MESSAGE_LFERECFIELDMSG_H
14 #include <ros/types.h>
15 #include <ros/serialization.h>
16 #include <ros/builtin_message_traits.h>
17 #include <ros/message_operations.h>
22 template <
class ContainerAllocator>
119 typedef std::shared_ptr< ::sick_scan_xd::LFErecFieldMsg_<ContainerAllocator> >
Ptr;
120 typedef std::shared_ptr< ::sick_scan_xd::LFErecFieldMsg_<ContainerAllocator>
const>
ConstPtr;
133 template<
typename ContainerAllocator>
134 std::ostream&
operator<<(std::ostream& s, const ::sick_scan_xd::LFErecFieldMsg_<ContainerAllocator> & v)
141 template<
typename ContainerAllocator1,
typename ContainerAllocator2>
142 bool operator==(const ::sick_scan_xd::LFErecFieldMsg_<ContainerAllocator1> & lhs, const ::sick_scan_xd::LFErecFieldMsg_<ContainerAllocator2> & rhs)
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;
162 template<
typename ContainerAllocator1,
typename ContainerAllocator2>
163 bool operator!=(const ::sick_scan_xd::LFErecFieldMsg_<ContainerAllocator1> & lhs, const ::sick_scan_xd::LFErecFieldMsg_<ContainerAllocator2> & rhs)
165 return !(lhs == rhs);
173 namespace message_traits
180 template <
class ContainerAllocator>
185 template <
class ContainerAllocator>
190 template <
class ContainerAllocator>
195 template <
class ContainerAllocator>
200 template <
class ContainerAllocator>
205 template <
class ContainerAllocator>
211 template<
class ContainerAllocator>
216 return "268600f47eb96b8f384e54c8bc6e18f6";
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;
224 template<
class ContainerAllocator>
229 return "sick_scan/LFErecFieldMsg";
232 static const char*
value(const ::sick_scan_xd::LFErecFieldMsg_<ContainerAllocator>&) {
return value(); }
235 template<
class ContainerAllocator>
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"
248 "uint16 version_number\n"
249 "uint8 field_index\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"
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"
268 static const char*
value(const ::sick_scan_xd::LFErecFieldMsg_<ContainerAllocator>&) {
return value(); }
276 namespace serialization
281 template<
typename Stream,
typename T>
inline static void allInOne(
Stream& stream, T m)
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);
293 stream.next(m.month);
296 stream.next(m.minute);
297 stream.next(m.second);
298 stream.next(m.microsecond);
309 namespace message_operations
312 template<
class ContainerAllocator>
315 template<
typename Stream>
static void stream(Stream& s,
const std::string&
indent, const ::sick_scan_xd::LFErecFieldMsg_<ContainerAllocator>& v)
317 s <<
indent <<
"version_number: ";
319 s <<
indent <<
"field_index: ";
323 s <<
indent <<
"dist_scale_factor: ";
325 s <<
indent <<
"dist_scale_offset: ";
327 s <<
indent <<
"angle_scale_factor: ";
329 s <<
indent <<
"angle_scale_offset: ";
331 s <<
indent <<
"field_result_mrs: ";
347 s <<
indent <<
"microsecond: ";
355 #endif // SICK_SCAN_MESSAGE_LFERECFIELDMSG_H
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
std::ostream & operator<<(std::ostream &s, const ::sick_scan_xd::ColaMsgSrvRequest_< ContainerAllocator > &v)
uint8_t _field_result_mrs_type
static const char * value()
static const char * value(const ::sick_scan_xd::LFErecFieldMsg_< ContainerAllocator > &)
_time_state_type time_state
bool operator!=(const ::sick_scan_xd::ColaMsgSrvRequest_< ContainerAllocator1 > &lhs, const ::sick_scan_xd::ColaMsgSrvRequest_< ContainerAllocator2 > &rhs)
Templated serialization class. Default implementation provides backwards compatibility with old messa...
_sys_count_type sys_count
std::shared_ptr< ::sick_scan_xd::LFErecFieldMsg const > LFErecFieldMsgConstPtr
uint32_t _angle_scale_factor_type
static const char * value()
std::shared_ptr< ::sick_scan_xd::LFErecFieldMsg_< ContainerAllocator > > Ptr
static void stream(Stream &s, const std::string &indent, const M &value)
A fixed-size datatype is one whose size is constant, i.e. it has no variable-length arrays or strings...
LFErecFieldMsg_< ContainerAllocator > Type
#define ROS_DECLARE_ALLINONE_SERIALIZER
Declare your serializer to use an allInOne member instead of requiring 3 different serialization func...
LFErecFieldMsg_(const ContainerAllocator &_alloc)
uint8_t _field_index_type
_angle_scale_offset_type angle_scale_offset
Specialize to provide the datatype for a message.
_microsecond_type microsecond
Specialize to provide the definition for a message.
static const char * value()
_dist_scale_factor_type dist_scale_factor
_field_result_mrs_type field_result_mrs
_angle_scale_factor_type angle_scale_factor
_field_index_type field_index
int32_t _angle_scale_offset_type
uint32_t _microsecond_type
_version_number_type version_number
static const char * value(const ::sick_scan_xd::LFErecFieldMsg_< ContainerAllocator > &)
::sick_scan_xd::LFErecFieldMsg_< std::allocator< void > > LFErecFieldMsg
std::shared_ptr< ::sick_scan_xd::LFErecFieldMsg_< ContainerAllocator > const > ConstPtr
float _dist_scale_factor_type
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
Specialize to provide the md5sum for a message.
static const char * value(const ::sick_scan_xd::LFErecFieldMsg_< ContainerAllocator > &)
uint16_t _time_state_type
uint16_t _version_number_type
static void stream(Stream &s, const std::string &indent, const ::sick_scan_xd::LFErecFieldMsg_< ContainerAllocator > &v)
bool operator==(const ::sick_scan_xd::ColaMsgSrvRequest_< ContainerAllocator1 > &lhs, const ::sick_scan_xd::ColaMsgSrvRequest_< ContainerAllocator2 > &rhs)
Stream base-class, provides common functionality for IStream and OStream.
std::shared_ptr< ::sick_scan_xd::LFErecFieldMsg > LFErecFieldMsgPtr
float _dist_scale_offset_type
_dist_scale_offset_type dist_scale_offset
static void allInOne(Stream &stream, T m)
sick_scan_xd
Author(s): Michael Lehning
, Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:08