_TriggerPublishAction.py
Go to the documentation of this file.
00001 """autogenerated by genpy from bride_tutorials/TriggerPublishAction.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 genpy
00008 import bride_tutorials.msg
00009 import actionlib_msgs.msg
00010 import std_msgs.msg
00011 
00012 class TriggerPublishAction(genpy.Message):
00013   _md5sum = "125b6c5b3d3654bddadf2855b275822e"
00014   _type = "bride_tutorials/TriggerPublishAction"
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 TriggerPublishActionGoal action_goal
00019 TriggerPublishActionResult action_result
00020 TriggerPublishActionFeedback action_feedback
00021 
00022 ================================================================================
00023 MSG: bride_tutorials/TriggerPublishActionGoal
00024 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00025 
00026 Header header
00027 actionlib_msgs/GoalID goal_id
00028 TriggerPublishGoal 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: bride_tutorials/TriggerPublishGoal
00063 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00064 # Define the goal
00065 uint32 test
00066 
00067 ================================================================================
00068 MSG: bride_tutorials/TriggerPublishActionResult
00069 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00070 
00071 Header header
00072 actionlib_msgs/GoalStatus status
00073 TriggerPublishResult result
00074 
00075 ================================================================================
00076 MSG: actionlib_msgs/GoalStatus
00077 GoalID goal_id
00078 uint8 status
00079 uint8 PENDING         = 0   # The goal has yet to be processed by the action server
00080 uint8 ACTIVE          = 1   # The goal is currently being processed by the action server
00081 uint8 PREEMPTED       = 2   # The goal received a cancel request after it started executing
00082                             #   and has since completed its execution (Terminal State)
00083 uint8 SUCCEEDED       = 3   # The goal was achieved successfully by the action server (Terminal State)
00084 uint8 ABORTED         = 4   # The goal was aborted during execution by the action server due
00085                             #    to some failure (Terminal State)
00086 uint8 REJECTED        = 5   # The goal was rejected by the action server without being processed,
00087                             #    because the goal was unattainable or invalid (Terminal State)
00088 uint8 PREEMPTING      = 6   # The goal received a cancel request after it started executing
00089                             #    and has not yet completed execution
00090 uint8 RECALLING       = 7   # The goal received a cancel request before it started executing,
00091                             #    but the action server has not yet confirmed that the goal is canceled
00092 uint8 RECALLED        = 8   # The goal received a cancel request before it started executing
00093                             #    and was successfully cancelled (Terminal State)
00094 uint8 LOST            = 9   # An action client can determine that a goal is LOST. This should not be
00095                             #    sent over the wire by an action server
00096 
00097 #Allow for the user to associate a string with GoalStatus for debugging
00098 string text
00099 
00100 
00101 ================================================================================
00102 MSG: bride_tutorials/TriggerPublishResult
00103 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00104 # Define the result
00105 
00106 ================================================================================
00107 MSG: bride_tutorials/TriggerPublishActionFeedback
00108 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00109 
00110 Header header
00111 actionlib_msgs/GoalStatus status
00112 TriggerPublishFeedback feedback
00113 
00114 ================================================================================
00115 MSG: bride_tutorials/TriggerPublishFeedback
00116 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00117 # Define a feedback message
00118 
00119 
00120 """
00121   __slots__ = ['action_goal','action_result','action_feedback']
00122   _slot_types = ['bride_tutorials/TriggerPublishActionGoal','bride_tutorials/TriggerPublishActionResult','bride_tutorials/TriggerPublishActionFeedback']
00123 
00124   def __init__(self, *args, **kwds):
00125     """
00126     Constructor. Any message fields that are implicitly/explicitly
00127     set to None will be assigned a default value. The recommend
00128     use is keyword arguments as this is more robust to future message
00129     changes.  You cannot mix in-order arguments and keyword arguments.
00130 
00131     The available fields are:
00132        action_goal,action_result,action_feedback
00133 
00134     :param args: complete set of field values, in .msg order
00135     :param kwds: use keyword arguments corresponding to message field names
00136     to set specific fields.
00137     """
00138     if args or kwds:
00139       super(TriggerPublishAction, self).__init__(*args, **kwds)
00140       #message fields cannot be None, assign default values for those that are
00141       if self.action_goal is None:
00142         self.action_goal = bride_tutorials.msg.TriggerPublishActionGoal()
00143       if self.action_result is None:
00144         self.action_result = bride_tutorials.msg.TriggerPublishActionResult()
00145       if self.action_feedback is None:
00146         self.action_feedback = bride_tutorials.msg.TriggerPublishActionFeedback()
00147     else:
00148       self.action_goal = bride_tutorials.msg.TriggerPublishActionGoal()
00149       self.action_result = bride_tutorials.msg.TriggerPublishActionResult()
00150       self.action_feedback = bride_tutorials.msg.TriggerPublishActionFeedback()
00151 
00152   def _get_types(self):
00153     """
00154     internal API method
00155     """
00156     return self._slot_types
00157 
00158   def serialize(self, buff):
00159     """
00160     serialize message into buffer
00161     :param buff: buffer, ``StringIO``
00162     """
00163     try:
00164       _x = self
00165       buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00166       _x = self.action_goal.header.frame_id
00167       length = len(_x)
00168       if python3 or type(_x) == unicode:
00169         _x = _x.encode('utf-8')
00170         length = len(_x)
00171       buff.write(struct.pack('<I%ss'%length, length, _x))
00172       _x = self
00173       buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00174       _x = self.action_goal.goal_id.id
00175       length = len(_x)
00176       if python3 or type(_x) == unicode:
00177         _x = _x.encode('utf-8')
00178         length = len(_x)
00179       buff.write(struct.pack('<I%ss'%length, length, _x))
00180       _x = self
00181       buff.write(_struct_4I.pack(_x.action_goal.goal.test, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00182       _x = self.action_result.header.frame_id
00183       length = len(_x)
00184       if python3 or type(_x) == unicode:
00185         _x = _x.encode('utf-8')
00186         length = len(_x)
00187       buff.write(struct.pack('<I%ss'%length, length, _x))
00188       _x = self
00189       buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00190       _x = self.action_result.status.goal_id.id
00191       length = len(_x)
00192       if python3 or type(_x) == unicode:
00193         _x = _x.encode('utf-8')
00194         length = len(_x)
00195       buff.write(struct.pack('<I%ss'%length, length, _x))
00196       buff.write(_struct_B.pack(self.action_result.status.status))
00197       _x = self.action_result.status.text
00198       length = len(_x)
00199       if python3 or type(_x) == unicode:
00200         _x = _x.encode('utf-8')
00201         length = len(_x)
00202       buff.write(struct.pack('<I%ss'%length, length, _x))
00203       _x = self
00204       buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00205       _x = self.action_feedback.header.frame_id
00206       length = len(_x)
00207       if python3 or type(_x) == unicode:
00208         _x = _x.encode('utf-8')
00209         length = len(_x)
00210       buff.write(struct.pack('<I%ss'%length, length, _x))
00211       _x = self
00212       buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00213       _x = self.action_feedback.status.goal_id.id
00214       length = len(_x)
00215       if python3 or type(_x) == unicode:
00216         _x = _x.encode('utf-8')
00217         length = len(_x)
00218       buff.write(struct.pack('<I%ss'%length, length, _x))
00219       buff.write(_struct_B.pack(self.action_feedback.status.status))
00220       _x = self.action_feedback.status.text
00221       length = len(_x)
00222       if python3 or type(_x) == unicode:
00223         _x = _x.encode('utf-8')
00224         length = len(_x)
00225       buff.write(struct.pack('<I%ss'%length, length, _x))
00226     except struct.error as se: self._check_types(se)
00227     except TypeError as te: self._check_types(te)
00228 
00229   def deserialize(self, str):
00230     """
00231     unpack serialized message in str into this message instance
00232     :param str: byte array of serialized message, ``str``
00233     """
00234     try:
00235       if self.action_goal is None:
00236         self.action_goal = bride_tutorials.msg.TriggerPublishActionGoal()
00237       if self.action_result is None:
00238         self.action_result = bride_tutorials.msg.TriggerPublishActionResult()
00239       if self.action_feedback is None:
00240         self.action_feedback = bride_tutorials.msg.TriggerPublishActionFeedback()
00241       end = 0
00242       _x = self
00243       start = end
00244       end += 12
00245       (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00246       start = end
00247       end += 4
00248       (length,) = _struct_I.unpack(str[start:end])
00249       start = end
00250       end += length
00251       if python3:
00252         self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00253       else:
00254         self.action_goal.header.frame_id = str[start:end]
00255       _x = self
00256       start = end
00257       end += 8
00258       (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00259       start = end
00260       end += 4
00261       (length,) = _struct_I.unpack(str[start:end])
00262       start = end
00263       end += length
00264       if python3:
00265         self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00266       else:
00267         self.action_goal.goal_id.id = str[start:end]
00268       _x = self
00269       start = end
00270       end += 16
00271       (_x.action_goal.goal.test, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_4I.unpack(str[start:end])
00272       start = end
00273       end += 4
00274       (length,) = _struct_I.unpack(str[start:end])
00275       start = end
00276       end += length
00277       if python3:
00278         self.action_result.header.frame_id = str[start:end].decode('utf-8')
00279       else:
00280         self.action_result.header.frame_id = str[start:end]
00281       _x = self
00282       start = end
00283       end += 8
00284       (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00285       start = end
00286       end += 4
00287       (length,) = _struct_I.unpack(str[start:end])
00288       start = end
00289       end += length
00290       if python3:
00291         self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00292       else:
00293         self.action_result.status.goal_id.id = str[start:end]
00294       start = end
00295       end += 1
00296       (self.action_result.status.status,) = _struct_B.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.text = str[start:end].decode('utf-8')
00304       else:
00305         self.action_result.status.text = str[start:end]
00306       _x = self
00307       start = end
00308       end += 12
00309       (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00310       start = end
00311       end += 4
00312       (length,) = _struct_I.unpack(str[start:end])
00313       start = end
00314       end += length
00315       if python3:
00316         self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00317       else:
00318         self.action_feedback.header.frame_id = str[start:end]
00319       _x = self
00320       start = end
00321       end += 8
00322       (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00323       start = end
00324       end += 4
00325       (length,) = _struct_I.unpack(str[start:end])
00326       start = end
00327       end += length
00328       if python3:
00329         self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00330       else:
00331         self.action_feedback.status.goal_id.id = str[start:end]
00332       start = end
00333       end += 1
00334       (self.action_feedback.status.status,) = _struct_B.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.text = str[start:end].decode('utf-8')
00342       else:
00343         self.action_feedback.status.text = str[start:end]
00344       return self
00345     except struct.error as e:
00346       raise genpy.DeserializationError(e) #most likely buffer underfill
00347 
00348 
00349   def serialize_numpy(self, buff, numpy):
00350     """
00351     serialize message with numpy array types into buffer
00352     :param buff: buffer, ``StringIO``
00353     :param numpy: numpy python module
00354     """
00355     try:
00356       _x = self
00357       buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00358       _x = self.action_goal.header.frame_id
00359       length = len(_x)
00360       if python3 or type(_x) == unicode:
00361         _x = _x.encode('utf-8')
00362         length = len(_x)
00363       buff.write(struct.pack('<I%ss'%length, length, _x))
00364       _x = self
00365       buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00366       _x = self.action_goal.goal_id.id
00367       length = len(_x)
00368       if python3 or type(_x) == unicode:
00369         _x = _x.encode('utf-8')
00370         length = len(_x)
00371       buff.write(struct.pack('<I%ss'%length, length, _x))
00372       _x = self
00373       buff.write(_struct_4I.pack(_x.action_goal.goal.test, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00374       _x = self.action_result.header.frame_id
00375       length = len(_x)
00376       if python3 or type(_x) == unicode:
00377         _x = _x.encode('utf-8')
00378         length = len(_x)
00379       buff.write(struct.pack('<I%ss'%length, length, _x))
00380       _x = self
00381       buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00382       _x = self.action_result.status.goal_id.id
00383       length = len(_x)
00384       if python3 or type(_x) == unicode:
00385         _x = _x.encode('utf-8')
00386         length = len(_x)
00387       buff.write(struct.pack('<I%ss'%length, length, _x))
00388       buff.write(_struct_B.pack(self.action_result.status.status))
00389       _x = self.action_result.status.text
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 = self
00396       buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00397       _x = self.action_feedback.header.frame_id
00398       length = len(_x)
00399       if python3 or type(_x) == unicode:
00400         _x = _x.encode('utf-8')
00401         length = len(_x)
00402       buff.write(struct.pack('<I%ss'%length, length, _x))
00403       _x = self
00404       buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00405       _x = self.action_feedback.status.goal_id.id
00406       length = len(_x)
00407       if python3 or type(_x) == unicode:
00408         _x = _x.encode('utf-8')
00409         length = len(_x)
00410       buff.write(struct.pack('<I%ss'%length, length, _x))
00411       buff.write(_struct_B.pack(self.action_feedback.status.status))
00412       _x = self.action_feedback.status.text
00413       length = len(_x)
00414       if python3 or type(_x) == unicode:
00415         _x = _x.encode('utf-8')
00416         length = len(_x)
00417       buff.write(struct.pack('<I%ss'%length, length, _x))
00418     except struct.error as se: self._check_types(se)
00419     except TypeError as te: self._check_types(te)
00420 
00421   def deserialize_numpy(self, str, numpy):
00422     """
00423     unpack serialized message in str into this message instance using numpy for array types
00424     :param str: byte array of serialized message, ``str``
00425     :param numpy: numpy python module
00426     """
00427     try:
00428       if self.action_goal is None:
00429         self.action_goal = bride_tutorials.msg.TriggerPublishActionGoal()
00430       if self.action_result is None:
00431         self.action_result = bride_tutorials.msg.TriggerPublishActionResult()
00432       if self.action_feedback is None:
00433         self.action_feedback = bride_tutorials.msg.TriggerPublishActionFeedback()
00434       end = 0
00435       _x = self
00436       start = end
00437       end += 12
00438       (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00439       start = end
00440       end += 4
00441       (length,) = _struct_I.unpack(str[start:end])
00442       start = end
00443       end += length
00444       if python3:
00445         self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00446       else:
00447         self.action_goal.header.frame_id = str[start:end]
00448       _x = self
00449       start = end
00450       end += 8
00451       (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00452       start = end
00453       end += 4
00454       (length,) = _struct_I.unpack(str[start:end])
00455       start = end
00456       end += length
00457       if python3:
00458         self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00459       else:
00460         self.action_goal.goal_id.id = str[start:end]
00461       _x = self
00462       start = end
00463       end += 16
00464       (_x.action_goal.goal.test, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_4I.unpack(str[start:end])
00465       start = end
00466       end += 4
00467       (length,) = _struct_I.unpack(str[start:end])
00468       start = end
00469       end += length
00470       if python3:
00471         self.action_result.header.frame_id = str[start:end].decode('utf-8')
00472       else:
00473         self.action_result.header.frame_id = str[start:end]
00474       _x = self
00475       start = end
00476       end += 8
00477       (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00478       start = end
00479       end += 4
00480       (length,) = _struct_I.unpack(str[start:end])
00481       start = end
00482       end += length
00483       if python3:
00484         self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00485       else:
00486         self.action_result.status.goal_id.id = str[start:end]
00487       start = end
00488       end += 1
00489       (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00490       start = end
00491       end += 4
00492       (length,) = _struct_I.unpack(str[start:end])
00493       start = end
00494       end += length
00495       if python3:
00496         self.action_result.status.text = str[start:end].decode('utf-8')
00497       else:
00498         self.action_result.status.text = str[start:end]
00499       _x = self
00500       start = end
00501       end += 12
00502       (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00503       start = end
00504       end += 4
00505       (length,) = _struct_I.unpack(str[start:end])
00506       start = end
00507       end += length
00508       if python3:
00509         self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00510       else:
00511         self.action_feedback.header.frame_id = str[start:end]
00512       _x = self
00513       start = end
00514       end += 8
00515       (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00516       start = end
00517       end += 4
00518       (length,) = _struct_I.unpack(str[start:end])
00519       start = end
00520       end += length
00521       if python3:
00522         self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00523       else:
00524         self.action_feedback.status.goal_id.id = str[start:end]
00525       start = end
00526       end += 1
00527       (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00528       start = end
00529       end += 4
00530       (length,) = _struct_I.unpack(str[start:end])
00531       start = end
00532       end += length
00533       if python3:
00534         self.action_feedback.status.text = str[start:end].decode('utf-8')
00535       else:
00536         self.action_feedback.status.text = str[start:end]
00537       return self
00538     except struct.error as e:
00539       raise genpy.DeserializationError(e) #most likely buffer underfill
00540 
00541 _struct_I = genpy.struct_I
00542 _struct_3I = struct.Struct("<3I")
00543 _struct_B = struct.Struct("<B")
00544 _struct_2I = struct.Struct("<2I")
00545 _struct_4I = struct.Struct("<4I")
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends


bride_tutorials
Author(s): Alexander Bubeck
autogenerated on Wed Aug 14 2013 10:06:03