_KillApplicationAction.py
Go to the documentation of this file.
00001 """autogenerated by genpy from application_msgs/KillApplicationAction.msg. Do not edit."""
00002 import sys
00003 python3 = True if sys.hexversion > 0x03000000 else False
00004 import genpy
00005 import struct
00006 
00007 import application_msgs.msg
00008 import genpy
00009 import actionlib_msgs.msg
00010 import std_msgs.msg
00011 
00012 class KillApplicationAction(genpy.Message):
00013   _md5sum = "9396abc252dcfa9facae3696fcd99ddf"
00014   _type = "application_msgs/KillApplicationAction"
00015   _has_header = False #flag to mark the presence of a Header object
00016   _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00017 
00018 KillApplicationActionGoal action_goal
00019 KillApplicationActionResult action_result
00020 KillApplicationActionFeedback action_feedback
00021 
00022 ================================================================================
00023 MSG: application_msgs/KillApplicationActionGoal
00024 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00025 
00026 Header header
00027 actionlib_msgs/GoalID goal_id
00028 KillApplicationGoal goal
00029 
00030 ================================================================================
00031 MSG: std_msgs/Header
00032 # Standard metadata for higher-level stamped data types.
00033 # This is generally used to communicate timestamped data 
00034 # in a particular coordinate frame.
00035 # 
00036 # sequence ID: consecutively increasing ID 
00037 uint32 seq
00038 #Two-integer timestamp that is expressed as:
00039 # * stamp.secs: seconds (stamp_secs) since epoch
00040 # * stamp.nsecs: nanoseconds since stamp_secs
00041 # time-handling sugar is provided by the client library
00042 time stamp
00043 #Frame this data is associated with
00044 # 0: no frame
00045 # 1: global frame
00046 string frame_id
00047 
00048 ================================================================================
00049 MSG: actionlib_msgs/GoalID
00050 # The stamp should store the time at which this goal was requested.
00051 # It is used by an action server when it tries to preempt all
00052 # goals that were requested before a certain time
00053 time stamp
00054 
00055 # The id provides a way to associate feedback and
00056 # result message with specific goal requests. The id
00057 # specified must be unique.
00058 string id
00059 
00060 
00061 ================================================================================
00062 MSG: application_msgs/KillApplicationGoal
00063 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00064 string application_name
00065 
00066 ================================================================================
00067 MSG: application_msgs/KillApplicationActionResult
00068 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00069 
00070 Header header
00071 actionlib_msgs/GoalStatus status
00072 KillApplicationResult result
00073 
00074 ================================================================================
00075 MSG: actionlib_msgs/GoalStatus
00076 GoalID goal_id
00077 uint8 status
00078 uint8 PENDING         = 0   # The goal has yet to be processed by the action server
00079 uint8 ACTIVE          = 1   # The goal is currently being processed by the action server
00080 uint8 PREEMPTED       = 2   # The goal received a cancel request after it started executing
00081                             #   and has since completed its execution (Terminal State)
00082 uint8 SUCCEEDED       = 3   # The goal was achieved successfully by the action server (Terminal State)
00083 uint8 ABORTED         = 4   # The goal was aborted during execution by the action server due
00084                             #    to some failure (Terminal State)
00085 uint8 REJECTED        = 5   # The goal was rejected by the action server without being processed,
00086                             #    because the goal was unattainable or invalid (Terminal State)
00087 uint8 PREEMPTING      = 6   # The goal received a cancel request after it started executing
00088                             #    and has not yet completed execution
00089 uint8 RECALLING       = 7   # The goal received a cancel request before it started executing,
00090                             #    but the action server has not yet confirmed that the goal is canceled
00091 uint8 RECALLED        = 8   # The goal received a cancel request before it started executing
00092                             #    and was successfully cancelled (Terminal State)
00093 uint8 LOST            = 9   # An action client can determine that a goal is LOST. This should not be
00094                             #    sent over the wire by an action server
00095 
00096 #Allow for the user to associate a string with GoalStatus for debugging
00097 string text
00098 
00099 
00100 ================================================================================
00101 MSG: application_msgs/KillApplicationResult
00102 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00103 
00104 ================================================================================
00105 MSG: application_msgs/KillApplicationActionFeedback
00106 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00107 
00108 Header header
00109 actionlib_msgs/GoalStatus status
00110 KillApplicationFeedback feedback
00111 
00112 ================================================================================
00113 MSG: application_msgs/KillApplicationFeedback
00114 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00115 
00116 
00117 """
00118   __slots__ = ['action_goal','action_result','action_feedback']
00119   _slot_types = ['application_msgs/KillApplicationActionGoal','application_msgs/KillApplicationActionResult','application_msgs/KillApplicationActionFeedback']
00120 
00121   def __init__(self, *args, **kwds):
00122     """
00123     Constructor. Any message fields that are implicitly/explicitly
00124     set to None will be assigned a default value. The recommend
00125     use is keyword arguments as this is more robust to future message
00126     changes.  You cannot mix in-order arguments and keyword arguments.
00127 
00128     The available fields are:
00129        action_goal,action_result,action_feedback
00130 
00131     :param args: complete set of field values, in .msg order
00132     :param kwds: use keyword arguments corresponding to message field names
00133     to set specific fields.
00134     """
00135     if args or kwds:
00136       super(KillApplicationAction, self).__init__(*args, **kwds)
00137       #message fields cannot be None, assign default values for those that are
00138       if self.action_goal is None:
00139         self.action_goal = application_msgs.msg.KillApplicationActionGoal()
00140       if self.action_result is None:
00141         self.action_result = application_msgs.msg.KillApplicationActionResult()
00142       if self.action_feedback is None:
00143         self.action_feedback = application_msgs.msg.KillApplicationActionFeedback()
00144     else:
00145       self.action_goal = application_msgs.msg.KillApplicationActionGoal()
00146       self.action_result = application_msgs.msg.KillApplicationActionResult()
00147       self.action_feedback = application_msgs.msg.KillApplicationActionFeedback()
00148 
00149   def _get_types(self):
00150     """
00151     internal API method
00152     """
00153     return self._slot_types
00154 
00155   def serialize(self, buff):
00156     """
00157     serialize message into buffer
00158     :param buff: buffer, ``StringIO``
00159     """
00160     try:
00161       _x = self
00162       buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00163       _x = self.action_goal.header.frame_id
00164       length = len(_x)
00165       if python3 or type(_x) == unicode:
00166         _x = _x.encode('utf-8')
00167         length = len(_x)
00168       buff.write(struct.pack('<I%ss'%length, length, _x))
00169       _x = self
00170       buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00171       _x = self.action_goal.goal_id.id
00172       length = len(_x)
00173       if python3 or type(_x) == unicode:
00174         _x = _x.encode('utf-8')
00175         length = len(_x)
00176       buff.write(struct.pack('<I%ss'%length, length, _x))
00177       _x = self.action_goal.goal.application_name
00178       length = len(_x)
00179       if python3 or type(_x) == unicode:
00180         _x = _x.encode('utf-8')
00181         length = len(_x)
00182       buff.write(struct.pack('<I%ss'%length, length, _x))
00183       _x = self
00184       buff.write(_struct_3I.pack(_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00185       _x = self.action_result.header.frame_id
00186       length = len(_x)
00187       if python3 or type(_x) == unicode:
00188         _x = _x.encode('utf-8')
00189         length = len(_x)
00190       buff.write(struct.pack('<I%ss'%length, length, _x))
00191       _x = self
00192       buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00193       _x = self.action_result.status.goal_id.id
00194       length = len(_x)
00195       if python3 or type(_x) == unicode:
00196         _x = _x.encode('utf-8')
00197         length = len(_x)
00198       buff.write(struct.pack('<I%ss'%length, length, _x))
00199       buff.write(_struct_B.pack(self.action_result.status.status))
00200       _x = self.action_result.status.text
00201       length = len(_x)
00202       if python3 or type(_x) == unicode:
00203         _x = _x.encode('utf-8')
00204         length = len(_x)
00205       buff.write(struct.pack('<I%ss'%length, length, _x))
00206       _x = self
00207       buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00208       _x = self.action_feedback.header.frame_id
00209       length = len(_x)
00210       if python3 or type(_x) == unicode:
00211         _x = _x.encode('utf-8')
00212         length = len(_x)
00213       buff.write(struct.pack('<I%ss'%length, length, _x))
00214       _x = self
00215       buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00216       _x = self.action_feedback.status.goal_id.id
00217       length = len(_x)
00218       if python3 or type(_x) == unicode:
00219         _x = _x.encode('utf-8')
00220         length = len(_x)
00221       buff.write(struct.pack('<I%ss'%length, length, _x))
00222       buff.write(_struct_B.pack(self.action_feedback.status.status))
00223       _x = self.action_feedback.status.text
00224       length = len(_x)
00225       if python3 or type(_x) == unicode:
00226         _x = _x.encode('utf-8')
00227         length = len(_x)
00228       buff.write(struct.pack('<I%ss'%length, length, _x))
00229     except struct.error as se: self._check_types(se)
00230     except TypeError as te: self._check_types(te)
00231 
00232   def deserialize(self, str):
00233     """
00234     unpack serialized message in str into this message instance
00235     :param str: byte array of serialized message, ``str``
00236     """
00237     try:
00238       if self.action_goal is None:
00239         self.action_goal = application_msgs.msg.KillApplicationActionGoal()
00240       if self.action_result is None:
00241         self.action_result = application_msgs.msg.KillApplicationActionResult()
00242       if self.action_feedback is None:
00243         self.action_feedback = application_msgs.msg.KillApplicationActionFeedback()
00244       end = 0
00245       _x = self
00246       start = end
00247       end += 12
00248       (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00249       start = end
00250       end += 4
00251       (length,) = _struct_I.unpack(str[start:end])
00252       start = end
00253       end += length
00254       if python3:
00255         self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00256       else:
00257         self.action_goal.header.frame_id = str[start:end]
00258       _x = self
00259       start = end
00260       end += 8
00261       (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00262       start = end
00263       end += 4
00264       (length,) = _struct_I.unpack(str[start:end])
00265       start = end
00266       end += length
00267       if python3:
00268         self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00269       else:
00270         self.action_goal.goal_id.id = str[start:end]
00271       start = end
00272       end += 4
00273       (length,) = _struct_I.unpack(str[start:end])
00274       start = end
00275       end += length
00276       if python3:
00277         self.action_goal.goal.application_name = str[start:end].decode('utf-8')
00278       else:
00279         self.action_goal.goal.application_name = str[start:end]
00280       _x = self
00281       start = end
00282       end += 12
00283       (_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00284       start = end
00285       end += 4
00286       (length,) = _struct_I.unpack(str[start:end])
00287       start = end
00288       end += length
00289       if python3:
00290         self.action_result.header.frame_id = str[start:end].decode('utf-8')
00291       else:
00292         self.action_result.header.frame_id = str[start:end]
00293       _x = self
00294       start = end
00295       end += 8
00296       (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00297       start = end
00298       end += 4
00299       (length,) = _struct_I.unpack(str[start:end])
00300       start = end
00301       end += length
00302       if python3:
00303         self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00304       else:
00305         self.action_result.status.goal_id.id = str[start:end]
00306       start = end
00307       end += 1
00308       (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00309       start = end
00310       end += 4
00311       (length,) = _struct_I.unpack(str[start:end])
00312       start = end
00313       end += length
00314       if python3:
00315         self.action_result.status.text = str[start:end].decode('utf-8')
00316       else:
00317         self.action_result.status.text = str[start:end]
00318       _x = self
00319       start = end
00320       end += 12
00321       (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00322       start = end
00323       end += 4
00324       (length,) = _struct_I.unpack(str[start:end])
00325       start = end
00326       end += length
00327       if python3:
00328         self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00329       else:
00330         self.action_feedback.header.frame_id = str[start:end]
00331       _x = self
00332       start = end
00333       end += 8
00334       (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(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         self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00342       else:
00343         self.action_feedback.status.goal_id.id = str[start:end]
00344       start = end
00345       end += 1
00346       (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00347       start = end
00348       end += 4
00349       (length,) = _struct_I.unpack(str[start:end])
00350       start = end
00351       end += length
00352       if python3:
00353         self.action_feedback.status.text = str[start:end].decode('utf-8')
00354       else:
00355         self.action_feedback.status.text = str[start:end]
00356       return self
00357     except struct.error as e:
00358       raise genpy.DeserializationError(e) #most likely buffer underfill
00359 
00360 
00361   def serialize_numpy(self, buff, numpy):
00362     """
00363     serialize message with numpy array types into buffer
00364     :param buff: buffer, ``StringIO``
00365     :param numpy: numpy python module
00366     """
00367     try:
00368       _x = self
00369       buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00370       _x = self.action_goal.header.frame_id
00371       length = len(_x)
00372       if python3 or type(_x) == unicode:
00373         _x = _x.encode('utf-8')
00374         length = len(_x)
00375       buff.write(struct.pack('<I%ss'%length, length, _x))
00376       _x = self
00377       buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00378       _x = self.action_goal.goal_id.id
00379       length = len(_x)
00380       if python3 or type(_x) == unicode:
00381         _x = _x.encode('utf-8')
00382         length = len(_x)
00383       buff.write(struct.pack('<I%ss'%length, length, _x))
00384       _x = self.action_goal.goal.application_name
00385       length = len(_x)
00386       if python3 or type(_x) == unicode:
00387         _x = _x.encode('utf-8')
00388         length = len(_x)
00389       buff.write(struct.pack('<I%ss'%length, length, _x))
00390       _x = self
00391       buff.write(_struct_3I.pack(_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00392       _x = self.action_result.header.frame_id
00393       length = len(_x)
00394       if python3 or type(_x) == unicode:
00395         _x = _x.encode('utf-8')
00396         length = len(_x)
00397       buff.write(struct.pack('<I%ss'%length, length, _x))
00398       _x = self
00399       buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00400       _x = self.action_result.status.goal_id.id
00401       length = len(_x)
00402       if python3 or type(_x) == unicode:
00403         _x = _x.encode('utf-8')
00404         length = len(_x)
00405       buff.write(struct.pack('<I%ss'%length, length, _x))
00406       buff.write(_struct_B.pack(self.action_result.status.status))
00407       _x = self.action_result.status.text
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       _x = self
00414       buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00415       _x = self.action_feedback.header.frame_id
00416       length = len(_x)
00417       if python3 or type(_x) == unicode:
00418         _x = _x.encode('utf-8')
00419         length = len(_x)
00420       buff.write(struct.pack('<I%ss'%length, length, _x))
00421       _x = self
00422       buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00423       _x = self.action_feedback.status.goal_id.id
00424       length = len(_x)
00425       if python3 or type(_x) == unicode:
00426         _x = _x.encode('utf-8')
00427         length = len(_x)
00428       buff.write(struct.pack('<I%ss'%length, length, _x))
00429       buff.write(_struct_B.pack(self.action_feedback.status.status))
00430       _x = self.action_feedback.status.text
00431       length = len(_x)
00432       if python3 or type(_x) == unicode:
00433         _x = _x.encode('utf-8')
00434         length = len(_x)
00435       buff.write(struct.pack('<I%ss'%length, length, _x))
00436     except struct.error as se: self._check_types(se)
00437     except TypeError as te: self._check_types(te)
00438 
00439   def deserialize_numpy(self, str, numpy):
00440     """
00441     unpack serialized message in str into this message instance using numpy for array types
00442     :param str: byte array of serialized message, ``str``
00443     :param numpy: numpy python module
00444     """
00445     try:
00446       if self.action_goal is None:
00447         self.action_goal = application_msgs.msg.KillApplicationActionGoal()
00448       if self.action_result is None:
00449         self.action_result = application_msgs.msg.KillApplicationActionResult()
00450       if self.action_feedback is None:
00451         self.action_feedback = application_msgs.msg.KillApplicationActionFeedback()
00452       end = 0
00453       _x = self
00454       start = end
00455       end += 12
00456       (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00457       start = end
00458       end += 4
00459       (length,) = _struct_I.unpack(str[start:end])
00460       start = end
00461       end += length
00462       if python3:
00463         self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00464       else:
00465         self.action_goal.header.frame_id = str[start:end]
00466       _x = self
00467       start = end
00468       end += 8
00469       (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00470       start = end
00471       end += 4
00472       (length,) = _struct_I.unpack(str[start:end])
00473       start = end
00474       end += length
00475       if python3:
00476         self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00477       else:
00478         self.action_goal.goal_id.id = str[start:end]
00479       start = end
00480       end += 4
00481       (length,) = _struct_I.unpack(str[start:end])
00482       start = end
00483       end += length
00484       if python3:
00485         self.action_goal.goal.application_name = str[start:end].decode('utf-8')
00486       else:
00487         self.action_goal.goal.application_name = str[start:end]
00488       _x = self
00489       start = end
00490       end += 12
00491       (_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00492       start = end
00493       end += 4
00494       (length,) = _struct_I.unpack(str[start:end])
00495       start = end
00496       end += length
00497       if python3:
00498         self.action_result.header.frame_id = str[start:end].decode('utf-8')
00499       else:
00500         self.action_result.header.frame_id = str[start:end]
00501       _x = self
00502       start = end
00503       end += 8
00504       (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00505       start = end
00506       end += 4
00507       (length,) = _struct_I.unpack(str[start:end])
00508       start = end
00509       end += length
00510       if python3:
00511         self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00512       else:
00513         self.action_result.status.goal_id.id = str[start:end]
00514       start = end
00515       end += 1
00516       (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00517       start = end
00518       end += 4
00519       (length,) = _struct_I.unpack(str[start:end])
00520       start = end
00521       end += length
00522       if python3:
00523         self.action_result.status.text = str[start:end].decode('utf-8')
00524       else:
00525         self.action_result.status.text = str[start:end]
00526       _x = self
00527       start = end
00528       end += 12
00529       (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00530       start = end
00531       end += 4
00532       (length,) = _struct_I.unpack(str[start:end])
00533       start = end
00534       end += length
00535       if python3:
00536         self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00537       else:
00538         self.action_feedback.header.frame_id = str[start:end]
00539       _x = self
00540       start = end
00541       end += 8
00542       (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00543       start = end
00544       end += 4
00545       (length,) = _struct_I.unpack(str[start:end])
00546       start = end
00547       end += length
00548       if python3:
00549         self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00550       else:
00551         self.action_feedback.status.goal_id.id = str[start:end]
00552       start = end
00553       end += 1
00554       (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00555       start = end
00556       end += 4
00557       (length,) = _struct_I.unpack(str[start:end])
00558       start = end
00559       end += length
00560       if python3:
00561         self.action_feedback.status.text = str[start:end].decode('utf-8')
00562       else:
00563         self.action_feedback.status.text = str[start:end]
00564       return self
00565     except struct.error as e:
00566       raise genpy.DeserializationError(e) #most likely buffer underfill
00567 
00568 _struct_I = genpy.struct_I
00569 _struct_3I = struct.Struct("<3I")
00570 _struct_B = struct.Struct("<B")
00571 _struct_2I = struct.Struct("<2I")


application_msgs
Author(s):
autogenerated on Mon Dec 2 2013 12:00:38