$search
00001 """autogenerated by genmsg_py from ReorderTaskListRequest.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 00006 class ReorderTaskListRequest(roslib.message.Message): 00007 _md5sum = "cfcccf014e9b4d9d7c659bf7c5fd528c" 00008 _type = "continuous_ops_msgs/ReorderTaskListRequest" 00009 _has_header = False #flag to mark the presence of a Header object 00010 _full_text = """string[] run_id_list 00011 00012 """ 00013 __slots__ = ['run_id_list'] 00014 _slot_types = ['string[]'] 00015 00016 def __init__(self, *args, **kwds): 00017 """ 00018 Constructor. Any message fields that are implicitly/explicitly 00019 set to None will be assigned a default value. The recommend 00020 use is keyword arguments as this is more robust to future message 00021 changes. You cannot mix in-order arguments and keyword arguments. 00022 00023 The available fields are: 00024 run_id_list 00025 00026 @param args: complete set of field values, in .msg order 00027 @param kwds: use keyword arguments corresponding to message field names 00028 to set specific fields. 00029 """ 00030 if args or kwds: 00031 super(ReorderTaskListRequest, self).__init__(*args, **kwds) 00032 #message fields cannot be None, assign default values for those that are 00033 if self.run_id_list is None: 00034 self.run_id_list = [] 00035 else: 00036 self.run_id_list = [] 00037 00038 def _get_types(self): 00039 """ 00040 internal API method 00041 """ 00042 return self._slot_types 00043 00044 def serialize(self, buff): 00045 """ 00046 serialize message into buffer 00047 @param buff: buffer 00048 @type buff: StringIO 00049 """ 00050 try: 00051 length = len(self.run_id_list) 00052 buff.write(_struct_I.pack(length)) 00053 for val1 in self.run_id_list: 00054 length = len(val1) 00055 buff.write(struct.pack('<I%ss'%length, length, val1)) 00056 except struct.error as se: self._check_types(se) 00057 except TypeError as te: self._check_types(te) 00058 00059 def deserialize(self, str): 00060 """ 00061 unpack serialized message in str into this message instance 00062 @param str: byte array of serialized message 00063 @type str: str 00064 """ 00065 try: 00066 end = 0 00067 start = end 00068 end += 4 00069 (length,) = _struct_I.unpack(str[start:end]) 00070 self.run_id_list = [] 00071 for i in range(0, length): 00072 start = end 00073 end += 4 00074 (length,) = _struct_I.unpack(str[start:end]) 00075 start = end 00076 end += length 00077 val1 = str[start:end] 00078 self.run_id_list.append(val1) 00079 return self 00080 except struct.error as e: 00081 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00082 00083 00084 def serialize_numpy(self, buff, numpy): 00085 """ 00086 serialize message with numpy array types into buffer 00087 @param buff: buffer 00088 @type buff: StringIO 00089 @param numpy: numpy python module 00090 @type numpy module 00091 """ 00092 try: 00093 length = len(self.run_id_list) 00094 buff.write(_struct_I.pack(length)) 00095 for val1 in self.run_id_list: 00096 length = len(val1) 00097 buff.write(struct.pack('<I%ss'%length, length, val1)) 00098 except struct.error as se: self._check_types(se) 00099 except TypeError as te: self._check_types(te) 00100 00101 def deserialize_numpy(self, str, numpy): 00102 """ 00103 unpack serialized message in str into this message instance using numpy for array types 00104 @param str: byte array of serialized message 00105 @type str: str 00106 @param numpy: numpy python module 00107 @type numpy: module 00108 """ 00109 try: 00110 end = 0 00111 start = end 00112 end += 4 00113 (length,) = _struct_I.unpack(str[start:end]) 00114 self.run_id_list = [] 00115 for i in range(0, length): 00116 start = end 00117 end += 4 00118 (length,) = _struct_I.unpack(str[start:end]) 00119 start = end 00120 end += length 00121 val1 = str[start:end] 00122 self.run_id_list.append(val1) 00123 return self 00124 except struct.error as e: 00125 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00126 00127 _struct_I = roslib.message.struct_I 00128 """autogenerated by genmsg_py from ReorderTaskListResponse.msg. Do not edit.""" 00129 import roslib.message 00130 import struct 00131 00132 import roslib.rostime 00133 import continuous_ops_msgs.msg 00134 00135 class ReorderTaskListResponse(roslib.message.Message): 00136 _md5sum = "e6fac003aa050bdfb91de78e5697a3e5" 00137 _type = "continuous_ops_msgs/ReorderTaskListResponse" 00138 _has_header = False #flag to mark the presence of a Header object 00139 _full_text = """Task[] tasks 00140 00141 ================================================================================ 00142 MSG: continuous_ops_msgs/Task 00143 string name 00144 string description 00145 string task_id 00146 string run_id 00147 string launch_file 00148 string image_file 00149 string state 00150 string action_ns 00151 duration timeout 00152 """ 00153 __slots__ = ['tasks'] 00154 _slot_types = ['continuous_ops_msgs/Task[]'] 00155 00156 def __init__(self, *args, **kwds): 00157 """ 00158 Constructor. Any message fields that are implicitly/explicitly 00159 set to None will be assigned a default value. The recommend 00160 use is keyword arguments as this is more robust to future message 00161 changes. You cannot mix in-order arguments and keyword arguments. 00162 00163 The available fields are: 00164 tasks 00165 00166 @param args: complete set of field values, in .msg order 00167 @param kwds: use keyword arguments corresponding to message field names 00168 to set specific fields. 00169 """ 00170 if args or kwds: 00171 super(ReorderTaskListResponse, self).__init__(*args, **kwds) 00172 #message fields cannot be None, assign default values for those that are 00173 if self.tasks is None: 00174 self.tasks = [] 00175 else: 00176 self.tasks = [] 00177 00178 def _get_types(self): 00179 """ 00180 internal API method 00181 """ 00182 return self._slot_types 00183 00184 def serialize(self, buff): 00185 """ 00186 serialize message into buffer 00187 @param buff: buffer 00188 @type buff: StringIO 00189 """ 00190 try: 00191 length = len(self.tasks) 00192 buff.write(_struct_I.pack(length)) 00193 for val1 in self.tasks: 00194 _x = val1.name 00195 length = len(_x) 00196 buff.write(struct.pack('<I%ss'%length, length, _x)) 00197 _x = val1.description 00198 length = len(_x) 00199 buff.write(struct.pack('<I%ss'%length, length, _x)) 00200 _x = val1.task_id 00201 length = len(_x) 00202 buff.write(struct.pack('<I%ss'%length, length, _x)) 00203 _x = val1.run_id 00204 length = len(_x) 00205 buff.write(struct.pack('<I%ss'%length, length, _x)) 00206 _x = val1.launch_file 00207 length = len(_x) 00208 buff.write(struct.pack('<I%ss'%length, length, _x)) 00209 _x = val1.image_file 00210 length = len(_x) 00211 buff.write(struct.pack('<I%ss'%length, length, _x)) 00212 _x = val1.state 00213 length = len(_x) 00214 buff.write(struct.pack('<I%ss'%length, length, _x)) 00215 _x = val1.action_ns 00216 length = len(_x) 00217 buff.write(struct.pack('<I%ss'%length, length, _x)) 00218 _v1 = val1.timeout 00219 _x = _v1 00220 buff.write(_struct_2i.pack(_x.secs, _x.nsecs)) 00221 except struct.error as se: self._check_types(se) 00222 except TypeError as te: self._check_types(te) 00223 00224 def deserialize(self, str): 00225 """ 00226 unpack serialized message in str into this message instance 00227 @param str: byte array of serialized message 00228 @type str: str 00229 """ 00230 try: 00231 end = 0 00232 start = end 00233 end += 4 00234 (length,) = _struct_I.unpack(str[start:end]) 00235 self.tasks = [] 00236 for i in range(0, length): 00237 val1 = continuous_ops_msgs.msg.Task() 00238 start = end 00239 end += 4 00240 (length,) = _struct_I.unpack(str[start:end]) 00241 start = end 00242 end += length 00243 val1.name = str[start:end] 00244 start = end 00245 end += 4 00246 (length,) = _struct_I.unpack(str[start:end]) 00247 start = end 00248 end += length 00249 val1.description = str[start:end] 00250 start = end 00251 end += 4 00252 (length,) = _struct_I.unpack(str[start:end]) 00253 start = end 00254 end += length 00255 val1.task_id = str[start:end] 00256 start = end 00257 end += 4 00258 (length,) = _struct_I.unpack(str[start:end]) 00259 start = end 00260 end += length 00261 val1.run_id = str[start:end] 00262 start = end 00263 end += 4 00264 (length,) = _struct_I.unpack(str[start:end]) 00265 start = end 00266 end += length 00267 val1.launch_file = str[start:end] 00268 start = end 00269 end += 4 00270 (length,) = _struct_I.unpack(str[start:end]) 00271 start = end 00272 end += length 00273 val1.image_file = str[start:end] 00274 start = end 00275 end += 4 00276 (length,) = _struct_I.unpack(str[start:end]) 00277 start = end 00278 end += length 00279 val1.state = str[start:end] 00280 start = end 00281 end += 4 00282 (length,) = _struct_I.unpack(str[start:end]) 00283 start = end 00284 end += length 00285 val1.action_ns = str[start:end] 00286 _v2 = val1.timeout 00287 _x = _v2 00288 start = end 00289 end += 8 00290 (_x.secs, _x.nsecs,) = _struct_2i.unpack(str[start:end]) 00291 self.tasks.append(val1) 00292 return self 00293 except struct.error as e: 00294 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00295 00296 00297 def serialize_numpy(self, buff, numpy): 00298 """ 00299 serialize message with numpy array types into buffer 00300 @param buff: buffer 00301 @type buff: StringIO 00302 @param numpy: numpy python module 00303 @type numpy module 00304 """ 00305 try: 00306 length = len(self.tasks) 00307 buff.write(_struct_I.pack(length)) 00308 for val1 in self.tasks: 00309 _x = val1.name 00310 length = len(_x) 00311 buff.write(struct.pack('<I%ss'%length, length, _x)) 00312 _x = val1.description 00313 length = len(_x) 00314 buff.write(struct.pack('<I%ss'%length, length, _x)) 00315 _x = val1.task_id 00316 length = len(_x) 00317 buff.write(struct.pack('<I%ss'%length, length, _x)) 00318 _x = val1.run_id 00319 length = len(_x) 00320 buff.write(struct.pack('<I%ss'%length, length, _x)) 00321 _x = val1.launch_file 00322 length = len(_x) 00323 buff.write(struct.pack('<I%ss'%length, length, _x)) 00324 _x = val1.image_file 00325 length = len(_x) 00326 buff.write(struct.pack('<I%ss'%length, length, _x)) 00327 _x = val1.state 00328 length = len(_x) 00329 buff.write(struct.pack('<I%ss'%length, length, _x)) 00330 _x = val1.action_ns 00331 length = len(_x) 00332 buff.write(struct.pack('<I%ss'%length, length, _x)) 00333 _v3 = val1.timeout 00334 _x = _v3 00335 buff.write(_struct_2i.pack(_x.secs, _x.nsecs)) 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 end = 0 00349 start = end 00350 end += 4 00351 (length,) = _struct_I.unpack(str[start:end]) 00352 self.tasks = [] 00353 for i in range(0, length): 00354 val1 = continuous_ops_msgs.msg.Task() 00355 start = end 00356 end += 4 00357 (length,) = _struct_I.unpack(str[start:end]) 00358 start = end 00359 end += length 00360 val1.name = str[start:end] 00361 start = end 00362 end += 4 00363 (length,) = _struct_I.unpack(str[start:end]) 00364 start = end 00365 end += length 00366 val1.description = str[start:end] 00367 start = end 00368 end += 4 00369 (length,) = _struct_I.unpack(str[start:end]) 00370 start = end 00371 end += length 00372 val1.task_id = str[start:end] 00373 start = end 00374 end += 4 00375 (length,) = _struct_I.unpack(str[start:end]) 00376 start = end 00377 end += length 00378 val1.run_id = str[start:end] 00379 start = end 00380 end += 4 00381 (length,) = _struct_I.unpack(str[start:end]) 00382 start = end 00383 end += length 00384 val1.launch_file = str[start:end] 00385 start = end 00386 end += 4 00387 (length,) = _struct_I.unpack(str[start:end]) 00388 start = end 00389 end += length 00390 val1.image_file = str[start:end] 00391 start = end 00392 end += 4 00393 (length,) = _struct_I.unpack(str[start:end]) 00394 start = end 00395 end += length 00396 val1.state = str[start:end] 00397 start = end 00398 end += 4 00399 (length,) = _struct_I.unpack(str[start:end]) 00400 start = end 00401 end += length 00402 val1.action_ns = str[start:end] 00403 _v4 = val1.timeout 00404 _x = _v4 00405 start = end 00406 end += 8 00407 (_x.secs, _x.nsecs,) = _struct_2i.unpack(str[start:end]) 00408 self.tasks.append(val1) 00409 return self 00410 except struct.error as e: 00411 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00412 00413 _struct_I = roslib.message.struct_I 00414 _struct_2i = struct.Struct("<2i") 00415 class ReorderTaskList(roslib.message.ServiceDefinition): 00416 _type = 'continuous_ops_msgs/ReorderTaskList' 00417 _md5sum = '1cf775a2c70759a4f6f57e508ceca77a' 00418 _request_class = ReorderTaskListRequest 00419 _response_class = ReorderTaskListResponse