SickLocResultPortCrcMsg.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/SickLocResultPortCrcMsg.msg
3 // DO NOT EDIT!
4 
5 
6 #ifndef SICK_SCAN_MESSAGE_SICKLOCRESULTPORTCRCMSG_H
7 #define SICK_SCAN_MESSAGE_SICKLOCRESULTPORTCRCMSG_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  : checksum(0) {
29  }
30  SickLocResultPortCrcMsg_(const ContainerAllocator& _alloc)
31  : checksum(0) {
32  (void)_alloc;
33  }
34 
35 
36 
37  typedef uint16_t _checksum_type;
39 
40 
41 
42 
43 
44  typedef std::shared_ptr< ::sick_scan_xd::SickLocResultPortCrcMsg_<ContainerAllocator> > Ptr;
45  typedef std::shared_ptr< ::sick_scan_xd::SickLocResultPortCrcMsg_<ContainerAllocator> const> ConstPtr;
46 
47 }; // struct SickLocResultPortCrcMsg_
48 
49 typedef ::sick_scan_xd::SickLocResultPortCrcMsg_<std::allocator<void> > SickLocResultPortCrcMsg;
50 
51 typedef std::shared_ptr< ::sick_scan_xd::SickLocResultPortCrcMsg > SickLocResultPortCrcMsgPtr;
52 typedef std::shared_ptr< ::sick_scan_xd::SickLocResultPortCrcMsg const> SickLocResultPortCrcMsgConstPtr;
53 
54 // constants requiring out of line definition
55 
56 
57 
58 template<typename ContainerAllocator>
59 std::ostream& operator<<(std::ostream& s, const ::sick_scan_xd::SickLocResultPortCrcMsg_<ContainerAllocator> & v)
60 {
62 return s;
63 }
64 
65 
66 template<typename ContainerAllocator1, typename ContainerAllocator2>
67 bool operator==(const ::sick_scan_xd::SickLocResultPortCrcMsg_<ContainerAllocator1> & lhs, const ::sick_scan_xd::SickLocResultPortCrcMsg_<ContainerAllocator2> & rhs)
68 {
69  return lhs.checksum == rhs.checksum;
70 }
71 
72 template<typename ContainerAllocator1, typename ContainerAllocator2>
73 bool operator!=(const ::sick_scan_xd::SickLocResultPortCrcMsg_<ContainerAllocator1> & lhs, const ::sick_scan_xd::SickLocResultPortCrcMsg_<ContainerAllocator2> & rhs)
74 {
75  return !(lhs == rhs);
76 }
77 
78 
79 } // namespace sick_scan_xd
80 
81 namespace roswrap
82 {
83 namespace message_traits
84 {
85 
86 
87 
88 
89 
90 template <class ContainerAllocator>
91 struct IsFixedSize< ::sick_scan_xd::SickLocResultPortCrcMsg_<ContainerAllocator> >
92  : TrueType
93  { };
94 
95 template <class ContainerAllocator>
97  : TrueType
98  { };
99 
100 template <class ContainerAllocator>
101 struct IsMessage< ::sick_scan_xd::SickLocResultPortCrcMsg_<ContainerAllocator> >
102  : TrueType
103  { };
104 
105 template <class ContainerAllocator>
107  : TrueType
108  { };
109 
110 template <class ContainerAllocator>
111 struct HasHeader< ::sick_scan_xd::SickLocResultPortCrcMsg_<ContainerAllocator> >
112  : FalseType
113  { };
114 
115 template <class ContainerAllocator>
117  : FalseType
118  { };
119 
120 
121 template<class ContainerAllocator>
122 struct MD5Sum< ::sick_scan_xd::SickLocResultPortCrcMsg_<ContainerAllocator> >
123 {
124  static const char* value()
125  {
126  return "737523c5a09c7e8b24d62bea27dfa343";
127  }
128 
129  static const char* value(const ::sick_scan_xd::SickLocResultPortCrcMsg_<ContainerAllocator>&) { return value(); }
130  static const uint64_t static_value1 = 0x737523c5a09c7e8bULL;
131  static const uint64_t static_value2 = 0x24d62bea27dfa343ULL;
132 };
133 
134 template<class ContainerAllocator>
135 struct DataType< ::sick_scan_xd::SickLocResultPortCrcMsg_<ContainerAllocator> >
136 {
137  static const char* value()
138  {
139  return "sick_scan/SickLocResultPortCrcMsg";
140  }
141 
142  static const char* value(const ::sick_scan_xd::SickLocResultPortCrcMsg_<ContainerAllocator>&) { return value(); }
143 };
144 
145 template<class ContainerAllocator>
146 struct Definition< ::sick_scan_xd::SickLocResultPortCrcMsg_<ContainerAllocator> >
147 {
148  static const char* value()
149  {
150  return "# Definition of ros message SickLocResultPortCrcMsg.\n"
151 "# SickLocResultPortCrcMsg publishes the CRC trailer of a result port telegram\n"
152 "# for sick localization (2 byte). \n"
153 "# Checksum details:\n"
154 "# * Width: 16 bits\n"
155 "# * Truncated polynomial: 0x1021 CRC polynomials with orders of x16 + x12 + x5 + 1 (counted without the leading '1' bit)\n"
156 "# * Initial value = 0xFFFF\n"
157 "# See chapter 5.9 (\"About result port telegrams\") of the operation manual for further details.\n"
158 "\n"
159 "uint16 checksum # CRC16-CCITT over length of header (52 bytes) and payload (52 bytes) without 2 bytes of this trailer. Size: UInt16 = 2 byte\n"
160 "\n"
161 ;
162  }
163 
164  static const char* value(const ::sick_scan_xd::SickLocResultPortCrcMsg_<ContainerAllocator>&) { return value(); }
165 };
166 
167 } // namespace message_traits
168 } // namespace roswrap
169 
170 namespace roswrap
171 {
172 namespace serialization
173 {
174 
175  template<class ContainerAllocator> struct Serializer< ::sick_scan_xd::SickLocResultPortCrcMsg_<ContainerAllocator> >
176  {
177  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
178  {
179  stream.next(m.checksum);
180  }
181 
183  }; // struct SickLocResultPortCrcMsg_
184 
185 } // namespace serialization
186 } // namespace roswrap
187 
188 namespace roswrap
189 {
190 namespace message_operations
191 {
192 
193 template<class ContainerAllocator>
194 struct Printer< ::sick_scan_xd::SickLocResultPortCrcMsg_<ContainerAllocator> >
195 {
196  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sick_scan_xd::SickLocResultPortCrcMsg_<ContainerAllocator>& v)
197  {
198  s << indent << "checksum: ";
199  Printer<uint16_t>::stream(s, indent + " ", v.checksum);
200  }
201 };
202 
203 } // namespace message_operations
204 } // namespace roswrap
205 
206 #endif // SICK_SCAN_MESSAGE_SICKLOCRESULTPORTCRCMSG_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::SickLocResultPortCrcMsg_::SickLocResultPortCrcMsg_
SickLocResultPortCrcMsg_()
Definition: SickLocResultPortCrcMsg.h:27
sick_scan_xd::SickLocResultPortCrcMsgPtr
std::shared_ptr< ::sick_scan_xd::SickLocResultPortCrcMsg > SickLocResultPortCrcMsgPtr
Definition: SickLocResultPortCrcMsg.h:51
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
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
roswrap::message_traits::DataType< ::sick_scan_xd::SickLocResultPortCrcMsg_< ContainerAllocator > >::value
static const char * value(const ::sick_scan_xd::SickLocResultPortCrcMsg_< ContainerAllocator > &)
Definition: SickLocResultPortCrcMsg.h:142
sick_scan_xd::SickLocResultPortCrcMsgConstPtr
std::shared_ptr< ::sick_scan_xd::SickLocResultPortCrcMsg const > SickLocResultPortCrcMsgConstPtr
Definition: SickLocResultPortCrcMsg.h:52
const
#define const
Definition: getopt.c:38
sick_scan_xd::SickLocResultPortCrcMsg_::_checksum_type
uint16_t _checksum_type
Definition: SickLocResultPortCrcMsg.h:37
roswrap::serialization::Serializer< ::sick_scan_xd::SickLocResultPortCrcMsg_< ContainerAllocator > >::allInOne
static void allInOne(Stream &stream, T m)
Definition: SickLocResultPortCrcMsg.h:177
s
XmlRpcServer s
roswrap::message_traits::DataType< ::sick_scan_xd::SickLocResultPortCrcMsg_< ContainerAllocator > >::value
static const char * value()
Definition: SickLocResultPortCrcMsg.h:137
sick_scan_xd::SickLocResultPortCrcMsg_::Ptr
std::shared_ptr< ::sick_scan_xd::SickLocResultPortCrcMsg_< ContainerAllocator > > Ptr
Definition: SickLocResultPortCrcMsg.h:44
sick_scan_xd::SickLocResultPortCrcMsg_::SickLocResultPortCrcMsg_
SickLocResultPortCrcMsg_(const ContainerAllocator &_alloc)
Definition: SickLocResultPortCrcMsg.h:30
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::MD5Sum< ::sick_scan_xd::SickLocResultPortCrcMsg_< ContainerAllocator > >::value
static const char * value(const ::sick_scan_xd::SickLocResultPortCrcMsg_< ContainerAllocator > &)
Definition: SickLocResultPortCrcMsg.h:129
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
roswrap::message_traits::DataType
Specialize to provide the datatype for a message.
Definition: message_traits.h:135
roswrap::message_traits::Definition
Specialize to provide the definition for a message.
Definition: message_traits.h:152
sick_scan_xd::SickLocResultPortCrcMsg_::ConstPtr
std::shared_ptr< ::sick_scan_xd::SickLocResultPortCrcMsg_< ContainerAllocator > const > ConstPtr
Definition: SickLocResultPortCrcMsg.h:45
sick_scan_xd::SickLocResultPortCrcMsg_::Type
SickLocResultPortCrcMsg_< ContainerAllocator > Type
Definition: SickLocResultPortCrcMsg.h:25
roswrap::message_traits::MD5Sum< ::sick_scan_xd::SickLocResultPortCrcMsg_< ContainerAllocator > >::value
static const char * value()
Definition: SickLocResultPortCrcMsg.h:124
roswrap
Definition: param_modi.cpp:41
roswrap::message_operations::Printer
Definition: message_operations.h:40
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::Definition< ::sick_scan_xd::SickLocResultPortCrcMsg_< ContainerAllocator > >::value
static const char * value()
Definition: SickLocResultPortCrcMsg.h:148
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
sick_scan_xd::SickLocResultPortCrcMsg_
Definition: SickLocResultPortCrcMsg.h:23
roswrap::message_traits::Definition< ::sick_scan_xd::SickLocResultPortCrcMsg_< ContainerAllocator > >::value
static const char * value(const ::sick_scan_xd::SickLocResultPortCrcMsg_< ContainerAllocator > &)
Definition: SickLocResultPortCrcMsg.h:164
roswrap::message_operations::Printer< ::sick_scan_xd::SickLocResultPortCrcMsg_< ContainerAllocator > >::stream
static void stream(Stream &s, const std::string &indent, const ::sick_scan_xd::SickLocResultPortCrcMsg_< ContainerAllocator > &v)
Definition: SickLocResultPortCrcMsg.h:196
sick_scan_xd::SickLocResultPortCrcMsg
::sick_scan_xd::SickLocResultPortCrcMsg_< std::allocator< void > > SickLocResultPortCrcMsg
Definition: SickLocResultPortCrcMsg.h:49
sick_scan_xd::SickLocResultPortCrcMsg_::checksum
_checksum_type checksum
Definition: SickLocResultPortCrcMsg.h:38


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