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