$search
00001 """autogenerated by genmsg_py from register_jlo_callbackRequest.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 00006 class register_jlo_callbackRequest(roslib.message.Message): 00007 _md5sum = "b4a1c7e4da9d58ce6fde17f373bed739" 00008 _type = "vision_srvs/register_jlo_callbackRequest" 00009 _has_header = False #flag to mark the presence of a Header object 00010 _full_text = """ 00011 string topic_name 00012 uint64 jlo_id 00013 uint64 parent_id 00014 float64[6] filter_delta_cov 00015 00016 """ 00017 __slots__ = ['topic_name','jlo_id','parent_id','filter_delta_cov'] 00018 _slot_types = ['string','uint64','uint64','float64[6]'] 00019 00020 def __init__(self, *args, **kwds): 00021 """ 00022 Constructor. Any message fields that are implicitly/explicitly 00023 set to None will be assigned a default value. The recommend 00024 use is keyword arguments as this is more robust to future message 00025 changes. You cannot mix in-order arguments and keyword arguments. 00026 00027 The available fields are: 00028 topic_name,jlo_id,parent_id,filter_delta_cov 00029 00030 @param args: complete set of field values, in .msg order 00031 @param kwds: use keyword arguments corresponding to message field names 00032 to set specific fields. 00033 """ 00034 if args or kwds: 00035 super(register_jlo_callbackRequest, self).__init__(*args, **kwds) 00036 #message fields cannot be None, assign default values for those that are 00037 if self.topic_name is None: 00038 self.topic_name = '' 00039 if self.jlo_id is None: 00040 self.jlo_id = 0 00041 if self.parent_id is None: 00042 self.parent_id = 0 00043 if self.filter_delta_cov is None: 00044 self.filter_delta_cov = [0.,0.,0.,0.,0.,0.] 00045 else: 00046 self.topic_name = '' 00047 self.jlo_id = 0 00048 self.parent_id = 0 00049 self.filter_delta_cov = [0.,0.,0.,0.,0.,0.] 00050 00051 def _get_types(self): 00052 """ 00053 internal API method 00054 """ 00055 return self._slot_types 00056 00057 def serialize(self, buff): 00058 """ 00059 serialize message into buffer 00060 @param buff: buffer 00061 @type buff: StringIO 00062 """ 00063 try: 00064 _x = self.topic_name 00065 length = len(_x) 00066 buff.write(struct.pack('<I%ss'%length, length, _x)) 00067 _x = self 00068 buff.write(_struct_2Q.pack(_x.jlo_id, _x.parent_id)) 00069 buff.write(_struct_6d.pack(*self.filter_delta_cov)) 00070 except struct.error as se: self._check_types(se) 00071 except TypeError as te: self._check_types(te) 00072 00073 def deserialize(self, str): 00074 """ 00075 unpack serialized message in str into this message instance 00076 @param str: byte array of serialized message 00077 @type str: str 00078 """ 00079 try: 00080 end = 0 00081 start = end 00082 end += 4 00083 (length,) = _struct_I.unpack(str[start:end]) 00084 start = end 00085 end += length 00086 self.topic_name = str[start:end] 00087 _x = self 00088 start = end 00089 end += 16 00090 (_x.jlo_id, _x.parent_id,) = _struct_2Q.unpack(str[start:end]) 00091 start = end 00092 end += 48 00093 self.filter_delta_cov = _struct_6d.unpack(str[start:end]) 00094 return self 00095 except struct.error as e: 00096 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00097 00098 00099 def serialize_numpy(self, buff, numpy): 00100 """ 00101 serialize message with numpy array types into buffer 00102 @param buff: buffer 00103 @type buff: StringIO 00104 @param numpy: numpy python module 00105 @type numpy module 00106 """ 00107 try: 00108 _x = self.topic_name 00109 length = len(_x) 00110 buff.write(struct.pack('<I%ss'%length, length, _x)) 00111 _x = self 00112 buff.write(_struct_2Q.pack(_x.jlo_id, _x.parent_id)) 00113 buff.write(self.filter_delta_cov.tostring()) 00114 except struct.error as se: self._check_types(se) 00115 except TypeError as te: self._check_types(te) 00116 00117 def deserialize_numpy(self, str, numpy): 00118 """ 00119 unpack serialized message in str into this message instance using numpy for array types 00120 @param str: byte array of serialized message 00121 @type str: str 00122 @param numpy: numpy python module 00123 @type numpy: module 00124 """ 00125 try: 00126 end = 0 00127 start = end 00128 end += 4 00129 (length,) = _struct_I.unpack(str[start:end]) 00130 start = end 00131 end += length 00132 self.topic_name = str[start:end] 00133 _x = self 00134 start = end 00135 end += 16 00136 (_x.jlo_id, _x.parent_id,) = _struct_2Q.unpack(str[start:end]) 00137 start = end 00138 end += 48 00139 self.filter_delta_cov = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=6) 00140 return self 00141 except struct.error as e: 00142 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00143 00144 _struct_I = roslib.message.struct_I 00145 _struct_6d = struct.Struct("<6d") 00146 _struct_2Q = struct.Struct("<2Q") 00147 """autogenerated by genmsg_py from register_jlo_callbackResponse.msg. Do not edit.""" 00148 import roslib.message 00149 import struct 00150 00151 00152 class register_jlo_callbackResponse(roslib.message.Message): 00153 _md5sum = "eca8b96616c32aacf1be8bbf14c70eba" 00154 _type = "vision_srvs/register_jlo_callbackResponse" 00155 _has_header = False #flag to mark the presence of a Header object 00156 _full_text = """string error 00157 00158 """ 00159 __slots__ = ['error'] 00160 _slot_types = ['string'] 00161 00162 def __init__(self, *args, **kwds): 00163 """ 00164 Constructor. Any message fields that are implicitly/explicitly 00165 set to None will be assigned a default value. The recommend 00166 use is keyword arguments as this is more robust to future message 00167 changes. You cannot mix in-order arguments and keyword arguments. 00168 00169 The available fields are: 00170 error 00171 00172 @param args: complete set of field values, in .msg order 00173 @param kwds: use keyword arguments corresponding to message field names 00174 to set specific fields. 00175 """ 00176 if args or kwds: 00177 super(register_jlo_callbackResponse, self).__init__(*args, **kwds) 00178 #message fields cannot be None, assign default values for those that are 00179 if self.error is None: 00180 self.error = '' 00181 else: 00182 self.error = '' 00183 00184 def _get_types(self): 00185 """ 00186 internal API method 00187 """ 00188 return self._slot_types 00189 00190 def serialize(self, buff): 00191 """ 00192 serialize message into buffer 00193 @param buff: buffer 00194 @type buff: StringIO 00195 """ 00196 try: 00197 _x = self.error 00198 length = len(_x) 00199 buff.write(struct.pack('<I%ss'%length, length, _x)) 00200 except struct.error as se: self._check_types(se) 00201 except TypeError as te: self._check_types(te) 00202 00203 def deserialize(self, str): 00204 """ 00205 unpack serialized message in str into this message instance 00206 @param str: byte array of serialized message 00207 @type str: str 00208 """ 00209 try: 00210 end = 0 00211 start = end 00212 end += 4 00213 (length,) = _struct_I.unpack(str[start:end]) 00214 start = end 00215 end += length 00216 self.error = str[start:end] 00217 return self 00218 except struct.error as e: 00219 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00220 00221 00222 def serialize_numpy(self, buff, numpy): 00223 """ 00224 serialize message with numpy array types into buffer 00225 @param buff: buffer 00226 @type buff: StringIO 00227 @param numpy: numpy python module 00228 @type numpy module 00229 """ 00230 try: 00231 _x = self.error 00232 length = len(_x) 00233 buff.write(struct.pack('<I%ss'%length, length, _x)) 00234 except struct.error as se: self._check_types(se) 00235 except TypeError as te: self._check_types(te) 00236 00237 def deserialize_numpy(self, str, numpy): 00238 """ 00239 unpack serialized message in str into this message instance using numpy for array types 00240 @param str: byte array of serialized message 00241 @type str: str 00242 @param numpy: numpy python module 00243 @type numpy: module 00244 """ 00245 try: 00246 end = 0 00247 start = end 00248 end += 4 00249 (length,) = _struct_I.unpack(str[start:end]) 00250 start = end 00251 end += length 00252 self.error = str[start:end] 00253 return self 00254 except struct.error as e: 00255 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00256 00257 _struct_I = roslib.message.struct_I 00258 class register_jlo_callback(roslib.message.ServiceDefinition): 00259 _type = 'vision_srvs/register_jlo_callback' 00260 _md5sum = '4ebd0d41ee3295d3b5b92eeaa53db753' 00261 _request_class = register_jlo_callbackRequest 00262 _response_class = register_jlo_callbackResponse