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