$search
00001 """autogenerated by genmsg_py from srvjloRequest.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 import vision_msgs.msg 00006 00007 class srvjloRequest(roslib.message.Message): 00008 _md5sum = "448f8517a06ac844e556609aee938e74" 00009 _type = "vision_srvs/srvjloRequest" 00010 _has_header = False #flag to mark the presence of a Header object 00011 _full_text = """ 00012 string command 00013 vision_msgs/partial_lo query 00014 00015 ================================================================================ 00016 MSG: vision_msgs/partial_lo 00017 # Message to quiey the lo-service, U. Klank klank@in.tum.de 00018 uint64 id #id of a frame, there should be unique mapping from a tf-name-string to such an id 00019 string name #optional parameter name representing a tf and knowledgebase correspondence 00020 uint64 parent_id #id of parent frame 00021 float64[16] pose #pose matrix, fully projective 4x4 matrix 00022 float64[36] cov #covariance for 6 dof (xyz, rpy) 00023 uint16 type #fixed connection with the parent (1) or free in space (0 = default) 00024 00025 """ 00026 __slots__ = ['command','query'] 00027 _slot_types = ['string','vision_msgs/partial_lo'] 00028 00029 def __init__(self, *args, **kwds): 00030 """ 00031 Constructor. Any message fields that are implicitly/explicitly 00032 set to None will be assigned a default value. The recommend 00033 use is keyword arguments as this is more robust to future message 00034 changes. You cannot mix in-order arguments and keyword arguments. 00035 00036 The available fields are: 00037 command,query 00038 00039 @param args: complete set of field values, in .msg order 00040 @param kwds: use keyword arguments corresponding to message field names 00041 to set specific fields. 00042 """ 00043 if args or kwds: 00044 super(srvjloRequest, self).__init__(*args, **kwds) 00045 #message fields cannot be None, assign default values for those that are 00046 if self.command is None: 00047 self.command = '' 00048 if self.query is None: 00049 self.query = vision_msgs.msg.partial_lo() 00050 else: 00051 self.command = '' 00052 self.query = vision_msgs.msg.partial_lo() 00053 00054 def _get_types(self): 00055 """ 00056 internal API method 00057 """ 00058 return self._slot_types 00059 00060 def serialize(self, buff): 00061 """ 00062 serialize message into buffer 00063 @param buff: buffer 00064 @type buff: StringIO 00065 """ 00066 try: 00067 _x = self.command 00068 length = len(_x) 00069 buff.write(struct.pack('<I%ss'%length, length, _x)) 00070 buff.write(_struct_Q.pack(self.query.id)) 00071 _x = self.query.name 00072 length = len(_x) 00073 buff.write(struct.pack('<I%ss'%length, length, _x)) 00074 buff.write(_struct_Q.pack(self.query.parent_id)) 00075 buff.write(_struct_16d.pack(*self.query.pose)) 00076 buff.write(_struct_36d.pack(*self.query.cov)) 00077 buff.write(_struct_H.pack(self.query.type)) 00078 except struct.error as se: self._check_types(se) 00079 except TypeError as te: self._check_types(te) 00080 00081 def deserialize(self, str): 00082 """ 00083 unpack serialized message in str into this message instance 00084 @param str: byte array of serialized message 00085 @type str: str 00086 """ 00087 try: 00088 if self.query is None: 00089 self.query = vision_msgs.msg.partial_lo() 00090 end = 0 00091 start = end 00092 end += 4 00093 (length,) = _struct_I.unpack(str[start:end]) 00094 start = end 00095 end += length 00096 self.command = str[start:end] 00097 start = end 00098 end += 8 00099 (self.query.id,) = _struct_Q.unpack(str[start:end]) 00100 start = end 00101 end += 4 00102 (length,) = _struct_I.unpack(str[start:end]) 00103 start = end 00104 end += length 00105 self.query.name = str[start:end] 00106 start = end 00107 end += 8 00108 (self.query.parent_id,) = _struct_Q.unpack(str[start:end]) 00109 start = end 00110 end += 128 00111 self.query.pose = _struct_16d.unpack(str[start:end]) 00112 start = end 00113 end += 288 00114 self.query.cov = _struct_36d.unpack(str[start:end]) 00115 start = end 00116 end += 2 00117 (self.query.type,) = _struct_H.unpack(str[start:end]) 00118 return self 00119 except struct.error as e: 00120 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00121 00122 00123 def serialize_numpy(self, buff, numpy): 00124 """ 00125 serialize message with numpy array types into buffer 00126 @param buff: buffer 00127 @type buff: StringIO 00128 @param numpy: numpy python module 00129 @type numpy module 00130 """ 00131 try: 00132 _x = self.command 00133 length = len(_x) 00134 buff.write(struct.pack('<I%ss'%length, length, _x)) 00135 buff.write(_struct_Q.pack(self.query.id)) 00136 _x = self.query.name 00137 length = len(_x) 00138 buff.write(struct.pack('<I%ss'%length, length, _x)) 00139 buff.write(_struct_Q.pack(self.query.parent_id)) 00140 buff.write(self.query.pose.tostring()) 00141 buff.write(self.query.cov.tostring()) 00142 buff.write(_struct_H.pack(self.query.type)) 00143 except struct.error as se: self._check_types(se) 00144 except TypeError as te: self._check_types(te) 00145 00146 def deserialize_numpy(self, str, numpy): 00147 """ 00148 unpack serialized message in str into this message instance using numpy for array types 00149 @param str: byte array of serialized message 00150 @type str: str 00151 @param numpy: numpy python module 00152 @type numpy: module 00153 """ 00154 try: 00155 if self.query is None: 00156 self.query = vision_msgs.msg.partial_lo() 00157 end = 0 00158 start = end 00159 end += 4 00160 (length,) = _struct_I.unpack(str[start:end]) 00161 start = end 00162 end += length 00163 self.command = str[start:end] 00164 start = end 00165 end += 8 00166 (self.query.id,) = _struct_Q.unpack(str[start:end]) 00167 start = end 00168 end += 4 00169 (length,) = _struct_I.unpack(str[start:end]) 00170 start = end 00171 end += length 00172 self.query.name = str[start:end] 00173 start = end 00174 end += 8 00175 (self.query.parent_id,) = _struct_Q.unpack(str[start:end]) 00176 start = end 00177 end += 128 00178 self.query.pose = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=16) 00179 start = end 00180 end += 288 00181 self.query.cov = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=36) 00182 start = end 00183 end += 2 00184 (self.query.type,) = _struct_H.unpack(str[start:end]) 00185 return self 00186 except struct.error as e: 00187 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00188 00189 _struct_I = roslib.message.struct_I 00190 _struct_Q = struct.Struct("<Q") 00191 _struct_16d = struct.Struct("<16d") 00192 _struct_36d = struct.Struct("<36d") 00193 _struct_H = struct.Struct("<H") 00194 """autogenerated by genmsg_py from srvjloResponse.msg. Do not edit.""" 00195 import roslib.message 00196 import struct 00197 00198 import vision_msgs.msg 00199 00200 class srvjloResponse(roslib.message.Message): 00201 _md5sum = "8a198b249660f62ab3353dd7d0ba18d4" 00202 _type = "vision_srvs/srvjloResponse" 00203 _has_header = False #flag to mark the presence of a Header object 00204 _full_text = """string error 00205 vision_msgs/partial_lo answer 00206 00207 00208 ================================================================================ 00209 MSG: vision_msgs/partial_lo 00210 # Message to quiey the lo-service, U. Klank klank@in.tum.de 00211 uint64 id #id of a frame, there should be unique mapping from a tf-name-string to such an id 00212 string name #optional parameter name representing a tf and knowledgebase correspondence 00213 uint64 parent_id #id of parent frame 00214 float64[16] pose #pose matrix, fully projective 4x4 matrix 00215 float64[36] cov #covariance for 6 dof (xyz, rpy) 00216 uint16 type #fixed connection with the parent (1) or free in space (0 = default) 00217 00218 """ 00219 __slots__ = ['error','answer'] 00220 _slot_types = ['string','vision_msgs/partial_lo'] 00221 00222 def __init__(self, *args, **kwds): 00223 """ 00224 Constructor. Any message fields that are implicitly/explicitly 00225 set to None will be assigned a default value. The recommend 00226 use is keyword arguments as this is more robust to future message 00227 changes. You cannot mix in-order arguments and keyword arguments. 00228 00229 The available fields are: 00230 error,answer 00231 00232 @param args: complete set of field values, in .msg order 00233 @param kwds: use keyword arguments corresponding to message field names 00234 to set specific fields. 00235 """ 00236 if args or kwds: 00237 super(srvjloResponse, self).__init__(*args, **kwds) 00238 #message fields cannot be None, assign default values for those that are 00239 if self.error is None: 00240 self.error = '' 00241 if self.answer is None: 00242 self.answer = vision_msgs.msg.partial_lo() 00243 else: 00244 self.error = '' 00245 self.answer = vision_msgs.msg.partial_lo() 00246 00247 def _get_types(self): 00248 """ 00249 internal API method 00250 """ 00251 return self._slot_types 00252 00253 def serialize(self, buff): 00254 """ 00255 serialize message into buffer 00256 @param buff: buffer 00257 @type buff: StringIO 00258 """ 00259 try: 00260 _x = self.error 00261 length = len(_x) 00262 buff.write(struct.pack('<I%ss'%length, length, _x)) 00263 buff.write(_struct_Q.pack(self.answer.id)) 00264 _x = self.answer.name 00265 length = len(_x) 00266 buff.write(struct.pack('<I%ss'%length, length, _x)) 00267 buff.write(_struct_Q.pack(self.answer.parent_id)) 00268 buff.write(_struct_16d.pack(*self.answer.pose)) 00269 buff.write(_struct_36d.pack(*self.answer.cov)) 00270 buff.write(_struct_H.pack(self.answer.type)) 00271 except struct.error as se: self._check_types(se) 00272 except TypeError as te: self._check_types(te) 00273 00274 def deserialize(self, str): 00275 """ 00276 unpack serialized message in str into this message instance 00277 @param str: byte array of serialized message 00278 @type str: str 00279 """ 00280 try: 00281 if self.answer is None: 00282 self.answer = vision_msgs.msg.partial_lo() 00283 end = 0 00284 start = end 00285 end += 4 00286 (length,) = _struct_I.unpack(str[start:end]) 00287 start = end 00288 end += length 00289 self.error = str[start:end] 00290 start = end 00291 end += 8 00292 (self.answer.id,) = _struct_Q.unpack(str[start:end]) 00293 start = end 00294 end += 4 00295 (length,) = _struct_I.unpack(str[start:end]) 00296 start = end 00297 end += length 00298 self.answer.name = str[start:end] 00299 start = end 00300 end += 8 00301 (self.answer.parent_id,) = _struct_Q.unpack(str[start:end]) 00302 start = end 00303 end += 128 00304 self.answer.pose = _struct_16d.unpack(str[start:end]) 00305 start = end 00306 end += 288 00307 self.answer.cov = _struct_36d.unpack(str[start:end]) 00308 start = end 00309 end += 2 00310 (self.answer.type,) = _struct_H.unpack(str[start:end]) 00311 return self 00312 except struct.error as e: 00313 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00314 00315 00316 def serialize_numpy(self, buff, numpy): 00317 """ 00318 serialize message with numpy array types into buffer 00319 @param buff: buffer 00320 @type buff: StringIO 00321 @param numpy: numpy python module 00322 @type numpy module 00323 """ 00324 try: 00325 _x = self.error 00326 length = len(_x) 00327 buff.write(struct.pack('<I%ss'%length, length, _x)) 00328 buff.write(_struct_Q.pack(self.answer.id)) 00329 _x = self.answer.name 00330 length = len(_x) 00331 buff.write(struct.pack('<I%ss'%length, length, _x)) 00332 buff.write(_struct_Q.pack(self.answer.parent_id)) 00333 buff.write(self.answer.pose.tostring()) 00334 buff.write(self.answer.cov.tostring()) 00335 buff.write(_struct_H.pack(self.answer.type)) 00336 except struct.error as se: self._check_types(se) 00337 except TypeError as te: self._check_types(te) 00338 00339 def deserialize_numpy(self, str, numpy): 00340 """ 00341 unpack serialized message in str into this message instance using numpy for array types 00342 @param str: byte array of serialized message 00343 @type str: str 00344 @param numpy: numpy python module 00345 @type numpy: module 00346 """ 00347 try: 00348 if self.answer is None: 00349 self.answer = vision_msgs.msg.partial_lo() 00350 end = 0 00351 start = end 00352 end += 4 00353 (length,) = _struct_I.unpack(str[start:end]) 00354 start = end 00355 end += length 00356 self.error = str[start:end] 00357 start = end 00358 end += 8 00359 (self.answer.id,) = _struct_Q.unpack(str[start:end]) 00360 start = end 00361 end += 4 00362 (length,) = _struct_I.unpack(str[start:end]) 00363 start = end 00364 end += length 00365 self.answer.name = str[start:end] 00366 start = end 00367 end += 8 00368 (self.answer.parent_id,) = _struct_Q.unpack(str[start:end]) 00369 start = end 00370 end += 128 00371 self.answer.pose = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=16) 00372 start = end 00373 end += 288 00374 self.answer.cov = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=36) 00375 start = end 00376 end += 2 00377 (self.answer.type,) = _struct_H.unpack(str[start:end]) 00378 return self 00379 except struct.error as e: 00380 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00381 00382 _struct_I = roslib.message.struct_I 00383 _struct_Q = struct.Struct("<Q") 00384 _struct_16d = struct.Struct("<16d") 00385 _struct_36d = struct.Struct("<36d") 00386 _struct_H = struct.Struct("<H") 00387 class srvjlo(roslib.message.ServiceDefinition): 00388 _type = 'vision_srvs/srvjlo' 00389 _md5sum = '572b4b0c75f505639d3bf0845a2758bc' 00390 _request_class = srvjloRequest 00391 _response_class = srvjloResponse