LFErecMsg.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/LFErecMsg.msg
3 // DO NOT EDIT!
4 
5 
6 #ifndef SICK_SCAN_MESSAGE_LFERECMSG_H
7 #define SICK_SCAN_MESSAGE_LFERECMSG_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>
21 
22 namespace sick_scan_xd
23 {
24 template <class ContainerAllocator>
25 struct LFErecMsg_
26 {
28 
30  : header()
31  , fields_number(0)
32  , fields() {
33  }
34  LFErecMsg_(const ContainerAllocator& _alloc)
35  : header(_alloc)
36  , fields_number(0)
37  , fields(_alloc) {
38  (void)_alloc;
39  }
40 
41 
42 
43  typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
45 
46  typedef uint16_t _fields_number_type;
48 
49  typedef std::vector< ::sick_scan_xd::LFErecFieldMsg_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::sick_scan_xd::LFErecFieldMsg_<ContainerAllocator> >::other > _fields_type;
51 
52 
53 
54 
55 
56  typedef std::shared_ptr< ::sick_scan_xd::LFErecMsg_<ContainerAllocator> > Ptr;
57  typedef std::shared_ptr< ::sick_scan_xd::LFErecMsg_<ContainerAllocator> const> ConstPtr;
58 
59 }; // struct LFErecMsg_
60 
61 typedef ::sick_scan_xd::LFErecMsg_<std::allocator<void> > LFErecMsg;
62 
63 typedef std::shared_ptr< ::sick_scan_xd::LFErecMsg > LFErecMsgPtr;
64 typedef std::shared_ptr< ::sick_scan_xd::LFErecMsg const> LFErecMsgConstPtr;
65 
66 // constants requiring out of line definition
67 
68 
69 
70 template<typename ContainerAllocator>
71 std::ostream& operator<<(std::ostream& s, const ::sick_scan_xd::LFErecMsg_<ContainerAllocator> & v)
72 {
74 return s;
75 }
76 
77 
78 template<typename ContainerAllocator1, typename ContainerAllocator2>
79 bool operator==(const ::sick_scan_xd::LFErecMsg_<ContainerAllocator1> & lhs, const ::sick_scan_xd::LFErecMsg_<ContainerAllocator2> & rhs)
80 {
81  return lhs.header == rhs.header &&
82  lhs.fields_number == rhs.fields_number &&
83  lhs.fields == rhs.fields;
84 }
85 
86 template<typename ContainerAllocator1, typename ContainerAllocator2>
87 bool operator!=(const ::sick_scan_xd::LFErecMsg_<ContainerAllocator1> & lhs, const ::sick_scan_xd::LFErecMsg_<ContainerAllocator2> & rhs)
88 {
89  return !(lhs == rhs);
90 }
91 
92 
93 } // namespace sick_scan_xd
94 
95 namespace roswrap
96 {
97 namespace message_traits
98 {
99 
100 
101 
102 
103 
104 template <class ContainerAllocator>
105 struct IsFixedSize< ::sick_scan_xd::LFErecMsg_<ContainerAllocator> >
106  : FalseType
107  { };
108 
109 template <class ContainerAllocator>
110 struct IsFixedSize< ::sick_scan_xd::LFErecMsg_<ContainerAllocator> const>
111  : FalseType
112  { };
113 
114 template <class ContainerAllocator>
115 struct IsMessage< ::sick_scan_xd::LFErecMsg_<ContainerAllocator> >
116  : TrueType
117  { };
118 
119 template <class ContainerAllocator>
120 struct IsMessage< ::sick_scan_xd::LFErecMsg_<ContainerAllocator> const>
121  : TrueType
122  { };
123 
124 template <class ContainerAllocator>
125 struct HasHeader< ::sick_scan_xd::LFErecMsg_<ContainerAllocator> >
126  : TrueType
127  { };
128 
129 template <class ContainerAllocator>
130 struct HasHeader< ::sick_scan_xd::LFErecMsg_<ContainerAllocator> const>
131  : TrueType
132  { };
133 
134 
135 template<class ContainerAllocator>
136 struct MD5Sum< ::sick_scan_xd::LFErecMsg_<ContainerAllocator> >
137 {
138  static const char* value()
139  {
140  return "41b1ad74a61b1c63ee0183843d182e5b";
141  }
142 
143  static const char* value(const ::sick_scan_xd::LFErecMsg_<ContainerAllocator>&) { return value(); }
144  static const uint64_t static_value1 = 0x41b1ad74a61b1c63ULL;
145  static const uint64_t static_value2 = 0xee0183843d182e5bULL;
146 };
147 
148 template<class ContainerAllocator>
149 struct DataType< ::sick_scan_xd::LFErecMsg_<ContainerAllocator> >
150 {
151  static const char* value()
152  {
153  return "sick_scan/LFErecMsg";
154  }
155 
156  static const char* value(const ::sick_scan_xd::LFErecMsg_<ContainerAllocator>&) { return value(); }
157 };
158 
159 template<class ContainerAllocator>
160 struct Definition< ::sick_scan_xd::LFErecMsg_<ContainerAllocator> >
161 {
162  static const char* value()
163  {
164  return "# This message contains a single field of a \"sSN LFErec\" message of a Sick laser scanner as an ros message.\n"
165 "# See https://github.com/SICKAG/libsick_ldmrs/blob/master/src/sopas/LdmrsSopasLayer.cpp lines 1414 ff.\n"
166 "# Field result field_result_mrs is 0 (invalid/incorrect), 1 (free/clear) or 2 (infringed)\n"
167 "# Note: field indices are sorted in reverse order, i.e. with 2 configured fields, we typically have\n"
168 "# output_msg.fields[0].field_index = 1, output_msg.fields[0].field_result_mrs = 0 (invalid)\n"
169 "# output_msg.fields[1].field_index = 2, output_msg.fields[1].field_result_mrs = 1 or 2 (clear=1 or infringed=2)\n"
170 "# output_msg.fields[2].field_index = 3, output_msg.fields[2].field_result_mrs = 1 or 2 (clear=1 or infringed=2)\n"
171 "\n"
172 "Header header\n"
173 "\n"
174 "uint16 fields_number # number of fields\n"
175 "sick_scan/LFErecFieldMsg[] fields # 3 fields for TiM871S\n"
176 "\n"
177 "================================================================================\n"
178 "MSG: std_msgs/Header\n"
179 "# Standard metadata for higher-level stamped data types.\n"
180 "# This is generally used to communicate timestamped data \n"
181 "# in a particular coordinate frame.\n"
182 "# \n"
183 "# sequence ID: consecutively increasing ID \n"
184 "uint32 seq\n"
185 "#Two-integer timestamp that is expressed as:\n"
186 "# * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n"
187 "# * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n"
188 "# time-handling sugar is provided by the client library\n"
189 "time stamp\n"
190 "#Frame this data is associated with\n"
191 "string frame_id\n"
192 "\n"
193 "================================================================================\n"
194 "MSG: sick_scan/LFErecFieldMsg\n"
195 "# This message contains a single field of a \"sSN LFErec\" message of a Sick laser scanner as an ros message.\n"
196 "# See https://github.com/SICKAG/libsick_ldmrs/blob/master/src/sopas/LdmrsSopasLayer.cpp lines 1414 ff.\n"
197 "# Field result field_result_mrs is 0 (invalid/incorrect), 1 (free/clear) or 2 (infringed)\n"
198 "# Note: field indices are sorted in reverse order, i.e. with 2 configured fields, we typically have\n"
199 "# output_msg.fields[0].field_index = 1, output_msg.fields[0].field_result_mrs = 0 (invalid)\n"
200 "# output_msg.fields[1].field_index = 2, output_msg.fields[1].field_result_mrs = 1 or 2 (clear=1 or infringed=2)\n"
201 "# output_msg.fields[2].field_index = 3, output_msg.fields[2].field_result_mrs = 1 or 2 (clear=1 or infringed=2)\n"
202 "\n"
203 "uint16 version_number\n"
204 "uint8 field_index\n"
205 "uint32 sys_count\n"
206 "float32 dist_scale_factor\n"
207 "float32 dist_scale_offset\n"
208 "uint32 angle_scale_factor\n"
209 "int32 angle_scale_offset\n"
210 "uint8 field_result_mrs # field result is 0 (invalid/incorrect), 1 (free/clear) or 2 (infringed)\n"
211 "# Time block\n"
212 "uint16 time_state # No time data: 0, Time data: 1\n"
213 "uint16 year # f.e. 2021\n"
214 "uint8 month # 1 ... 12\n"
215 "uint8 day # 1 ... 31\n"
216 "uint8 hour # 0 ... 23\n"
217 "uint8 minute # 0 ... 59\n"
218 "uint8 second # 0 ... 59\n"
219 "uint32 microsecond # 0 ... 999999\n"
220 ;
221  }
222 
223  static const char* value(const ::sick_scan_xd::LFErecMsg_<ContainerAllocator>&) { return value(); }
224 };
225 
226 } // namespace message_traits
227 } // namespace roswrap
228 
229 namespace roswrap
230 {
231 namespace serialization
232 {
233 
234  template<class ContainerAllocator> struct Serializer< ::sick_scan_xd::LFErecMsg_<ContainerAllocator> >
235  {
236  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
237  {
238  stream.next(m.header);
239  stream.next(m.fields_number);
240  stream.next(m.fields);
241  }
242 
244  }; // struct LFErecMsg_
245 
246 } // namespace serialization
247 } // namespace roswrap
248 
249 namespace roswrap
250 {
251 namespace message_operations
252 {
253 
254 template<class ContainerAllocator>
255 struct Printer< ::sick_scan_xd::LFErecMsg_<ContainerAllocator> >
256 {
257  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sick_scan_xd::LFErecMsg_<ContainerAllocator>& v)
258  {
259  s << indent << "header: ";
260  s << std::endl;
262  s << indent << "fields_number: ";
263  Printer<uint16_t>::stream(s, indent + " ", v.fields_number);
264  s << indent << "fields[]" << std::endl;
265  for (size_t i = 0; i < v.fields.size(); ++i)
266  {
267  s << indent << " fields[" << i << "]: ";
268  s << std::endl;
269  s << indent;
271  }
272  }
273 };
274 
275 } // namespace message_operations
276 } // namespace roswrap
277 
278 #endif // SICK_SCAN_MESSAGE_LFERECMSG_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
roswrap::message_operations::Printer< ::sick_scan_xd::LFErecMsg_< ContainerAllocator > >::stream
static void stream(Stream &s, const std::string &indent, const ::sick_scan_xd::LFErecMsg_< ContainerAllocator > &v)
Definition: LFErecMsg.h:257
multiscan_pcap_player.indent
indent
Definition: multiscan_pcap_player.py:252
sick_scan_xd::LFErecMsg_::Ptr
std::shared_ptr< ::sick_scan_xd::LFErecMsg_< ContainerAllocator > > Ptr
Definition: LFErecMsg.h:56
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
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::LFErecMsg_::_fields_number_type
uint16_t _fields_number_type
Definition: LFErecMsg.h:46
const
#define const
Definition: getopt.c:38
sick_scan_xd::LFErecMsg_::ConstPtr
std::shared_ptr< ::sick_scan_xd::LFErecMsg_< ContainerAllocator > const > ConstPtr
Definition: LFErecMsg.h:57
s
XmlRpcServer s
roswrap::message_traits::Definition< ::sick_scan_xd::LFErecMsg_< ContainerAllocator > >::value
static const char * value()
Definition: LFErecMsg.h:162
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::LFErecMsg_::_header_type
::std_msgs::Header_< ContainerAllocator > _header_type
Definition: LFErecMsg.h:43
ros::message_operations::Printer
roswrap::message_traits::DataType< ::sick_scan_xd::LFErecMsg_< ContainerAllocator > >::value
static const char * value()
Definition: LFErecMsg.h:151
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
roswrap::message_traits::DataType
Specialize to provide the datatype for a message.
Definition: message_traits.h:135
sick_scan_xd::LFErecMsg
::sick_scan_xd::LFErecMsg_< std::allocator< void > > LFErecMsg
Definition: LFErecMsg.h:61
roswrap::message_traits::Definition
Specialize to provide the definition for a message.
Definition: message_traits.h:152
sick_scan_xd::LFErecMsg_::fields
_fields_type fields
Definition: LFErecMsg.h:50
sick_scan_xd::LFErecMsg_
Definition: LFErecMsg.h:25
sick_scan_xd::LFErecMsg_::LFErecMsg_
LFErecMsg_()
Definition: LFErecMsg.h:29
sick_scan_xd::LFErecMsg_::LFErecMsg_
LFErecMsg_(const ContainerAllocator &_alloc)
Definition: LFErecMsg.h:34
sick_scan_xd::LFErecMsgConstPtr
std::shared_ptr< ::sick_scan_xd::LFErecMsg const > LFErecMsgConstPtr
Definition: LFErecMsg.h:64
sick_scan_xd::LFErecMsgPtr
std::shared_ptr< ::sick_scan_xd::LFErecMsg > LFErecMsgPtr
Definition: LFErecMsg.h:63
roswrap
Definition: param_modi.cpp:41
roswrap::message_traits::MD5Sum< ::sick_scan_xd::LFErecMsg_< ContainerAllocator > >::value
static const char * value()
Definition: LFErecMsg.h:138
roswrap::message_operations::Printer
Definition: message_operations.h:40
std_msgs::Header_
Definition: Header.h:23
sick_scan_xd::LFErecMsg_::_fields_type
std::vector< ::sick_scan_xd::LFErecFieldMsg_< ContainerAllocator >, typename ContainerAllocator::template rebind< ::sick_scan_xd::LFErecFieldMsg_< ContainerAllocator > >::other > _fields_type
Definition: LFErecMsg.h:49
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
roswrap::message_traits::DataType< ::sick_scan_xd::LFErecMsg_< ContainerAllocator > >::value
static const char * value(const ::sick_scan_xd::LFErecMsg_< ContainerAllocator > &)
Definition: LFErecMsg.h:156
LFErecFieldMsg.h
roswrap::message_traits::IsMessage
Am I message or not.
Definition: message_traits.h:112
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
roswrap::serialization::Serializer< ::sick_scan_xd::LFErecMsg_< ContainerAllocator > >::allInOne
static void allInOne(Stream &stream, T m)
Definition: LFErecMsg.h:236
sick_scan_xd::LFErecMsg_::fields_number
_fields_number_type fields_number
Definition: LFErecMsg.h:47
sick_scan_xd::LFErecMsg_::header
_header_type header
Definition: LFErecMsg.h:44
Header.h
roswrap::message_traits::Definition< ::sick_scan_xd::LFErecMsg_< ContainerAllocator > >::value
static const char * value(const ::sick_scan_xd::LFErecMsg_< ContainerAllocator > &)
Definition: LFErecMsg.h:223
sick_scan_xd::LFErecMsg_::Type
LFErecMsg_< ContainerAllocator > Type
Definition: LFErecMsg.h:27
roswrap::message_traits::MD5Sum< ::sick_scan_xd::LFErecMsg_< ContainerAllocator > >::value
static const char * value(const ::sick_scan_xd::LFErecMsg_< ContainerAllocator > &)
Definition: LFErecMsg.h:143


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