$search
00001 """autogenerated by genmsg_py from UiDetectorRequest.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 import std_msgs.msg 00006 00007 class UiDetectorRequest(roslib.message.Message): 00008 _md5sum = "adb33ef101026c3e15d799e3decf403f" 00009 _type = "srs_assisted_detection/UiDetectorRequest" 00010 _has_header = False #flag to mark the presence of a Header object 00011 _full_text = """ 00012 std_msgs/String object_name 00013 00014 ================================================================================ 00015 MSG: std_msgs/String 00016 string data 00017 00018 """ 00019 __slots__ = ['object_name'] 00020 _slot_types = ['std_msgs/String'] 00021 00022 def __init__(self, *args, **kwds): 00023 """ 00024 Constructor. Any message fields that are implicitly/explicitly 00025 set to None will be assigned a default value. The recommend 00026 use is keyword arguments as this is more robust to future message 00027 changes. You cannot mix in-order arguments and keyword arguments. 00028 00029 The available fields are: 00030 object_name 00031 00032 @param args: complete set of field values, in .msg order 00033 @param kwds: use keyword arguments corresponding to message field names 00034 to set specific fields. 00035 """ 00036 if args or kwds: 00037 super(UiDetectorRequest, self).__init__(*args, **kwds) 00038 #message fields cannot be None, assign default values for those that are 00039 if self.object_name is None: 00040 self.object_name = std_msgs.msg.String() 00041 else: 00042 self.object_name = std_msgs.msg.String() 00043 00044 def _get_types(self): 00045 """ 00046 internal API method 00047 """ 00048 return self._slot_types 00049 00050 def serialize(self, buff): 00051 """ 00052 serialize message into buffer 00053 @param buff: buffer 00054 @type buff: StringIO 00055 """ 00056 try: 00057 _x = self.object_name.data 00058 length = len(_x) 00059 buff.write(struct.pack('<I%ss'%length, length, _x)) 00060 except struct.error as se: self._check_types(se) 00061 except TypeError as te: self._check_types(te) 00062 00063 def deserialize(self, str): 00064 """ 00065 unpack serialized message in str into this message instance 00066 @param str: byte array of serialized message 00067 @type str: str 00068 """ 00069 try: 00070 if self.object_name is None: 00071 self.object_name = std_msgs.msg.String() 00072 end = 0 00073 start = end 00074 end += 4 00075 (length,) = _struct_I.unpack(str[start:end]) 00076 start = end 00077 end += length 00078 self.object_name.data = str[start:end] 00079 return self 00080 except struct.error as e: 00081 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00082 00083 00084 def serialize_numpy(self, buff, numpy): 00085 """ 00086 serialize message with numpy array types into buffer 00087 @param buff: buffer 00088 @type buff: StringIO 00089 @param numpy: numpy python module 00090 @type numpy module 00091 """ 00092 try: 00093 _x = self.object_name.data 00094 length = len(_x) 00095 buff.write(struct.pack('<I%ss'%length, length, _x)) 00096 except struct.error as se: self._check_types(se) 00097 except TypeError as te: self._check_types(te) 00098 00099 def deserialize_numpy(self, str, numpy): 00100 """ 00101 unpack serialized message in str into this message instance using numpy for array types 00102 @param str: byte array of serialized message 00103 @type str: str 00104 @param numpy: numpy python module 00105 @type numpy: module 00106 """ 00107 try: 00108 if self.object_name is None: 00109 self.object_name = std_msgs.msg.String() 00110 end = 0 00111 start = end 00112 end += 4 00113 (length,) = _struct_I.unpack(str[start:end]) 00114 start = end 00115 end += length 00116 self.object_name.data = str[start:end] 00117 return self 00118 except struct.error as e: 00119 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00120 00121 _struct_I = roslib.message.struct_I 00122 """autogenerated by genmsg_py from UiDetectorResponse.msg. Do not edit.""" 00123 import roslib.message 00124 import struct 00125 00126 import geometry_msgs.msg 00127 import cob_object_detection_msgs.msg 00128 import sensor_msgs.msg 00129 import std_msgs.msg 00130 00131 class UiDetectorResponse(roslib.message.Message): 00132 _md5sum = "6e46a64486bc23cca1c161460b4c92b6" 00133 _type = "srs_assisted_detection/UiDetectorResponse" 00134 _has_header = False #flag to mark the presence of a Header object 00135 _full_text = """ 00136 cob_object_detection_msgs/DetectionArray object_list 00137 00138 ================================================================================ 00139 MSG: cob_object_detection_msgs/DetectionArray 00140 Header header 00141 Detection[] detections 00142 00143 ================================================================================ 00144 MSG: std_msgs/Header 00145 # Standard metadata for higher-level stamped data types. 00146 # This is generally used to communicate timestamped data 00147 # in a particular coordinate frame. 00148 # 00149 # sequence ID: consecutively increasing ID 00150 uint32 seq 00151 #Two-integer timestamp that is expressed as: 00152 # * stamp.secs: seconds (stamp_secs) since epoch 00153 # * stamp.nsecs: nanoseconds since stamp_secs 00154 # time-handling sugar is provided by the client library 00155 time stamp 00156 #Frame this data is associated with 00157 # 0: no frame 00158 # 1: global frame 00159 string frame_id 00160 00161 ================================================================================ 00162 MSG: cob_object_detection_msgs/Detection 00163 Header header 00164 string label 00165 string detector 00166 float32 score 00167 Mask mask 00168 geometry_msgs/PoseStamped pose 00169 geometry_msgs/Point bounding_box_lwh 00170 00171 ================================================================================ 00172 MSG: cob_object_detection_msgs/Mask 00173 # this message is used to mark where an object is present in an image 00174 # this can be done either by a roi region on the image (less precise) or a mask (more precise) 00175 00176 Rect roi 00177 00178 # in the case when mask is used, 'roi' specifies the image region and 'mask' 00179 # (which should be of the same size) a binary mask in that region 00180 sensor_msgs/Image mask 00181 00182 # in the case there is 3D data available, 'indices' are used to index the 00183 # part of the point cloud representing the object 00184 #pcl/PointIndices indices 00185 00186 ================================================================================ 00187 MSG: cob_object_detection_msgs/Rect 00188 int32 x 00189 int32 y 00190 int32 width 00191 int32 height 00192 00193 ================================================================================ 00194 MSG: sensor_msgs/Image 00195 # This message contains an uncompressed image 00196 # (0, 0) is at top-left corner of image 00197 # 00198 00199 Header header # Header timestamp should be acquisition time of image 00200 # Header frame_id should be optical frame of camera 00201 # origin of frame should be optical center of cameara 00202 # +x should point to the right in the image 00203 # +y should point down in the image 00204 # +z should point into to plane of the image 00205 # If the frame_id here and the frame_id of the CameraInfo 00206 # message associated with the image conflict 00207 # the behavior is undefined 00208 00209 uint32 height # image height, that is, number of rows 00210 uint32 width # image width, that is, number of columns 00211 00212 # The legal values for encoding are in file src/image_encodings.cpp 00213 # If you want to standardize a new string format, join 00214 # ros-users@lists.sourceforge.net and send an email proposing a new encoding. 00215 00216 string encoding # Encoding of pixels -- channel meaning, ordering, size 00217 # taken from the list of strings in src/image_encodings.cpp 00218 00219 uint8 is_bigendian # is this data bigendian? 00220 uint32 step # Full row length in bytes 00221 uint8[] data # actual matrix data, size is (step * rows) 00222 00223 ================================================================================ 00224 MSG: geometry_msgs/PoseStamped 00225 # A Pose with reference coordinate frame and timestamp 00226 Header header 00227 Pose pose 00228 00229 ================================================================================ 00230 MSG: geometry_msgs/Pose 00231 # A representation of pose in free space, composed of postion and orientation. 00232 Point position 00233 Quaternion orientation 00234 00235 ================================================================================ 00236 MSG: geometry_msgs/Point 00237 # This contains the position of a point in free space 00238 float64 x 00239 float64 y 00240 float64 z 00241 00242 ================================================================================ 00243 MSG: geometry_msgs/Quaternion 00244 # This represents an orientation in free space in quaternion form. 00245 00246 float64 x 00247 float64 y 00248 float64 z 00249 float64 w 00250 00251 """ 00252 __slots__ = ['object_list'] 00253 _slot_types = ['cob_object_detection_msgs/DetectionArray'] 00254 00255 def __init__(self, *args, **kwds): 00256 """ 00257 Constructor. Any message fields that are implicitly/explicitly 00258 set to None will be assigned a default value. The recommend 00259 use is keyword arguments as this is more robust to future message 00260 changes. You cannot mix in-order arguments and keyword arguments. 00261 00262 The available fields are: 00263 object_list 00264 00265 @param args: complete set of field values, in .msg order 00266 @param kwds: use keyword arguments corresponding to message field names 00267 to set specific fields. 00268 """ 00269 if args or kwds: 00270 super(UiDetectorResponse, self).__init__(*args, **kwds) 00271 #message fields cannot be None, assign default values for those that are 00272 if self.object_list is None: 00273 self.object_list = cob_object_detection_msgs.msg.DetectionArray() 00274 else: 00275 self.object_list = cob_object_detection_msgs.msg.DetectionArray() 00276 00277 def _get_types(self): 00278 """ 00279 internal API method 00280 """ 00281 return self._slot_types 00282 00283 def serialize(self, buff): 00284 """ 00285 serialize message into buffer 00286 @param buff: buffer 00287 @type buff: StringIO 00288 """ 00289 try: 00290 _x = self 00291 buff.write(_struct_3I.pack(_x.object_list.header.seq, _x.object_list.header.stamp.secs, _x.object_list.header.stamp.nsecs)) 00292 _x = self.object_list.header.frame_id 00293 length = len(_x) 00294 buff.write(struct.pack('<I%ss'%length, length, _x)) 00295 length = len(self.object_list.detections) 00296 buff.write(_struct_I.pack(length)) 00297 for val1 in self.object_list.detections: 00298 _v1 = val1.header 00299 buff.write(_struct_I.pack(_v1.seq)) 00300 _v2 = _v1.stamp 00301 _x = _v2 00302 buff.write(_struct_2I.pack(_x.secs, _x.nsecs)) 00303 _x = _v1.frame_id 00304 length = len(_x) 00305 buff.write(struct.pack('<I%ss'%length, length, _x)) 00306 _x = val1.label 00307 length = len(_x) 00308 buff.write(struct.pack('<I%ss'%length, length, _x)) 00309 _x = val1.detector 00310 length = len(_x) 00311 buff.write(struct.pack('<I%ss'%length, length, _x)) 00312 buff.write(_struct_f.pack(val1.score)) 00313 _v3 = val1.mask 00314 _v4 = _v3.roi 00315 _x = _v4 00316 buff.write(_struct_4i.pack(_x.x, _x.y, _x.width, _x.height)) 00317 _v5 = _v3.mask 00318 _v6 = _v5.header 00319 buff.write(_struct_I.pack(_v6.seq)) 00320 _v7 = _v6.stamp 00321 _x = _v7 00322 buff.write(_struct_2I.pack(_x.secs, _x.nsecs)) 00323 _x = _v6.frame_id 00324 length = len(_x) 00325 buff.write(struct.pack('<I%ss'%length, length, _x)) 00326 _x = _v5 00327 buff.write(_struct_2I.pack(_x.height, _x.width)) 00328 _x = _v5.encoding 00329 length = len(_x) 00330 buff.write(struct.pack('<I%ss'%length, length, _x)) 00331 _x = _v5 00332 buff.write(_struct_BI.pack(_x.is_bigendian, _x.step)) 00333 _x = _v5.data 00334 length = len(_x) 00335 # - if encoded as a list instead, serialize as bytes instead of string 00336 if type(_x) in [list, tuple]: 00337 buff.write(struct.pack('<I%sB'%length, length, *_x)) 00338 else: 00339 buff.write(struct.pack('<I%ss'%length, length, _x)) 00340 _v8 = val1.pose 00341 _v9 = _v8.header 00342 buff.write(_struct_I.pack(_v9.seq)) 00343 _v10 = _v9.stamp 00344 _x = _v10 00345 buff.write(_struct_2I.pack(_x.secs, _x.nsecs)) 00346 _x = _v9.frame_id 00347 length = len(_x) 00348 buff.write(struct.pack('<I%ss'%length, length, _x)) 00349 _v11 = _v8.pose 00350 _v12 = _v11.position 00351 _x = _v12 00352 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z)) 00353 _v13 = _v11.orientation 00354 _x = _v13 00355 buff.write(_struct_4d.pack(_x.x, _x.y, _x.z, _x.w)) 00356 _v14 = val1.bounding_box_lwh 00357 _x = _v14 00358 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z)) 00359 except struct.error as se: self._check_types(se) 00360 except TypeError as te: self._check_types(te) 00361 00362 def deserialize(self, str): 00363 """ 00364 unpack serialized message in str into this message instance 00365 @param str: byte array of serialized message 00366 @type str: str 00367 """ 00368 try: 00369 if self.object_list is None: 00370 self.object_list = cob_object_detection_msgs.msg.DetectionArray() 00371 end = 0 00372 _x = self 00373 start = end 00374 end += 12 00375 (_x.object_list.header.seq, _x.object_list.header.stamp.secs, _x.object_list.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00376 start = end 00377 end += 4 00378 (length,) = _struct_I.unpack(str[start:end]) 00379 start = end 00380 end += length 00381 self.object_list.header.frame_id = str[start:end] 00382 start = end 00383 end += 4 00384 (length,) = _struct_I.unpack(str[start:end]) 00385 self.object_list.detections = [] 00386 for i in range(0, length): 00387 val1 = cob_object_detection_msgs.msg.Detection() 00388 _v15 = val1.header 00389 start = end 00390 end += 4 00391 (_v15.seq,) = _struct_I.unpack(str[start:end]) 00392 _v16 = _v15.stamp 00393 _x = _v16 00394 start = end 00395 end += 8 00396 (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end]) 00397 start = end 00398 end += 4 00399 (length,) = _struct_I.unpack(str[start:end]) 00400 start = end 00401 end += length 00402 _v15.frame_id = str[start:end] 00403 start = end 00404 end += 4 00405 (length,) = _struct_I.unpack(str[start:end]) 00406 start = end 00407 end += length 00408 val1.label = str[start:end] 00409 start = end 00410 end += 4 00411 (length,) = _struct_I.unpack(str[start:end]) 00412 start = end 00413 end += length 00414 val1.detector = str[start:end] 00415 start = end 00416 end += 4 00417 (val1.score,) = _struct_f.unpack(str[start:end]) 00418 _v17 = val1.mask 00419 _v18 = _v17.roi 00420 _x = _v18 00421 start = end 00422 end += 16 00423 (_x.x, _x.y, _x.width, _x.height,) = _struct_4i.unpack(str[start:end]) 00424 _v19 = _v17.mask 00425 _v20 = _v19.header 00426 start = end 00427 end += 4 00428 (_v20.seq,) = _struct_I.unpack(str[start:end]) 00429 _v21 = _v20.stamp 00430 _x = _v21 00431 start = end 00432 end += 8 00433 (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end]) 00434 start = end 00435 end += 4 00436 (length,) = _struct_I.unpack(str[start:end]) 00437 start = end 00438 end += length 00439 _v20.frame_id = str[start:end] 00440 _x = _v19 00441 start = end 00442 end += 8 00443 (_x.height, _x.width,) = _struct_2I.unpack(str[start:end]) 00444 start = end 00445 end += 4 00446 (length,) = _struct_I.unpack(str[start:end]) 00447 start = end 00448 end += length 00449 _v19.encoding = str[start:end] 00450 _x = _v19 00451 start = end 00452 end += 5 00453 (_x.is_bigendian, _x.step,) = _struct_BI.unpack(str[start:end]) 00454 start = end 00455 end += 4 00456 (length,) = _struct_I.unpack(str[start:end]) 00457 start = end 00458 end += length 00459 _v19.data = str[start:end] 00460 _v22 = val1.pose 00461 _v23 = _v22.header 00462 start = end 00463 end += 4 00464 (_v23.seq,) = _struct_I.unpack(str[start:end]) 00465 _v24 = _v23.stamp 00466 _x = _v24 00467 start = end 00468 end += 8 00469 (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end]) 00470 start = end 00471 end += 4 00472 (length,) = _struct_I.unpack(str[start:end]) 00473 start = end 00474 end += length 00475 _v23.frame_id = str[start:end] 00476 _v25 = _v22.pose 00477 _v26 = _v25.position 00478 _x = _v26 00479 start = end 00480 end += 24 00481 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end]) 00482 _v27 = _v25.orientation 00483 _x = _v27 00484 start = end 00485 end += 32 00486 (_x.x, _x.y, _x.z, _x.w,) = _struct_4d.unpack(str[start:end]) 00487 _v28 = val1.bounding_box_lwh 00488 _x = _v28 00489 start = end 00490 end += 24 00491 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end]) 00492 self.object_list.detections.append(val1) 00493 return self 00494 except struct.error as e: 00495 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00496 00497 00498 def serialize_numpy(self, buff, numpy): 00499 """ 00500 serialize message with numpy array types into buffer 00501 @param buff: buffer 00502 @type buff: StringIO 00503 @param numpy: numpy python module 00504 @type numpy module 00505 """ 00506 try: 00507 _x = self 00508 buff.write(_struct_3I.pack(_x.object_list.header.seq, _x.object_list.header.stamp.secs, _x.object_list.header.stamp.nsecs)) 00509 _x = self.object_list.header.frame_id 00510 length = len(_x) 00511 buff.write(struct.pack('<I%ss'%length, length, _x)) 00512 length = len(self.object_list.detections) 00513 buff.write(_struct_I.pack(length)) 00514 for val1 in self.object_list.detections: 00515 _v29 = val1.header 00516 buff.write(_struct_I.pack(_v29.seq)) 00517 _v30 = _v29.stamp 00518 _x = _v30 00519 buff.write(_struct_2I.pack(_x.secs, _x.nsecs)) 00520 _x = _v29.frame_id 00521 length = len(_x) 00522 buff.write(struct.pack('<I%ss'%length, length, _x)) 00523 _x = val1.label 00524 length = len(_x) 00525 buff.write(struct.pack('<I%ss'%length, length, _x)) 00526 _x = val1.detector 00527 length = len(_x) 00528 buff.write(struct.pack('<I%ss'%length, length, _x)) 00529 buff.write(_struct_f.pack(val1.score)) 00530 _v31 = val1.mask 00531 _v32 = _v31.roi 00532 _x = _v32 00533 buff.write(_struct_4i.pack(_x.x, _x.y, _x.width, _x.height)) 00534 _v33 = _v31.mask 00535 _v34 = _v33.header 00536 buff.write(_struct_I.pack(_v34.seq)) 00537 _v35 = _v34.stamp 00538 _x = _v35 00539 buff.write(_struct_2I.pack(_x.secs, _x.nsecs)) 00540 _x = _v34.frame_id 00541 length = len(_x) 00542 buff.write(struct.pack('<I%ss'%length, length, _x)) 00543 _x = _v33 00544 buff.write(_struct_2I.pack(_x.height, _x.width)) 00545 _x = _v33.encoding 00546 length = len(_x) 00547 buff.write(struct.pack('<I%ss'%length, length, _x)) 00548 _x = _v33 00549 buff.write(_struct_BI.pack(_x.is_bigendian, _x.step)) 00550 _x = _v33.data 00551 length = len(_x) 00552 # - if encoded as a list instead, serialize as bytes instead of string 00553 if type(_x) in [list, tuple]: 00554 buff.write(struct.pack('<I%sB'%length, length, *_x)) 00555 else: 00556 buff.write(struct.pack('<I%ss'%length, length, _x)) 00557 _v36 = val1.pose 00558 _v37 = _v36.header 00559 buff.write(_struct_I.pack(_v37.seq)) 00560 _v38 = _v37.stamp 00561 _x = _v38 00562 buff.write(_struct_2I.pack(_x.secs, _x.nsecs)) 00563 _x = _v37.frame_id 00564 length = len(_x) 00565 buff.write(struct.pack('<I%ss'%length, length, _x)) 00566 _v39 = _v36.pose 00567 _v40 = _v39.position 00568 _x = _v40 00569 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z)) 00570 _v41 = _v39.orientation 00571 _x = _v41 00572 buff.write(_struct_4d.pack(_x.x, _x.y, _x.z, _x.w)) 00573 _v42 = val1.bounding_box_lwh 00574 _x = _v42 00575 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z)) 00576 except struct.error as se: self._check_types(se) 00577 except TypeError as te: self._check_types(te) 00578 00579 def deserialize_numpy(self, str, numpy): 00580 """ 00581 unpack serialized message in str into this message instance using numpy for array types 00582 @param str: byte array of serialized message 00583 @type str: str 00584 @param numpy: numpy python module 00585 @type numpy: module 00586 """ 00587 try: 00588 if self.object_list is None: 00589 self.object_list = cob_object_detection_msgs.msg.DetectionArray() 00590 end = 0 00591 _x = self 00592 start = end 00593 end += 12 00594 (_x.object_list.header.seq, _x.object_list.header.stamp.secs, _x.object_list.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00595 start = end 00596 end += 4 00597 (length,) = _struct_I.unpack(str[start:end]) 00598 start = end 00599 end += length 00600 self.object_list.header.frame_id = str[start:end] 00601 start = end 00602 end += 4 00603 (length,) = _struct_I.unpack(str[start:end]) 00604 self.object_list.detections = [] 00605 for i in range(0, length): 00606 val1 = cob_object_detection_msgs.msg.Detection() 00607 _v43 = val1.header 00608 start = end 00609 end += 4 00610 (_v43.seq,) = _struct_I.unpack(str[start:end]) 00611 _v44 = _v43.stamp 00612 _x = _v44 00613 start = end 00614 end += 8 00615 (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end]) 00616 start = end 00617 end += 4 00618 (length,) = _struct_I.unpack(str[start:end]) 00619 start = end 00620 end += length 00621 _v43.frame_id = str[start:end] 00622 start = end 00623 end += 4 00624 (length,) = _struct_I.unpack(str[start:end]) 00625 start = end 00626 end += length 00627 val1.label = str[start:end] 00628 start = end 00629 end += 4 00630 (length,) = _struct_I.unpack(str[start:end]) 00631 start = end 00632 end += length 00633 val1.detector = str[start:end] 00634 start = end 00635 end += 4 00636 (val1.score,) = _struct_f.unpack(str[start:end]) 00637 _v45 = val1.mask 00638 _v46 = _v45.roi 00639 _x = _v46 00640 start = end 00641 end += 16 00642 (_x.x, _x.y, _x.width, _x.height,) = _struct_4i.unpack(str[start:end]) 00643 _v47 = _v45.mask 00644 _v48 = _v47.header 00645 start = end 00646 end += 4 00647 (_v48.seq,) = _struct_I.unpack(str[start:end]) 00648 _v49 = _v48.stamp 00649 _x = _v49 00650 start = end 00651 end += 8 00652 (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end]) 00653 start = end 00654 end += 4 00655 (length,) = _struct_I.unpack(str[start:end]) 00656 start = end 00657 end += length 00658 _v48.frame_id = str[start:end] 00659 _x = _v47 00660 start = end 00661 end += 8 00662 (_x.height, _x.width,) = _struct_2I.unpack(str[start:end]) 00663 start = end 00664 end += 4 00665 (length,) = _struct_I.unpack(str[start:end]) 00666 start = end 00667 end += length 00668 _v47.encoding = str[start:end] 00669 _x = _v47 00670 start = end 00671 end += 5 00672 (_x.is_bigendian, _x.step,) = _struct_BI.unpack(str[start:end]) 00673 start = end 00674 end += 4 00675 (length,) = _struct_I.unpack(str[start:end]) 00676 start = end 00677 end += length 00678 _v47.data = str[start:end] 00679 _v50 = val1.pose 00680 _v51 = _v50.header 00681 start = end 00682 end += 4 00683 (_v51.seq,) = _struct_I.unpack(str[start:end]) 00684 _v52 = _v51.stamp 00685 _x = _v52 00686 start = end 00687 end += 8 00688 (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end]) 00689 start = end 00690 end += 4 00691 (length,) = _struct_I.unpack(str[start:end]) 00692 start = end 00693 end += length 00694 _v51.frame_id = str[start:end] 00695 _v53 = _v50.pose 00696 _v54 = _v53.position 00697 _x = _v54 00698 start = end 00699 end += 24 00700 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end]) 00701 _v55 = _v53.orientation 00702 _x = _v55 00703 start = end 00704 end += 32 00705 (_x.x, _x.y, _x.z, _x.w,) = _struct_4d.unpack(str[start:end]) 00706 _v56 = val1.bounding_box_lwh 00707 _x = _v56 00708 start = end 00709 end += 24 00710 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end]) 00711 self.object_list.detections.append(val1) 00712 return self 00713 except struct.error as e: 00714 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00715 00716 _struct_I = roslib.message.struct_I 00717 _struct_f = struct.Struct("<f") 00718 _struct_BI = struct.Struct("<BI") 00719 _struct_3I = struct.Struct("<3I") 00720 _struct_4i = struct.Struct("<4i") 00721 _struct_4d = struct.Struct("<4d") 00722 _struct_2I = struct.Struct("<2I") 00723 _struct_3d = struct.Struct("<3d") 00724 class UiDetector(roslib.message.ServiceDefinition): 00725 _type = 'srs_assisted_detection/UiDetector' 00726 _md5sum = 'ea930acf9f671a8d56f44a28e3c18f01' 00727 _request_class = UiDetectorRequest 00728 _response_class = UiDetectorResponse