6 #ifndef SICK_SCAN_MESSAGE_SICKLOCRESULTPORTPAYLOADMSG_H
7 #define SICK_SCAN_MESSAGE_SICKLOCRESULTPORTPAYLOADMSG_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>
109 typedef std::shared_ptr< ::sick_scan_xd::SickLocResultPortPayloadMsg_<ContainerAllocator> >
Ptr;
110 typedef std::shared_ptr< ::sick_scan_xd::SickLocResultPortPayloadMsg_<ContainerAllocator>
const>
ConstPtr;
123 template<
typename ContainerAllocator>
124 std::ostream&
operator<<(std::ostream& s, const ::sick_scan_xd::SickLocResultPortPayloadMsg_<ContainerAllocator> & v)
131 template<
typename ContainerAllocator1,
typename ContainerAllocator2>
132 bool operator==(const ::sick_scan_xd::SickLocResultPortPayloadMsg_<ContainerAllocator1> & lhs, const ::sick_scan_xd::SickLocResultPortPayloadMsg_<ContainerAllocator2> & rhs)
134 return lhs.errorcode == rhs.errorcode &&
135 lhs.scancounter == rhs.scancounter &&
136 lhs.timestamp == rhs.timestamp &&
137 lhs.posex == rhs.posex &&
138 lhs.posey == rhs.posey &&
139 lhs.poseyaw == rhs.poseyaw &&
140 lhs.reserved1 == rhs.reserved1 &&
141 lhs.reserved2 == rhs.reserved2 &&
142 lhs.quality == rhs.quality &&
143 lhs.outliersratio == rhs.outliersratio &&
144 lhs.covariancex == rhs.covariancex &&
145 lhs.covariancey == rhs.covariancey &&
146 lhs.covarianceyaw == rhs.covarianceyaw &&
147 lhs.reserved3 == rhs.reserved3;
150 template<
typename ContainerAllocator1,
typename ContainerAllocator2>
151 bool operator!=(const ::sick_scan_xd::SickLocResultPortPayloadMsg_<ContainerAllocator1> & lhs, const ::sick_scan_xd::SickLocResultPortPayloadMsg_<ContainerAllocator2> & rhs)
153 return !(lhs == rhs);
161 namespace message_traits
168 template <
class ContainerAllocator>
173 template <
class ContainerAllocator>
178 template <
class ContainerAllocator>
183 template <
class ContainerAllocator>
188 template <
class ContainerAllocator>
193 template <
class ContainerAllocator>
199 template<
class ContainerAllocator>
204 return "b80aed977dece34a3c761a1bbf1b6cec";
207 static const char*
value(const ::sick_scan_xd::SickLocResultPortPayloadMsg_<ContainerAllocator>&) {
return value(); }
208 static const uint64_t static_value1 = 0xb80aed977dece34aULL;
209 static const uint64_t static_value2 = 0x3c761a1bbf1b6cecULL;
212 template<
class ContainerAllocator>
217 return "sick_scan/SickLocResultPortPayloadMsg";
220 static const char*
value(const ::sick_scan_xd::SickLocResultPortPayloadMsg_<ContainerAllocator>&) {
return value(); }
223 template<
class ContainerAllocator>
228 return "# Definition of ros message SickLocResultPortPayloadMsg.\n"
229 "# SickLocResultPortPayloadMsg publishes the payload of a result port telegram\n"
230 "# for sick localization (52 byte). See chapter 5.9 (\"About result port telegrams\")\n"
231 "# of the operation manual for further details.\n"
233 "uint16 errorcode # ErrorCode 0: OK, ErrorCode 1: UNKNOWNERROR. Size: UInt16 = 2 byte\n"
234 "uint32 scancounter # Counter of related scan data. Size: UInt32 = 4 byte\n"
235 "uint32 timestamp # Time stamp of the pose [ms]. The time stamp indicates the time at which the pose is calculated. Size: UInt32 = 4 byte\n"
236 "int32 posex # Position X of the vehicle on the map in cartesian global coordinates [mm]. Size: Int32 = 4 byte\n"
237 "int32 posey # Position Y of the vehicle on the map in cartesian global coordinates [mm]. Size: Int32 = 4 byte\n"
238 "int32 poseyaw # Orientation (yaw) of the vehicle on the map [mdeg] Size: Int32 = 4 byte\n"
239 "uint32 reserved1 # Reserved. Size: UInt32 = 4 byte\n"
240 "int32 reserved2 # Reserved. Size: Int32 = 4 byte\n"
241 "uint8 quality # Quality of pose [0 ... 100], 1 = bad pose quality, 100 = good pose quality. Size: UInt8 = 1 byte\n"
242 "uint8 outliersratio # Ratio of beams that cannot be assigned to the current reference map [%]. Size: UInt8 = 1 byte\n"
243 "int32 covariancex # Covariance c1 of the pose X [mm^2]. Size: Int32 = 4 byte\n"
244 "int32 covariancey # Covariance c5 of the pose Y [mm^2]. Size: Int32 = 4 byte\n"
245 "int32 covarianceyaw # Covariance c9 of the pose Yaw [mdeg^2]. Size: Int32 = 4 byte\n"
246 "uint64 reserved3 # Reserved. Size: UInt64 = 8 byte\n"
251 static const char*
value(const ::sick_scan_xd::SickLocResultPortPayloadMsg_<ContainerAllocator>&) {
return value(); }
259 namespace serialization
264 template<
typename Stream,
typename T>
inline static void allInOne(
Stream& stream, T m)
266 stream.next(m.errorcode);
267 stream.next(m.scancounter);
268 stream.next(m.timestamp);
269 stream.next(m.posex);
270 stream.next(m.posey);
271 stream.next(m.poseyaw);
272 stream.next(m.reserved1);
273 stream.next(m.reserved2);
274 stream.next(m.quality);
275 stream.next(m.outliersratio);
276 stream.next(m.covariancex);
277 stream.next(m.covariancey);
278 stream.next(m.covarianceyaw);
279 stream.next(m.reserved3);
290 namespace message_operations
293 template<
class ContainerAllocator>
296 template<
typename Stream>
static void stream(Stream& s,
const std::string&
indent, const ::sick_scan_xd::SickLocResultPortPayloadMsg_<ContainerAllocator>& v)
300 s <<
indent <<
"scancounter: ";
316 s <<
indent <<
"outliersratio: ";
318 s <<
indent <<
"covariancex: ";
320 s <<
indent <<
"covariancey: ";
322 s <<
indent <<
"covarianceyaw: ";
332 #endif // SICK_SCAN_MESSAGE_SICKLOCRESULTPORTPAYLOADMSG_H