$search
00001 """autogenerated by genmsg_py from GetTaskListRequest.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 00006 class GetTaskListRequest(roslib.message.Message): 00007 _md5sum = "d41d8cd98f00b204e9800998ecf8427e" 00008 _type = "continuous_ops_msgs/GetTaskListRequest" 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(GetTaskListRequest, 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 GetTaskListResponse.msg. Do not edit.""" 00091 import roslib.message 00092 import struct 00093 00094 import roslib.rostime 00095 import continuous_ops_msgs.msg 00096 00097 class GetTaskListResponse(roslib.message.Message): 00098 _md5sum = "e6fac003aa050bdfb91de78e5697a3e5" 00099 _type = "continuous_ops_msgs/GetTaskListResponse" 00100 _has_header = False #flag to mark the presence of a Header object 00101 _full_text = """Task[] tasks 00102 00103 ================================================================================ 00104 MSG: continuous_ops_msgs/Task 00105 string name 00106 string description 00107 string task_id 00108 string run_id 00109 string launch_file 00110 string image_file 00111 string state 00112 string action_ns 00113 duration timeout 00114 """ 00115 __slots__ = ['tasks'] 00116 _slot_types = ['continuous_ops_msgs/Task[]'] 00117 00118 def __init__(self, *args, **kwds): 00119 """ 00120 Constructor. Any message fields that are implicitly/explicitly 00121 set to None will be assigned a default value. The recommend 00122 use is keyword arguments as this is more robust to future message 00123 changes. You cannot mix in-order arguments and keyword arguments. 00124 00125 The available fields are: 00126 tasks 00127 00128 @param args: complete set of field values, in .msg order 00129 @param kwds: use keyword arguments corresponding to message field names 00130 to set specific fields. 00131 """ 00132 if args or kwds: 00133 super(GetTaskListResponse, self).__init__(*args, **kwds) 00134 #message fields cannot be None, assign default values for those that are 00135 if self.tasks is None: 00136 self.tasks = [] 00137 else: 00138 self.tasks = [] 00139 00140 def _get_types(self): 00141 """ 00142 internal API method 00143 """ 00144 return self._slot_types 00145 00146 def serialize(self, buff): 00147 """ 00148 serialize message into buffer 00149 @param buff: buffer 00150 @type buff: StringIO 00151 """ 00152 try: 00153 length = len(self.tasks) 00154 buff.write(_struct_I.pack(length)) 00155 for val1 in self.tasks: 00156 _x = val1.name 00157 length = len(_x) 00158 buff.write(struct.pack('<I%ss'%length, length, _x)) 00159 _x = val1.description 00160 length = len(_x) 00161 buff.write(struct.pack('<I%ss'%length, length, _x)) 00162 _x = val1.task_id 00163 length = len(_x) 00164 buff.write(struct.pack('<I%ss'%length, length, _x)) 00165 _x = val1.run_id 00166 length = len(_x) 00167 buff.write(struct.pack('<I%ss'%length, length, _x)) 00168 _x = val1.launch_file 00169 length = len(_x) 00170 buff.write(struct.pack('<I%ss'%length, length, _x)) 00171 _x = val1.image_file 00172 length = len(_x) 00173 buff.write(struct.pack('<I%ss'%length, length, _x)) 00174 _x = val1.state 00175 length = len(_x) 00176 buff.write(struct.pack('<I%ss'%length, length, _x)) 00177 _x = val1.action_ns 00178 length = len(_x) 00179 buff.write(struct.pack('<I%ss'%length, length, _x)) 00180 _v1 = val1.timeout 00181 _x = _v1 00182 buff.write(_struct_2i.pack(_x.secs, _x.nsecs)) 00183 except struct.error as se: self._check_types(se) 00184 except TypeError as te: self._check_types(te) 00185 00186 def deserialize(self, str): 00187 """ 00188 unpack serialized message in str into this message instance 00189 @param str: byte array of serialized message 00190 @type str: str 00191 """ 00192 try: 00193 end = 0 00194 start = end 00195 end += 4 00196 (length,) = _struct_I.unpack(str[start:end]) 00197 self.tasks = [] 00198 for i in range(0, length): 00199 val1 = continuous_ops_msgs.msg.Task() 00200 start = end 00201 end += 4 00202 (length,) = _struct_I.unpack(str[start:end]) 00203 start = end 00204 end += length 00205 val1.name = str[start:end] 00206 start = end 00207 end += 4 00208 (length,) = _struct_I.unpack(str[start:end]) 00209 start = end 00210 end += length 00211 val1.description = str[start:end] 00212 start = end 00213 end += 4 00214 (length,) = _struct_I.unpack(str[start:end]) 00215 start = end 00216 end += length 00217 val1.task_id = str[start:end] 00218 start = end 00219 end += 4 00220 (length,) = _struct_I.unpack(str[start:end]) 00221 start = end 00222 end += length 00223 val1.run_id = str[start:end] 00224 start = end 00225 end += 4 00226 (length,) = _struct_I.unpack(str[start:end]) 00227 start = end 00228 end += length 00229 val1.launch_file = str[start:end] 00230 start = end 00231 end += 4 00232 (length,) = _struct_I.unpack(str[start:end]) 00233 start = end 00234 end += length 00235 val1.image_file = str[start:end] 00236 start = end 00237 end += 4 00238 (length,) = _struct_I.unpack(str[start:end]) 00239 start = end 00240 end += length 00241 val1.state = str[start:end] 00242 start = end 00243 end += 4 00244 (length,) = _struct_I.unpack(str[start:end]) 00245 start = end 00246 end += length 00247 val1.action_ns = str[start:end] 00248 _v2 = val1.timeout 00249 _x = _v2 00250 start = end 00251 end += 8 00252 (_x.secs, _x.nsecs,) = _struct_2i.unpack(str[start:end]) 00253 self.tasks.append(val1) 00254 return self 00255 except struct.error as e: 00256 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00257 00258 00259 def serialize_numpy(self, buff, numpy): 00260 """ 00261 serialize message with numpy array types into buffer 00262 @param buff: buffer 00263 @type buff: StringIO 00264 @param numpy: numpy python module 00265 @type numpy module 00266 """ 00267 try: 00268 length = len(self.tasks) 00269 buff.write(_struct_I.pack(length)) 00270 for val1 in self.tasks: 00271 _x = val1.name 00272 length = len(_x) 00273 buff.write(struct.pack('<I%ss'%length, length, _x)) 00274 _x = val1.description 00275 length = len(_x) 00276 buff.write(struct.pack('<I%ss'%length, length, _x)) 00277 _x = val1.task_id 00278 length = len(_x) 00279 buff.write(struct.pack('<I%ss'%length, length, _x)) 00280 _x = val1.run_id 00281 length = len(_x) 00282 buff.write(struct.pack('<I%ss'%length, length, _x)) 00283 _x = val1.launch_file 00284 length = len(_x) 00285 buff.write(struct.pack('<I%ss'%length, length, _x)) 00286 _x = val1.image_file 00287 length = len(_x) 00288 buff.write(struct.pack('<I%ss'%length, length, _x)) 00289 _x = val1.state 00290 length = len(_x) 00291 buff.write(struct.pack('<I%ss'%length, length, _x)) 00292 _x = val1.action_ns 00293 length = len(_x) 00294 buff.write(struct.pack('<I%ss'%length, length, _x)) 00295 _v3 = val1.timeout 00296 _x = _v3 00297 buff.write(_struct_2i.pack(_x.secs, _x.nsecs)) 00298 except struct.error as se: self._check_types(se) 00299 except TypeError as te: self._check_types(te) 00300 00301 def deserialize_numpy(self, str, numpy): 00302 """ 00303 unpack serialized message in str into this message instance using numpy for array types 00304 @param str: byte array of serialized message 00305 @type str: str 00306 @param numpy: numpy python module 00307 @type numpy: module 00308 """ 00309 try: 00310 end = 0 00311 start = end 00312 end += 4 00313 (length,) = _struct_I.unpack(str[start:end]) 00314 self.tasks = [] 00315 for i in range(0, length): 00316 val1 = continuous_ops_msgs.msg.Task() 00317 start = end 00318 end += 4 00319 (length,) = _struct_I.unpack(str[start:end]) 00320 start = end 00321 end += length 00322 val1.name = str[start:end] 00323 start = end 00324 end += 4 00325 (length,) = _struct_I.unpack(str[start:end]) 00326 start = end 00327 end += length 00328 val1.description = str[start:end] 00329 start = end 00330 end += 4 00331 (length,) = _struct_I.unpack(str[start:end]) 00332 start = end 00333 end += length 00334 val1.task_id = str[start:end] 00335 start = end 00336 end += 4 00337 (length,) = _struct_I.unpack(str[start:end]) 00338 start = end 00339 end += length 00340 val1.run_id = str[start:end] 00341 start = end 00342 end += 4 00343 (length,) = _struct_I.unpack(str[start:end]) 00344 start = end 00345 end += length 00346 val1.launch_file = str[start:end] 00347 start = end 00348 end += 4 00349 (length,) = _struct_I.unpack(str[start:end]) 00350 start = end 00351 end += length 00352 val1.image_file = str[start:end] 00353 start = end 00354 end += 4 00355 (length,) = _struct_I.unpack(str[start:end]) 00356 start = end 00357 end += length 00358 val1.state = str[start:end] 00359 start = end 00360 end += 4 00361 (length,) = _struct_I.unpack(str[start:end]) 00362 start = end 00363 end += length 00364 val1.action_ns = str[start:end] 00365 _v4 = val1.timeout 00366 _x = _v4 00367 start = end 00368 end += 8 00369 (_x.secs, _x.nsecs,) = _struct_2i.unpack(str[start:end]) 00370 self.tasks.append(val1) 00371 return self 00372 except struct.error as e: 00373 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00374 00375 _struct_I = roslib.message.struct_I 00376 _struct_2i = struct.Struct("<2i") 00377 class GetTaskList(roslib.message.ServiceDefinition): 00378 _type = 'continuous_ops_msgs/GetTaskList' 00379 _md5sum = 'e6fac003aa050bdfb91de78e5697a3e5' 00380 _request_class = GetTaskListRequest 00381 _response_class = GetTaskListResponse