$search
00001 """autogenerated by genmsg_py from AcquireObjectImageRequest.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 import geometry_msgs.msg 00006 import std_msgs.msg 00007 00008 class AcquireObjectImageRequest(roslib.message.Message): 00009 _md5sum = "a834da64b488488418ecf10d2737befd" 00010 _type = "cob_object_detection_msgs/AcquireObjectImageRequest" 00011 _has_header = False #flag to mark the presence of a Header object 00012 _full_text = """string object_name 00013 bool reset_image_counter 00014 geometry_msgs/PoseStamped pose 00015 geometry_msgs/PoseStamped[] sdh_joints 00016 00017 ================================================================================ 00018 MSG: geometry_msgs/PoseStamped 00019 # A Pose with reference coordinate frame and timestamp 00020 Header header 00021 Pose pose 00022 00023 ================================================================================ 00024 MSG: std_msgs/Header 00025 # Standard metadata for higher-level stamped data types. 00026 # This is generally used to communicate timestamped data 00027 # in a particular coordinate frame. 00028 # 00029 # sequence ID: consecutively increasing ID 00030 uint32 seq 00031 #Two-integer timestamp that is expressed as: 00032 # * stamp.secs: seconds (stamp_secs) since epoch 00033 # * stamp.nsecs: nanoseconds since stamp_secs 00034 # time-handling sugar is provided by the client library 00035 time stamp 00036 #Frame this data is associated with 00037 # 0: no frame 00038 # 1: global frame 00039 string frame_id 00040 00041 ================================================================================ 00042 MSG: geometry_msgs/Pose 00043 # A representation of pose in free space, composed of postion and orientation. 00044 Point position 00045 Quaternion orientation 00046 00047 ================================================================================ 00048 MSG: geometry_msgs/Point 00049 # This contains the position of a point in free space 00050 float64 x 00051 float64 y 00052 float64 z 00053 00054 ================================================================================ 00055 MSG: geometry_msgs/Quaternion 00056 # This represents an orientation in free space in quaternion form. 00057 00058 float64 x 00059 float64 y 00060 float64 z 00061 float64 w 00062 00063 """ 00064 __slots__ = ['object_name','reset_image_counter','pose','sdh_joints'] 00065 _slot_types = ['string','bool','geometry_msgs/PoseStamped','geometry_msgs/PoseStamped[]'] 00066 00067 def __init__(self, *args, **kwds): 00068 """ 00069 Constructor. Any message fields that are implicitly/explicitly 00070 set to None will be assigned a default value. The recommend 00071 use is keyword arguments as this is more robust to future message 00072 changes. You cannot mix in-order arguments and keyword arguments. 00073 00074 The available fields are: 00075 object_name,reset_image_counter,pose,sdh_joints 00076 00077 @param args: complete set of field values, in .msg order 00078 @param kwds: use keyword arguments corresponding to message field names 00079 to set specific fields. 00080 """ 00081 if args or kwds: 00082 super(AcquireObjectImageRequest, self).__init__(*args, **kwds) 00083 #message fields cannot be None, assign default values for those that are 00084 if self.object_name is None: 00085 self.object_name = '' 00086 if self.reset_image_counter is None: 00087 self.reset_image_counter = False 00088 if self.pose is None: 00089 self.pose = geometry_msgs.msg.PoseStamped() 00090 if self.sdh_joints is None: 00091 self.sdh_joints = [] 00092 else: 00093 self.object_name = '' 00094 self.reset_image_counter = False 00095 self.pose = geometry_msgs.msg.PoseStamped() 00096 self.sdh_joints = [] 00097 00098 def _get_types(self): 00099 """ 00100 internal API method 00101 """ 00102 return self._slot_types 00103 00104 def serialize(self, buff): 00105 """ 00106 serialize message into buffer 00107 @param buff: buffer 00108 @type buff: StringIO 00109 """ 00110 try: 00111 _x = self.object_name 00112 length = len(_x) 00113 buff.write(struct.pack('<I%ss'%length, length, _x)) 00114 _x = self 00115 buff.write(_struct_B3I.pack(_x.reset_image_counter, _x.pose.header.seq, _x.pose.header.stamp.secs, _x.pose.header.stamp.nsecs)) 00116 _x = self.pose.header.frame_id 00117 length = len(_x) 00118 buff.write(struct.pack('<I%ss'%length, length, _x)) 00119 _x = self 00120 buff.write(_struct_7d.pack(_x.pose.pose.position.x, _x.pose.pose.position.y, _x.pose.pose.position.z, _x.pose.pose.orientation.x, _x.pose.pose.orientation.y, _x.pose.pose.orientation.z, _x.pose.pose.orientation.w)) 00121 length = len(self.sdh_joints) 00122 buff.write(_struct_I.pack(length)) 00123 for val1 in self.sdh_joints: 00124 _v1 = val1.header 00125 buff.write(_struct_I.pack(_v1.seq)) 00126 _v2 = _v1.stamp 00127 _x = _v2 00128 buff.write(_struct_2I.pack(_x.secs, _x.nsecs)) 00129 _x = _v1.frame_id 00130 length = len(_x) 00131 buff.write(struct.pack('<I%ss'%length, length, _x)) 00132 _v3 = val1.pose 00133 _v4 = _v3.position 00134 _x = _v4 00135 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z)) 00136 _v5 = _v3.orientation 00137 _x = _v5 00138 buff.write(_struct_4d.pack(_x.x, _x.y, _x.z, _x.w)) 00139 except struct.error as se: self._check_types(se) 00140 except TypeError as te: self._check_types(te) 00141 00142 def deserialize(self, str): 00143 """ 00144 unpack serialized message in str into this message instance 00145 @param str: byte array of serialized message 00146 @type str: str 00147 """ 00148 try: 00149 if self.pose is None: 00150 self.pose = geometry_msgs.msg.PoseStamped() 00151 end = 0 00152 start = end 00153 end += 4 00154 (length,) = _struct_I.unpack(str[start:end]) 00155 start = end 00156 end += length 00157 self.object_name = str[start:end] 00158 _x = self 00159 start = end 00160 end += 13 00161 (_x.reset_image_counter, _x.pose.header.seq, _x.pose.header.stamp.secs, _x.pose.header.stamp.nsecs,) = _struct_B3I.unpack(str[start:end]) 00162 self.reset_image_counter = bool(self.reset_image_counter) 00163 start = end 00164 end += 4 00165 (length,) = _struct_I.unpack(str[start:end]) 00166 start = end 00167 end += length 00168 self.pose.header.frame_id = str[start:end] 00169 _x = self 00170 start = end 00171 end += 56 00172 (_x.pose.pose.position.x, _x.pose.pose.position.y, _x.pose.pose.position.z, _x.pose.pose.orientation.x, _x.pose.pose.orientation.y, _x.pose.pose.orientation.z, _x.pose.pose.orientation.w,) = _struct_7d.unpack(str[start:end]) 00173 start = end 00174 end += 4 00175 (length,) = _struct_I.unpack(str[start:end]) 00176 self.sdh_joints = [] 00177 for i in range(0, length): 00178 val1 = geometry_msgs.msg.PoseStamped() 00179 _v6 = val1.header 00180 start = end 00181 end += 4 00182 (_v6.seq,) = _struct_I.unpack(str[start:end]) 00183 _v7 = _v6.stamp 00184 _x = _v7 00185 start = end 00186 end += 8 00187 (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end]) 00188 start = end 00189 end += 4 00190 (length,) = _struct_I.unpack(str[start:end]) 00191 start = end 00192 end += length 00193 _v6.frame_id = str[start:end] 00194 _v8 = val1.pose 00195 _v9 = _v8.position 00196 _x = _v9 00197 start = end 00198 end += 24 00199 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end]) 00200 _v10 = _v8.orientation 00201 _x = _v10 00202 start = end 00203 end += 32 00204 (_x.x, _x.y, _x.z, _x.w,) = _struct_4d.unpack(str[start:end]) 00205 self.sdh_joints.append(val1) 00206 return self 00207 except struct.error as e: 00208 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00209 00210 00211 def serialize_numpy(self, buff, numpy): 00212 """ 00213 serialize message with numpy array types into buffer 00214 @param buff: buffer 00215 @type buff: StringIO 00216 @param numpy: numpy python module 00217 @type numpy module 00218 """ 00219 try: 00220 _x = self.object_name 00221 length = len(_x) 00222 buff.write(struct.pack('<I%ss'%length, length, _x)) 00223 _x = self 00224 buff.write(_struct_B3I.pack(_x.reset_image_counter, _x.pose.header.seq, _x.pose.header.stamp.secs, _x.pose.header.stamp.nsecs)) 00225 _x = self.pose.header.frame_id 00226 length = len(_x) 00227 buff.write(struct.pack('<I%ss'%length, length, _x)) 00228 _x = self 00229 buff.write(_struct_7d.pack(_x.pose.pose.position.x, _x.pose.pose.position.y, _x.pose.pose.position.z, _x.pose.pose.orientation.x, _x.pose.pose.orientation.y, _x.pose.pose.orientation.z, _x.pose.pose.orientation.w)) 00230 length = len(self.sdh_joints) 00231 buff.write(_struct_I.pack(length)) 00232 for val1 in self.sdh_joints: 00233 _v11 = val1.header 00234 buff.write(_struct_I.pack(_v11.seq)) 00235 _v12 = _v11.stamp 00236 _x = _v12 00237 buff.write(_struct_2I.pack(_x.secs, _x.nsecs)) 00238 _x = _v11.frame_id 00239 length = len(_x) 00240 buff.write(struct.pack('<I%ss'%length, length, _x)) 00241 _v13 = val1.pose 00242 _v14 = _v13.position 00243 _x = _v14 00244 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z)) 00245 _v15 = _v13.orientation 00246 _x = _v15 00247 buff.write(_struct_4d.pack(_x.x, _x.y, _x.z, _x.w)) 00248 except struct.error as se: self._check_types(se) 00249 except TypeError as te: self._check_types(te) 00250 00251 def deserialize_numpy(self, str, numpy): 00252 """ 00253 unpack serialized message in str into this message instance using numpy for array types 00254 @param str: byte array of serialized message 00255 @type str: str 00256 @param numpy: numpy python module 00257 @type numpy: module 00258 """ 00259 try: 00260 if self.pose is None: 00261 self.pose = geometry_msgs.msg.PoseStamped() 00262 end = 0 00263 start = end 00264 end += 4 00265 (length,) = _struct_I.unpack(str[start:end]) 00266 start = end 00267 end += length 00268 self.object_name = str[start:end] 00269 _x = self 00270 start = end 00271 end += 13 00272 (_x.reset_image_counter, _x.pose.header.seq, _x.pose.header.stamp.secs, _x.pose.header.stamp.nsecs,) = _struct_B3I.unpack(str[start:end]) 00273 self.reset_image_counter = bool(self.reset_image_counter) 00274 start = end 00275 end += 4 00276 (length,) = _struct_I.unpack(str[start:end]) 00277 start = end 00278 end += length 00279 self.pose.header.frame_id = str[start:end] 00280 _x = self 00281 start = end 00282 end += 56 00283 (_x.pose.pose.position.x, _x.pose.pose.position.y, _x.pose.pose.position.z, _x.pose.pose.orientation.x, _x.pose.pose.orientation.y, _x.pose.pose.orientation.z, _x.pose.pose.orientation.w,) = _struct_7d.unpack(str[start:end]) 00284 start = end 00285 end += 4 00286 (length,) = _struct_I.unpack(str[start:end]) 00287 self.sdh_joints = [] 00288 for i in range(0, length): 00289 val1 = geometry_msgs.msg.PoseStamped() 00290 _v16 = val1.header 00291 start = end 00292 end += 4 00293 (_v16.seq,) = _struct_I.unpack(str[start:end]) 00294 _v17 = _v16.stamp 00295 _x = _v17 00296 start = end 00297 end += 8 00298 (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end]) 00299 start = end 00300 end += 4 00301 (length,) = _struct_I.unpack(str[start:end]) 00302 start = end 00303 end += length 00304 _v16.frame_id = str[start:end] 00305 _v18 = val1.pose 00306 _v19 = _v18.position 00307 _x = _v19 00308 start = end 00309 end += 24 00310 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end]) 00311 _v20 = _v18.orientation 00312 _x = _v20 00313 start = end 00314 end += 32 00315 (_x.x, _x.y, _x.z, _x.w,) = _struct_4d.unpack(str[start:end]) 00316 self.sdh_joints.append(val1) 00317 return self 00318 except struct.error as e: 00319 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00320 00321 _struct_I = roslib.message.struct_I 00322 _struct_7d = struct.Struct("<7d") 00323 _struct_B3I = struct.Struct("<B3I") 00324 _struct_4d = struct.Struct("<4d") 00325 _struct_2I = struct.Struct("<2I") 00326 _struct_3d = struct.Struct("<3d") 00327 """autogenerated by genmsg_py from AcquireObjectImageResponse.msg. Do not edit.""" 00328 import roslib.message 00329 import struct 00330 00331 00332 class AcquireObjectImageResponse(roslib.message.Message): 00333 _md5sum = "d41d8cd98f00b204e9800998ecf8427e" 00334 _type = "cob_object_detection_msgs/AcquireObjectImageResponse" 00335 _has_header = False #flag to mark the presence of a Header object 00336 _full_text = """ 00337 00338 00339 """ 00340 __slots__ = [] 00341 _slot_types = [] 00342 00343 def __init__(self, *args, **kwds): 00344 """ 00345 Constructor. Any message fields that are implicitly/explicitly 00346 set to None will be assigned a default value. The recommend 00347 use is keyword arguments as this is more robust to future message 00348 changes. You cannot mix in-order arguments and keyword arguments. 00349 00350 The available fields are: 00351 00352 00353 @param args: complete set of field values, in .msg order 00354 @param kwds: use keyword arguments corresponding to message field names 00355 to set specific fields. 00356 """ 00357 if args or kwds: 00358 super(AcquireObjectImageResponse, self).__init__(*args, **kwds) 00359 00360 def _get_types(self): 00361 """ 00362 internal API method 00363 """ 00364 return self._slot_types 00365 00366 def serialize(self, buff): 00367 """ 00368 serialize message into buffer 00369 @param buff: buffer 00370 @type buff: StringIO 00371 """ 00372 try: 00373 pass 00374 except struct.error as se: self._check_types(se) 00375 except TypeError as te: self._check_types(te) 00376 00377 def deserialize(self, str): 00378 """ 00379 unpack serialized message in str into this message instance 00380 @param str: byte array of serialized message 00381 @type str: str 00382 """ 00383 try: 00384 end = 0 00385 return self 00386 except struct.error as e: 00387 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00388 00389 00390 def serialize_numpy(self, buff, numpy): 00391 """ 00392 serialize message with numpy array types into buffer 00393 @param buff: buffer 00394 @type buff: StringIO 00395 @param numpy: numpy python module 00396 @type numpy module 00397 """ 00398 try: 00399 pass 00400 except struct.error as se: self._check_types(se) 00401 except TypeError as te: self._check_types(te) 00402 00403 def deserialize_numpy(self, str, numpy): 00404 """ 00405 unpack serialized message in str into this message instance using numpy for array types 00406 @param str: byte array of serialized message 00407 @type str: str 00408 @param numpy: numpy python module 00409 @type numpy: module 00410 """ 00411 try: 00412 end = 0 00413 return self 00414 except struct.error as e: 00415 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00416 00417 _struct_I = roslib.message.struct_I 00418 class AcquireObjectImage(roslib.message.ServiceDefinition): 00419 _type = 'cob_object_detection_msgs/AcquireObjectImage' 00420 _md5sum = 'a834da64b488488418ecf10d2737befd' 00421 _request_class = AcquireObjectImageRequest 00422 _response_class = AcquireObjectImageResponse