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


continuous_ops_msgs
Author(s): Wim Meeussen
autogenerated on Fri Dec 6 2013 21:18:55