1 """autogenerated by genpy from cgr_localization/DisplayMsg.msg. Do not edit."""
3 python3 =
True if sys.hexversion > 0x03000000
else False
9 _md5sum =
"20f2e94b57c956606f1d7505b08c9d10"
10 _type =
"cgr_localization/DisplayMsg"
12 _full_text =
"""float64 timestamp
35 __slots__ = [
'timestamp',
'robotLocX',
'robotLocY',
'robotAngle',
'windowSize',
'lines_p1x',
'lines_p1y',
'lines_p2x',
'lines_p2y',
'lines_col',
'points_x',
'points_y',
'points_col',
'circles_x',
'circles_y',
'circles_col']
36 _slot_types = [
'float64',
'float64',
'float64',
'float64',
'float64',
'float32[]',
'float32[]',
'float32[]',
'float32[]',
'uint32[]',
'float32[]',
'float32[]',
'uint32[]',
'float32[]',
'float32[]',
'uint32[]']
40 Constructor. Any message fields that are implicitly/explicitly
41 set to None will be assigned a default value. The recommend
42 use is keyword arguments as this is more robust to future message
43 changes. You cannot mix in-order arguments and keyword arguments.
45 The available fields are:
46 timestamp,robotLocX,robotLocY,robotAngle,windowSize,lines_p1x,lines_p1y,lines_p2x,lines_p2y,lines_col,points_x,points_y,points_col,circles_x,circles_y,circles_col
48 :param args: complete set of field values, in .msg order
49 :param kwds: use keyword arguments corresponding to message field names
50 to set specific fields.
53 super(DisplayMsg, self).
__init__(*args, **kwds)
105 def _get_types(self):
113 serialize message into buffer
114 :param buff: buffer, ``StringIO``
118 buff.write(_struct_5d.pack(_x.timestamp, _x.robotLocX, _x.robotLocY, _x.robotAngle, _x.windowSize))
120 buff.write(_struct_I.pack(length))
121 pattern =
'<%sf'%length
122 buff.write(struct.pack(pattern, *self.
lines_p1x))
124 buff.write(_struct_I.pack(length))
125 pattern =
'<%sf'%length
126 buff.write(struct.pack(pattern, *self.
lines_p1y))
128 buff.write(_struct_I.pack(length))
129 pattern =
'<%sf'%length
130 buff.write(struct.pack(pattern, *self.
lines_p2x))
132 buff.write(_struct_I.pack(length))
133 pattern =
'<%sf'%length
134 buff.write(struct.pack(pattern, *self.
lines_p2y))
136 buff.write(_struct_I.pack(length))
137 pattern =
'<%sI'%length
138 buff.write(struct.pack(pattern, *self.
lines_col))
140 buff.write(_struct_I.pack(length))
141 pattern =
'<%sf'%length
142 buff.write(struct.pack(pattern, *self.
points_x))
144 buff.write(_struct_I.pack(length))
145 pattern =
'<%sf'%length
146 buff.write(struct.pack(pattern, *self.
points_y))
148 buff.write(_struct_I.pack(length))
149 pattern =
'<%sI'%length
150 buff.write(struct.pack(pattern, *self.
points_col))
152 buff.write(_struct_I.pack(length))
153 pattern =
'<%sf'%length
154 buff.write(struct.pack(pattern, *self.
circles_x))
156 buff.write(_struct_I.pack(length))
157 pattern =
'<%sf'%length
158 buff.write(struct.pack(pattern, *self.
circles_y))
160 buff.write(_struct_I.pack(length))
161 pattern =
'<%sI'%length
162 buff.write(struct.pack(pattern, *self.
circles_col))
163 except struct.error
as se: self._check_types(struct.error(
"%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
164 except TypeError
as te: self._check_types(ValueError(
"%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
168 unpack serialized message in str into this message instance
169 :param str: byte array of serialized message, ``str``
176 (_x.timestamp, _x.robotLocX, _x.robotLocY, _x.robotAngle, _x.windowSize,) = _struct_5d.unpack(str[start:end])
179 (length,) = _struct_I.unpack(str[start:end])
180 pattern =
'<%sf'%length
182 end += struct.calcsize(pattern)
183 self.
lines_p1x = struct.unpack(pattern, str[start:end])
186 (length,) = _struct_I.unpack(str[start:end])
187 pattern =
'<%sf'%length
189 end += struct.calcsize(pattern)
190 self.
lines_p1y = struct.unpack(pattern, str[start:end])
193 (length,) = _struct_I.unpack(str[start:end])
194 pattern =
'<%sf'%length
196 end += struct.calcsize(pattern)
197 self.
lines_p2x = struct.unpack(pattern, str[start:end])
200 (length,) = _struct_I.unpack(str[start:end])
201 pattern =
'<%sf'%length
203 end += struct.calcsize(pattern)
204 self.
lines_p2y = struct.unpack(pattern, str[start:end])
207 (length,) = _struct_I.unpack(str[start:end])
208 pattern =
'<%sI'%length
210 end += struct.calcsize(pattern)
211 self.
lines_col = struct.unpack(pattern, str[start:end])
214 (length,) = _struct_I.unpack(str[start:end])
215 pattern =
'<%sf'%length
217 end += struct.calcsize(pattern)
218 self.
points_x = struct.unpack(pattern, str[start:end])
221 (length,) = _struct_I.unpack(str[start:end])
222 pattern =
'<%sf'%length
224 end += struct.calcsize(pattern)
225 self.
points_y = struct.unpack(pattern, str[start:end])
228 (length,) = _struct_I.unpack(str[start:end])
229 pattern =
'<%sI'%length
231 end += struct.calcsize(pattern)
232 self.
points_col = struct.unpack(pattern, str[start:end])
235 (length,) = _struct_I.unpack(str[start:end])
236 pattern =
'<%sf'%length
238 end += struct.calcsize(pattern)
239 self.
circles_x = struct.unpack(pattern, str[start:end])
242 (length,) = _struct_I.unpack(str[start:end])
243 pattern =
'<%sf'%length
245 end += struct.calcsize(pattern)
246 self.
circles_y = struct.unpack(pattern, str[start:end])
249 (length,) = _struct_I.unpack(str[start:end])
250 pattern =
'<%sI'%length
252 end += struct.calcsize(pattern)
253 self.
circles_col = struct.unpack(pattern, str[start:end])
255 except struct.error
as e:
256 raise genpy.DeserializationError(e)
261 serialize message with numpy array types into buffer
262 :param buff: buffer, ``StringIO``
263 :param numpy: numpy python module
267 buff.write(_struct_5d.pack(_x.timestamp, _x.robotLocX, _x.robotLocY, _x.robotAngle, _x.windowSize))
269 buff.write(_struct_I.pack(length))
270 pattern =
'<%sf'%length
271 buff.write(self.lines_p1x.tostring())
273 buff.write(_struct_I.pack(length))
274 pattern =
'<%sf'%length
275 buff.write(self.lines_p1y.tostring())
277 buff.write(_struct_I.pack(length))
278 pattern =
'<%sf'%length
279 buff.write(self.lines_p2x.tostring())
281 buff.write(_struct_I.pack(length))
282 pattern =
'<%sf'%length
283 buff.write(self.lines_p2y.tostring())
285 buff.write(_struct_I.pack(length))
286 pattern =
'<%sI'%length
287 buff.write(self.lines_col.tostring())
289 buff.write(_struct_I.pack(length))
290 pattern =
'<%sf'%length
291 buff.write(self.points_x.tostring())
293 buff.write(_struct_I.pack(length))
294 pattern =
'<%sf'%length
295 buff.write(self.points_y.tostring())
297 buff.write(_struct_I.pack(length))
298 pattern =
'<%sI'%length
299 buff.write(self.points_col.tostring())
301 buff.write(_struct_I.pack(length))
302 pattern =
'<%sf'%length
303 buff.write(self.circles_x.tostring())
305 buff.write(_struct_I.pack(length))
306 pattern =
'<%sf'%length
307 buff.write(self.circles_y.tostring())
309 buff.write(_struct_I.pack(length))
310 pattern =
'<%sI'%length
311 buff.write(self.circles_col.tostring())
312 except struct.error
as se: self._check_types(struct.error(
"%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
313 except TypeError
as te: self._check_types(ValueError(
"%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
317 unpack serialized message in str into this message instance using numpy for array types
318 :param str: byte array of serialized message, ``str``
319 :param numpy: numpy python module
326 (_x.timestamp, _x.robotLocX, _x.robotLocY, _x.robotAngle, _x.windowSize,) = _struct_5d.unpack(str[start:end])
329 (length,) = _struct_I.unpack(str[start:end])
330 pattern =
'<%sf'%length
332 end += struct.calcsize(pattern)
333 self.
lines_p1x = numpy.frombuffer(str[start:end], dtype=numpy.float32, count=length)
336 (length,) = _struct_I.unpack(str[start:end])
337 pattern =
'<%sf'%length
339 end += struct.calcsize(pattern)
340 self.
lines_p1y = numpy.frombuffer(str[start:end], dtype=numpy.float32, count=length)
343 (length,) = _struct_I.unpack(str[start:end])
344 pattern =
'<%sf'%length
346 end += struct.calcsize(pattern)
347 self.
lines_p2x = numpy.frombuffer(str[start:end], dtype=numpy.float32, count=length)
350 (length,) = _struct_I.unpack(str[start:end])
351 pattern =
'<%sf'%length
353 end += struct.calcsize(pattern)
354 self.
lines_p2y = numpy.frombuffer(str[start:end], dtype=numpy.float32, count=length)
357 (length,) = _struct_I.unpack(str[start:end])
358 pattern =
'<%sI'%length
360 end += struct.calcsize(pattern)
361 self.
lines_col = numpy.frombuffer(str[start:end], dtype=numpy.uint32, count=length)
364 (length,) = _struct_I.unpack(str[start:end])
365 pattern =
'<%sf'%length
367 end += struct.calcsize(pattern)
368 self.
points_x = numpy.frombuffer(str[start:end], dtype=numpy.float32, count=length)
371 (length,) = _struct_I.unpack(str[start:end])
372 pattern =
'<%sf'%length
374 end += struct.calcsize(pattern)
375 self.
points_y = numpy.frombuffer(str[start:end], dtype=numpy.float32, count=length)
378 (length,) = _struct_I.unpack(str[start:end])
379 pattern =
'<%sI'%length
381 end += struct.calcsize(pattern)
382 self.
points_col = numpy.frombuffer(str[start:end], dtype=numpy.uint32, count=length)
385 (length,) = _struct_I.unpack(str[start:end])
386 pattern =
'<%sf'%length
388 end += struct.calcsize(pattern)
389 self.
circles_x = numpy.frombuffer(str[start:end], dtype=numpy.float32, count=length)
392 (length,) = _struct_I.unpack(str[start:end])
393 pattern =
'<%sf'%length
395 end += struct.calcsize(pattern)
396 self.
circles_y = numpy.frombuffer(str[start:end], dtype=numpy.float32, count=length)
399 (length,) = _struct_I.unpack(str[start:end])
400 pattern =
'<%sI'%length
402 end += struct.calcsize(pattern)
403 self.
circles_col = numpy.frombuffer(str[start:end], dtype=numpy.uint32, count=length)
405 except struct.error
as e:
406 raise genpy.DeserializationError(e)
408 _struct_I = genpy.struct_I
409 _struct_5d = struct.Struct(
"<5d")