SickLocResultPortHeaderMsg.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/SickLocResultPortHeaderMsg.msg
3 // DO NOT EDIT!
4 
5 
6 #ifndef SICK_SCAN_MESSAGE_SICKLOCRESULTPORTHEADERMSG_H
7 #define SICK_SCAN_MESSAGE_SICKLOCRESULTPORTHEADERMSG_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  : magicword(0)
29  , length(0)
30  , payloadtype(0)
31  , payloadversion(0)
32  , ordernumber(0)
33  , serialnumber(0)
34  , fw_version()
35  , telegramcounter(0)
36  , systemtime(0) {
37  }
38  SickLocResultPortHeaderMsg_(const ContainerAllocator& _alloc)
39  : magicword(0)
40  , length(0)
41  , payloadtype(0)
42  , payloadversion(0)
43  , ordernumber(0)
44  , serialnumber(0)
45  , fw_version(_alloc)
46  , telegramcounter(0)
47  , systemtime(0) {
48  (void)_alloc;
49  }
50 
51 
52 
53  typedef uint32_t _magicword_type;
55 
56  typedef uint32_t _length_type;
58 
59  typedef uint16_t _payloadtype_type;
61 
62  typedef uint16_t _payloadversion_type;
64 
65  typedef uint32_t _ordernumber_type;
67 
68  typedef uint32_t _serialnumber_type;
70 
71  typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > _fw_version_type;
73 
74  typedef uint32_t _telegramcounter_type;
76 
77  typedef uint64_t _systemtime_type;
79 
80 
81 
82 
83 
84  typedef std::shared_ptr< ::sick_scan_xd::SickLocResultPortHeaderMsg_<ContainerAllocator> > Ptr;
85  typedef std::shared_ptr< ::sick_scan_xd::SickLocResultPortHeaderMsg_<ContainerAllocator> const> ConstPtr;
86 
87 }; // struct SickLocResultPortHeaderMsg_
88 
89 typedef ::sick_scan_xd::SickLocResultPortHeaderMsg_<std::allocator<void> > SickLocResultPortHeaderMsg;
90 
91 typedef std::shared_ptr< ::sick_scan_xd::SickLocResultPortHeaderMsg > SickLocResultPortHeaderMsgPtr;
92 typedef std::shared_ptr< ::sick_scan_xd::SickLocResultPortHeaderMsg const> SickLocResultPortHeaderMsgConstPtr;
93 
94 // constants requiring out of line definition
95 
96 
97 
98 template<typename ContainerAllocator>
99 std::ostream& operator<<(std::ostream& s, const ::sick_scan_xd::SickLocResultPortHeaderMsg_<ContainerAllocator> & v)
100 {
102 return s;
103 }
104 
105 
106 template<typename ContainerAllocator1, typename ContainerAllocator2>
107 bool operator==(const ::sick_scan_xd::SickLocResultPortHeaderMsg_<ContainerAllocator1> & lhs, const ::sick_scan_xd::SickLocResultPortHeaderMsg_<ContainerAllocator2> & rhs)
108 {
109  return lhs.magicword == rhs.magicword &&
110  lhs.length == rhs.length &&
111  lhs.payloadtype == rhs.payloadtype &&
112  lhs.payloadversion == rhs.payloadversion &&
113  lhs.ordernumber == rhs.ordernumber &&
114  lhs.serialnumber == rhs.serialnumber &&
115  lhs.fw_version == rhs.fw_version &&
116  lhs.telegramcounter == rhs.telegramcounter &&
117  lhs.systemtime == rhs.systemtime;
118 }
119 
120 template<typename ContainerAllocator1, typename ContainerAllocator2>
121 bool operator!=(const ::sick_scan_xd::SickLocResultPortHeaderMsg_<ContainerAllocator1> & lhs, const ::sick_scan_xd::SickLocResultPortHeaderMsg_<ContainerAllocator2> & rhs)
122 {
123  return !(lhs == rhs);
124 }
125 
126 
127 } // namespace sick_scan_xd
128 
129 namespace roswrap
130 {
131 namespace message_traits
132 {
133 
134 
135 
136 
137 
138 template <class ContainerAllocator>
140  : FalseType
141  { };
142 
143 template <class ContainerAllocator>
145  : FalseType
146  { };
147 
148 template <class ContainerAllocator>
150  : TrueType
151  { };
152 
153 template <class ContainerAllocator>
155  : TrueType
156  { };
157 
158 template <class ContainerAllocator>
160  : FalseType
161  { };
162 
163 template <class ContainerAllocator>
165  : FalseType
166  { };
167 
168 
169 template<class ContainerAllocator>
170 struct MD5Sum< ::sick_scan_xd::SickLocResultPortHeaderMsg_<ContainerAllocator> >
171 {
172  static const char* value()
173  {
174  return "974a1ebc4ebbc21c0773fa36aa0f0469";
175  }
176 
177  static const char* value(const ::sick_scan_xd::SickLocResultPortHeaderMsg_<ContainerAllocator>&) { return value(); }
178  static const uint64_t static_value1 = 0x974a1ebc4ebbc21cULL;
179  static const uint64_t static_value2 = 0x0773fa36aa0f0469ULL;
180 };
181 
182 template<class ContainerAllocator>
184 {
185  static const char* value()
186  {
187  return "sick_scan/SickLocResultPortHeaderMsg";
188  }
189 
190  static const char* value(const ::sick_scan_xd::SickLocResultPortHeaderMsg_<ContainerAllocator>&) { return value(); }
191 };
192 
193 template<class ContainerAllocator>
195 {
196  static const char* value()
197  {
198  return "# Definition of ros message SickLocResultPortHeaderMsg.\n"
199 "# SickLocResultPortHeaderMsg publishes the header of a result port telegram\n"
200 "# for sick localization (52 byte). See chapter 5.9 (\"About result port telegrams\")\n"
201 "# of the operation manual for further details.\n"
202 "\n"
203 "uint32 magicword # Magic word SICK (0x53 0x49 0x43 0x4B). Size: 4 × UInt8 = 4 byte\n"
204 "uint32 length # Length of telegram incl. header, payload, and trailer. Size: UInt32 = 4 byte\n"
205 "uint16 payloadtype # Payload type: 0x06c2 = Little Endian, 0x0642 = Big Endian. Size: UInt16 = 2 byte\n"
206 "uint16 payloadversion # Version of PayloadType structure. Size: UInt16 = 2 byte\n"
207 "uint32 ordernumber # Order number of the localization controller. Size: UInt32 = 4 byte\n"
208 "uint32 serialnumber # Serial number of the localization controller. Size: UInt32 = 4 byte\n"
209 "uint8[] fw_version # Software version of the localization controller. Size: 20 × UInt8 = 20 byte\n"
210 "uint32 telegramcounter # Telegram counter since last start-up. Size: UInt32 = 4 byte\n"
211 "uint64 systemtime # Not used. Size: NTP = 8 byte\n"
212 "\n"
213 ;
214  }
215 
216  static const char* value(const ::sick_scan_xd::SickLocResultPortHeaderMsg_<ContainerAllocator>&) { return value(); }
217 };
218 
219 } // namespace message_traits
220 } // namespace roswrap
221 
222 namespace roswrap
223 {
224 namespace serialization
225 {
226 
227  template<class ContainerAllocator> struct Serializer< ::sick_scan_xd::SickLocResultPortHeaderMsg_<ContainerAllocator> >
228  {
229  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
230  {
231  stream.next(m.magicword);
232  stream.next(m.length);
233  stream.next(m.payloadtype);
234  stream.next(m.payloadversion);
235  stream.next(m.ordernumber);
236  stream.next(m.serialnumber);
237  stream.next(m.fw_version);
238  stream.next(m.telegramcounter);
239  stream.next(m.systemtime);
240  }
241 
243  }; // struct SickLocResultPortHeaderMsg_
244 
245 } // namespace serialization
246 } // namespace roswrap
247 
248 namespace roswrap
249 {
250 namespace message_operations
251 {
252 
253 template<class ContainerAllocator>
254 struct Printer< ::sick_scan_xd::SickLocResultPortHeaderMsg_<ContainerAllocator> >
255 {
256  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sick_scan_xd::SickLocResultPortHeaderMsg_<ContainerAllocator>& v)
257  {
258  s << indent << "magicword: ";
259  Printer<uint32_t>::stream(s, indent + " ", v.magicword);
260  s << indent << "length: ";
261  Printer<uint32_t>::stream(s, indent + " ", v.length);
262  s << indent << "payloadtype: ";
263  Printer<uint16_t>::stream(s, indent + " ", v.payloadtype);
264  s << indent << "payloadversion: ";
265  Printer<uint16_t>::stream(s, indent + " ", v.payloadversion);
266  s << indent << "ordernumber: ";
267  Printer<uint32_t>::stream(s, indent + " ", v.ordernumber);
268  s << indent << "serialnumber: ";
269  Printer<uint32_t>::stream(s, indent + " ", v.serialnumber);
270  s << indent << "fw_version[]" << std::endl;
271  for (size_t i = 0; i < v.fw_version.size(); ++i)
272  {
273  s << indent << " fw_version[" << i << "]: ";
274  Printer<uint8_t>::stream(s, indent + " ", v.fw_version[i]);
275  }
276  s << indent << "telegramcounter: ";
277  Printer<uint32_t>::stream(s, indent + " ", v.telegramcounter);
278  s << indent << "systemtime: ";
279  Printer<uint64_t>::stream(s, indent + " ", v.systemtime);
280  }
281 };
282 
283 } // namespace message_operations
284 } // namespace roswrap
285 
286 #endif // SICK_SCAN_MESSAGE_SICKLOCRESULTPORTHEADERMSG_H
roswrap::message_traits::DataType< ::sick_scan_xd::SickLocResultPortHeaderMsg_< ContainerAllocator > >::value
static const char * value(const ::sick_scan_xd::SickLocResultPortHeaderMsg_< ContainerAllocator > &)
Definition: SickLocResultPortHeaderMsg.h:190
sick_scan_xd::SickLocResultPortHeaderMsg_::serialnumber
_serialnumber_type serialnumber
Definition: SickLocResultPortHeaderMsg.h:69
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::SickLocResultPortHeaderMsg_::_length_type
uint32_t _length_type
Definition: SickLocResultPortHeaderMsg.h:56
sick_scan_xd::SickLocResultPortHeaderMsg_::_serialnumber_type
uint32_t _serialnumber_type
Definition: SickLocResultPortHeaderMsg.h:68
sick_scan_xd::SickLocResultPortHeaderMsg_::ConstPtr
std::shared_ptr< ::sick_scan_xd::SickLocResultPortHeaderMsg_< ContainerAllocator > const > ConstPtr
Definition: SickLocResultPortHeaderMsg.h:85
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
sick_scan_xd::SickLocResultPortHeaderMsgConstPtr
std::shared_ptr< ::sick_scan_xd::SickLocResultPortHeaderMsg const > SickLocResultPortHeaderMsgConstPtr
Definition: SickLocResultPortHeaderMsg.h:92
roswrap::serialization::Serializer
Templated serialization class. Default implementation provides backwards compatibility with old messa...
Definition: serialization.h:120
roswrap::message_traits::Definition< ::sick_scan_xd::SickLocResultPortHeaderMsg_< ContainerAllocator > >::value
static const char * value()
Definition: SickLocResultPortHeaderMsg.h:196
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
const
#define const
Definition: getopt.c:38
s
XmlRpcServer s
roswrap::serialization::Serializer< ::sick_scan_xd::SickLocResultPortHeaderMsg_< ContainerAllocator > >::allInOne
static void allInOne(Stream &stream, T m)
Definition: SickLocResultPortHeaderMsg.h:229
sick_scan_xd::SickLocResultPortHeaderMsgPtr
std::shared_ptr< ::sick_scan_xd::SickLocResultPortHeaderMsg > SickLocResultPortHeaderMsgPtr
Definition: SickLocResultPortHeaderMsg.h:91
sick_scan_xd::SickLocResultPortHeaderMsg_::_payloadversion_type
uint16_t _payloadversion_type
Definition: SickLocResultPortHeaderMsg.h:62
sick_scan_xd::SickLocResultPortHeaderMsg_::systemtime
_systemtime_type systemtime
Definition: SickLocResultPortHeaderMsg.h:78
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::SickLocResultPortHeaderMsg_
Definition: SickLocResultPortHeaderMsg.h:23
sick_scan_xd::SickLocResultPortHeaderMsg_::_telegramcounter_type
uint32_t _telegramcounter_type
Definition: SickLocResultPortHeaderMsg.h:74
ros::message_operations::Printer
sick_scan_xd::SickLocResultPortHeaderMsg_::Type
SickLocResultPortHeaderMsg_< ContainerAllocator > Type
Definition: SickLocResultPortHeaderMsg.h:25
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::Definition< ::sick_scan_xd::SickLocResultPortHeaderMsg_< ContainerAllocator > >::value
static const char * value(const ::sick_scan_xd::SickLocResultPortHeaderMsg_< ContainerAllocator > &)
Definition: SickLocResultPortHeaderMsg.h:216
roswrap::message_traits::DataType
Specialize to provide the datatype for a message.
Definition: message_traits.h:135
sick_scan_xd::SickLocResultPortHeaderMsg_::SickLocResultPortHeaderMsg_
SickLocResultPortHeaderMsg_(const ContainerAllocator &_alloc)
Definition: SickLocResultPortHeaderMsg.h:38
roswrap::message_traits::MD5Sum< ::sick_scan_xd::SickLocResultPortHeaderMsg_< ContainerAllocator > >::value
static const char * value()
Definition: SickLocResultPortHeaderMsg.h:172
roswrap::message_traits::Definition
Specialize to provide the definition for a message.
Definition: message_traits.h:152
roswrap::message_traits::DataType< ::sick_scan_xd::SickLocResultPortHeaderMsg_< ContainerAllocator > >::value
static const char * value()
Definition: SickLocResultPortHeaderMsg.h:185
sick_scan_xd::SickLocResultPortHeaderMsg_::length
_length_type length
Definition: SickLocResultPortHeaderMsg.h:57
sick_scan_xd::SickLocResultPortHeaderMsg_::Ptr
std::shared_ptr< ::sick_scan_xd::SickLocResultPortHeaderMsg_< ContainerAllocator > > Ptr
Definition: SickLocResultPortHeaderMsg.h:84
roswrap
Definition: param_modi.cpp:41
roswrap::message_operations::Printer
Definition: message_operations.h:40
sick_scan_xd::SickLocResultPortHeaderMsg_::_payloadtype_type
uint16_t _payloadtype_type
Definition: SickLocResultPortHeaderMsg.h:59
roswrap::message_operations::Printer< ::sick_scan_xd::SickLocResultPortHeaderMsg_< ContainerAllocator > >::stream
static void stream(Stream &s, const std::string &indent, const ::sick_scan_xd::SickLocResultPortHeaderMsg_< ContainerAllocator > &v)
Definition: SickLocResultPortHeaderMsg.h:256
sick_scan_xd::SickLocResultPortHeaderMsg_::payloadversion
_payloadversion_type payloadversion
Definition: SickLocResultPortHeaderMsg.h:63
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::SickLocResultPortHeaderMsg_::payloadtype
_payloadtype_type payloadtype
Definition: SickLocResultPortHeaderMsg.h:60
sick_scan_xd::SickLocResultPortHeaderMsg_::_systemtime_type
uint64_t _systemtime_type
Definition: SickLocResultPortHeaderMsg.h:77
sick_scan_xd::SickLocResultPortHeaderMsg_::_magicword_type
uint32_t _magicword_type
Definition: SickLocResultPortHeaderMsg.h:53
roswrap::message_traits::IsMessage
Am I message or not.
Definition: message_traits.h:112
sick_scan_xd::SickLocResultPortHeaderMsg_::fw_version
_fw_version_type fw_version
Definition: SickLocResultPortHeaderMsg.h:72
sick_scan_xd::SickLocResultPortHeaderMsg_::magicword
_magicword_type magicword
Definition: SickLocResultPortHeaderMsg.h:54
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::SickLocResultPortHeaderMsg
::sick_scan_xd::SickLocResultPortHeaderMsg_< std::allocator< void > > SickLocResultPortHeaderMsg
Definition: SickLocResultPortHeaderMsg.h:89
sick_scan_base.h
roswrap::serialization::Stream
Stream base-class, provides common functionality for IStream and OStream.
Definition: serialization.h:705
roswrap::message_traits::MD5Sum< ::sick_scan_xd::SickLocResultPortHeaderMsg_< ContainerAllocator > >::value
static const char * value(const ::sick_scan_xd::SickLocResultPortHeaderMsg_< ContainerAllocator > &)
Definition: SickLocResultPortHeaderMsg.h:177
sick_scan_xd::SickLocResultPortHeaderMsg_::_ordernumber_type
uint32_t _ordernumber_type
Definition: SickLocResultPortHeaderMsg.h:65
sick_scan_xd::SickLocResultPortHeaderMsg_::ordernumber
_ordernumber_type ordernumber
Definition: SickLocResultPortHeaderMsg.h:66
sick_scan_xd::SickLocResultPortHeaderMsg_::SickLocResultPortHeaderMsg_
SickLocResultPortHeaderMsg_()
Definition: SickLocResultPortHeaderMsg.h:27
sick_scan_xd::SickLocResultPortHeaderMsg_::_fw_version_type
std::vector< uint8_t, typename ContainerAllocator::template rebind< uint8_t >::other > _fw_version_type
Definition: SickLocResultPortHeaderMsg.h:71
sick_scan_xd::SickLocResultPortHeaderMsg_::telegramcounter
_telegramcounter_type telegramcounter
Definition: SickLocResultPortHeaderMsg.h:75


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