$search
00001 """autogenerated by genmsg_py from compute_effector_cameraRequest.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 00006 class compute_effector_cameraRequest(roslib.message.Message): 00007 _md5sum = "d41d8cd98f00b204e9800998ecf8427e" 00008 _type = "visp_hand2eye_calibration/compute_effector_cameraRequest" 00009 _has_header = False #flag to mark the presence of a Header object 00010 _full_text = """ 00011 00012 00013 00014 00015 """ 00016 __slots__ = [] 00017 _slot_types = [] 00018 00019 def __init__(self, *args, **kwds): 00020 """ 00021 Constructor. Any message fields that are implicitly/explicitly 00022 set to None will be assigned a default value. The recommend 00023 use is keyword arguments as this is more robust to future message 00024 changes. You cannot mix in-order arguments and keyword arguments. 00025 00026 The available fields are: 00027 00028 00029 @param args: complete set of field values, in .msg order 00030 @param kwds: use keyword arguments corresponding to message field names 00031 to set specific fields. 00032 """ 00033 if args or kwds: 00034 super(compute_effector_cameraRequest, self).__init__(*args, **kwds) 00035 00036 def _get_types(self): 00037 """ 00038 internal API method 00039 """ 00040 return self._slot_types 00041 00042 def serialize(self, buff): 00043 """ 00044 serialize message into buffer 00045 @param buff: buffer 00046 @type buff: StringIO 00047 """ 00048 try: 00049 pass 00050 except struct.error as se: self._check_types(se) 00051 except TypeError as te: self._check_types(te) 00052 00053 def deserialize(self, str): 00054 """ 00055 unpack serialized message in str into this message instance 00056 @param str: byte array of serialized message 00057 @type str: str 00058 """ 00059 try: 00060 end = 0 00061 return self 00062 except struct.error as e: 00063 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00064 00065 00066 def serialize_numpy(self, buff, numpy): 00067 """ 00068 serialize message with numpy array types into buffer 00069 @param buff: buffer 00070 @type buff: StringIO 00071 @param numpy: numpy python module 00072 @type numpy module 00073 """ 00074 try: 00075 pass 00076 except struct.error as se: self._check_types(se) 00077 except TypeError as te: self._check_types(te) 00078 00079 def deserialize_numpy(self, str, numpy): 00080 """ 00081 unpack serialized message in str into this message instance using numpy for array types 00082 @param str: byte array of serialized message 00083 @type str: str 00084 @param numpy: numpy python module 00085 @type numpy: module 00086 """ 00087 try: 00088 end = 0 00089 return self 00090 except struct.error as e: 00091 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00092 00093 _struct_I = roslib.message.struct_I 00094 """autogenerated by genmsg_py from compute_effector_cameraResponse.msg. Do not edit.""" 00095 import roslib.message 00096 import struct 00097 00098 import geometry_msgs.msg 00099 00100 class compute_effector_cameraResponse(roslib.message.Message): 00101 _md5sum = "e28a9ea34e6e135a6309cbdf6fb0ad0d" 00102 _type = "visp_hand2eye_calibration/compute_effector_cameraResponse" 00103 _has_header = False #flag to mark the presence of a Header object 00104 _full_text = """geometry_msgs/Transform effector_camera 00105 00106 ================================================================================ 00107 MSG: geometry_msgs/Transform 00108 # This represents the transform between two coordinate frames in free space. 00109 00110 Vector3 translation 00111 Quaternion rotation 00112 00113 ================================================================================ 00114 MSG: geometry_msgs/Vector3 00115 # This represents a vector in free space. 00116 00117 float64 x 00118 float64 y 00119 float64 z 00120 ================================================================================ 00121 MSG: geometry_msgs/Quaternion 00122 # This represents an orientation in free space in quaternion form. 00123 00124 float64 x 00125 float64 y 00126 float64 z 00127 float64 w 00128 00129 """ 00130 __slots__ = ['effector_camera'] 00131 _slot_types = ['geometry_msgs/Transform'] 00132 00133 def __init__(self, *args, **kwds): 00134 """ 00135 Constructor. Any message fields that are implicitly/explicitly 00136 set to None will be assigned a default value. The recommend 00137 use is keyword arguments as this is more robust to future message 00138 changes. You cannot mix in-order arguments and keyword arguments. 00139 00140 The available fields are: 00141 effector_camera 00142 00143 @param args: complete set of field values, in .msg order 00144 @param kwds: use keyword arguments corresponding to message field names 00145 to set specific fields. 00146 """ 00147 if args or kwds: 00148 super(compute_effector_cameraResponse, self).__init__(*args, **kwds) 00149 #message fields cannot be None, assign default values for those that are 00150 if self.effector_camera is None: 00151 self.effector_camera = geometry_msgs.msg.Transform() 00152 else: 00153 self.effector_camera = geometry_msgs.msg.Transform() 00154 00155 def _get_types(self): 00156 """ 00157 internal API method 00158 """ 00159 return self._slot_types 00160 00161 def serialize(self, buff): 00162 """ 00163 serialize message into buffer 00164 @param buff: buffer 00165 @type buff: StringIO 00166 """ 00167 try: 00168 _x = self 00169 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)) 00170 except struct.error as se: self._check_types(se) 00171 except TypeError as te: self._check_types(te) 00172 00173 def deserialize(self, str): 00174 """ 00175 unpack serialized message in str into this message instance 00176 @param str: byte array of serialized message 00177 @type str: str 00178 """ 00179 try: 00180 if self.effector_camera is None: 00181 self.effector_camera = geometry_msgs.msg.Transform() 00182 end = 0 00183 _x = self 00184 start = end 00185 end += 56 00186 (_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]) 00187 return self 00188 except struct.error as e: 00189 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00190 00191 00192 def serialize_numpy(self, buff, numpy): 00193 """ 00194 serialize message with numpy array types into buffer 00195 @param buff: buffer 00196 @type buff: StringIO 00197 @param numpy: numpy python module 00198 @type numpy module 00199 """ 00200 try: 00201 _x = self 00202 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)) 00203 except struct.error as se: self._check_types(se) 00204 except TypeError as te: self._check_types(te) 00205 00206 def deserialize_numpy(self, str, numpy): 00207 """ 00208 unpack serialized message in str into this message instance using numpy for array types 00209 @param str: byte array of serialized message 00210 @type str: str 00211 @param numpy: numpy python module 00212 @type numpy: module 00213 """ 00214 try: 00215 if self.effector_camera is None: 00216 self.effector_camera = geometry_msgs.msg.Transform() 00217 end = 0 00218 _x = self 00219 start = end 00220 end += 56 00221 (_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]) 00222 return self 00223 except struct.error as e: 00224 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00225 00226 _struct_I = roslib.message.struct_I 00227 _struct_7d = struct.Struct("<7d") 00228 class compute_effector_camera(roslib.message.ServiceDefinition): 00229 _type = 'visp_hand2eye_calibration/compute_effector_camera' 00230 _md5sum = 'e28a9ea34e6e135a6309cbdf6fb0ad0d' 00231 _request_class = compute_effector_cameraRequest 00232 _response_class = compute_effector_cameraResponse