_ttsAction.py
Go to the documentation of this file.
00001 """autogenerated by genpy from iri_common_drivers_msgs/ttsAction.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 iri_common_drivers_msgs.msg
00008 import genpy
00009 import actionlib_msgs.msg
00010 import std_msgs.msg
00011 
00012 class ttsAction(genpy.Message):
00013   _md5sum = "6122a42b9d59f5eb18c5a51f0152b131"
00014   _type = "iri_common_drivers_msgs/ttsAction"
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 ttsActionGoal action_goal
00019 ttsActionResult action_result
00020 ttsActionFeedback action_feedback
00021 
00022 ================================================================================
00023 MSG: iri_common_drivers_msgs/ttsActionGoal
00024 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00025 
00026 Header header
00027 actionlib_msgs/GoalID goal_id
00028 ttsGoal 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: iri_common_drivers_msgs/ttsGoal
00063 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00064 #goal definition
00065 string msg
00066 
00067 ================================================================================
00068 MSG: iri_common_drivers_msgs/ttsActionResult
00069 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00070 
00071 Header header
00072 actionlib_msgs/GoalStatus status
00073 ttsResult 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: iri_common_drivers_msgs/ttsResult
00103 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00104 #result definition
00105 bool   ok
00106 
00107 ================================================================================
00108 MSG: iri_common_drivers_msgs/ttsActionFeedback
00109 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00110 
00111 Header header
00112 actionlib_msgs/GoalStatus status
00113 ttsFeedback feedback
00114 
00115 ================================================================================
00116 MSG: iri_common_drivers_msgs/ttsFeedback
00117 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00118 #feedback
00119 bool   busy
00120 
00121 
00122 
00123 """
00124   __slots__ = ['action_goal','action_result','action_feedback']
00125   _slot_types = ['iri_common_drivers_msgs/ttsActionGoal','iri_common_drivers_msgs/ttsActionResult','iri_common_drivers_msgs/ttsActionFeedback']
00126 
00127   def __init__(self, *args, **kwds):
00128     """
00129     Constructor. Any message fields that are implicitly/explicitly
00130     set to None will be assigned a default value. The recommend
00131     use is keyword arguments as this is more robust to future message
00132     changes.  You cannot mix in-order arguments and keyword arguments.
00133 
00134     The available fields are:
00135        action_goal,action_result,action_feedback
00136 
00137     :param args: complete set of field values, in .msg order
00138     :param kwds: use keyword arguments corresponding to message field names
00139     to set specific fields.
00140     """
00141     if args or kwds:
00142       super(ttsAction, self).__init__(*args, **kwds)
00143       #message fields cannot be None, assign default values for those that are
00144       if self.action_goal is None:
00145         self.action_goal = iri_common_drivers_msgs.msg.ttsActionGoal()
00146       if self.action_result is None:
00147         self.action_result = iri_common_drivers_msgs.msg.ttsActionResult()
00148       if self.action_feedback is None:
00149         self.action_feedback = iri_common_drivers_msgs.msg.ttsActionFeedback()
00150     else:
00151       self.action_goal = iri_common_drivers_msgs.msg.ttsActionGoal()
00152       self.action_result = iri_common_drivers_msgs.msg.ttsActionResult()
00153       self.action_feedback = iri_common_drivers_msgs.msg.ttsActionFeedback()
00154 
00155   def _get_types(self):
00156     """
00157     internal API method
00158     """
00159     return self._slot_types
00160 
00161   def serialize(self, buff):
00162     """
00163     serialize message into buffer
00164     :param buff: buffer, ``StringIO``
00165     """
00166     try:
00167       _x = self
00168       buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00169       _x = self.action_goal.header.frame_id
00170       length = len(_x)
00171       if python3 or type(_x) == unicode:
00172         _x = _x.encode('utf-8')
00173         length = len(_x)
00174       buff.write(struct.pack('<I%ss'%length, length, _x))
00175       _x = self
00176       buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00177       _x = self.action_goal.goal_id.id
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.action_goal.goal.msg
00184       length = len(_x)
00185       if python3 or type(_x) == unicode:
00186         _x = _x.encode('utf-8')
00187         length = len(_x)
00188       buff.write(struct.pack('<I%ss'%length, length, _x))
00189       _x = self
00190       buff.write(_struct_3I.pack(_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00191       _x = self.action_result.header.frame_id
00192       length = len(_x)
00193       if python3 or type(_x) == unicode:
00194         _x = _x.encode('utf-8')
00195         length = len(_x)
00196       buff.write(struct.pack('<I%ss'%length, length, _x))
00197       _x = self
00198       buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00199       _x = self.action_result.status.goal_id.id
00200       length = len(_x)
00201       if python3 or type(_x) == unicode:
00202         _x = _x.encode('utf-8')
00203         length = len(_x)
00204       buff.write(struct.pack('<I%ss'%length, length, _x))
00205       buff.write(_struct_B.pack(self.action_result.status.status))
00206       _x = self.action_result.status.text
00207       length = len(_x)
00208       if python3 or type(_x) == unicode:
00209         _x = _x.encode('utf-8')
00210         length = len(_x)
00211       buff.write(struct.pack('<I%ss'%length, length, _x))
00212       _x = self
00213       buff.write(_struct_B3I.pack(_x.action_result.result.ok, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00214       _x = self.action_feedback.header.frame_id
00215       length = len(_x)
00216       if python3 or type(_x) == unicode:
00217         _x = _x.encode('utf-8')
00218         length = len(_x)
00219       buff.write(struct.pack('<I%ss'%length, length, _x))
00220       _x = self
00221       buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00222       _x = self.action_feedback.status.goal_id.id
00223       length = len(_x)
00224       if python3 or type(_x) == unicode:
00225         _x = _x.encode('utf-8')
00226         length = len(_x)
00227       buff.write(struct.pack('<I%ss'%length, length, _x))
00228       buff.write(_struct_B.pack(self.action_feedback.status.status))
00229       _x = self.action_feedback.status.text
00230       length = len(_x)
00231       if python3 or type(_x) == unicode:
00232         _x = _x.encode('utf-8')
00233         length = len(_x)
00234       buff.write(struct.pack('<I%ss'%length, length, _x))
00235       buff.write(_struct_B.pack(self.action_feedback.feedback.busy))
00236     except struct.error as se: self._check_types(se)
00237     except TypeError as te: self._check_types(te)
00238 
00239   def deserialize(self, str):
00240     """
00241     unpack serialized message in str into this message instance
00242     :param str: byte array of serialized message, ``str``
00243     """
00244     try:
00245       if self.action_goal is None:
00246         self.action_goal = iri_common_drivers_msgs.msg.ttsActionGoal()
00247       if self.action_result is None:
00248         self.action_result = iri_common_drivers_msgs.msg.ttsActionResult()
00249       if self.action_feedback is None:
00250         self.action_feedback = iri_common_drivers_msgs.msg.ttsActionFeedback()
00251       end = 0
00252       _x = self
00253       start = end
00254       end += 12
00255       (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00256       start = end
00257       end += 4
00258       (length,) = _struct_I.unpack(str[start:end])
00259       start = end
00260       end += length
00261       if python3:
00262         self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00263       else:
00264         self.action_goal.header.frame_id = str[start:end]
00265       _x = self
00266       start = end
00267       end += 8
00268       (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00269       start = end
00270       end += 4
00271       (length,) = _struct_I.unpack(str[start:end])
00272       start = end
00273       end += length
00274       if python3:
00275         self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00276       else:
00277         self.action_goal.goal_id.id = str[start:end]
00278       start = end
00279       end += 4
00280       (length,) = _struct_I.unpack(str[start:end])
00281       start = end
00282       end += length
00283       if python3:
00284         self.action_goal.goal.msg = str[start:end].decode('utf-8')
00285       else:
00286         self.action_goal.goal.msg = str[start:end]
00287       _x = self
00288       start = end
00289       end += 12
00290       (_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00291       start = end
00292       end += 4
00293       (length,) = _struct_I.unpack(str[start:end])
00294       start = end
00295       end += length
00296       if python3:
00297         self.action_result.header.frame_id = str[start:end].decode('utf-8')
00298       else:
00299         self.action_result.header.frame_id = str[start:end]
00300       _x = self
00301       start = end
00302       end += 8
00303       (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00304       start = end
00305       end += 4
00306       (length,) = _struct_I.unpack(str[start:end])
00307       start = end
00308       end += length
00309       if python3:
00310         self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00311       else:
00312         self.action_result.status.goal_id.id = str[start:end]
00313       start = end
00314       end += 1
00315       (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00316       start = end
00317       end += 4
00318       (length,) = _struct_I.unpack(str[start:end])
00319       start = end
00320       end += length
00321       if python3:
00322         self.action_result.status.text = str[start:end].decode('utf-8')
00323       else:
00324         self.action_result.status.text = str[start:end]
00325       _x = self
00326       start = end
00327       end += 13
00328       (_x.action_result.result.ok, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_B3I.unpack(str[start:end])
00329       self.action_result.result.ok = bool(self.action_result.result.ok)
00330       start = end
00331       end += 4
00332       (length,) = _struct_I.unpack(str[start:end])
00333       start = end
00334       end += length
00335       if python3:
00336         self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00337       else:
00338         self.action_feedback.header.frame_id = str[start:end]
00339       _x = self
00340       start = end
00341       end += 8
00342       (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00343       start = end
00344       end += 4
00345       (length,) = _struct_I.unpack(str[start:end])
00346       start = end
00347       end += length
00348       if python3:
00349         self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00350       else:
00351         self.action_feedback.status.goal_id.id = str[start:end]
00352       start = end
00353       end += 1
00354       (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00355       start = end
00356       end += 4
00357       (length,) = _struct_I.unpack(str[start:end])
00358       start = end
00359       end += length
00360       if python3:
00361         self.action_feedback.status.text = str[start:end].decode('utf-8')
00362       else:
00363         self.action_feedback.status.text = str[start:end]
00364       start = end
00365       end += 1
00366       (self.action_feedback.feedback.busy,) = _struct_B.unpack(str[start:end])
00367       self.action_feedback.feedback.busy = bool(self.action_feedback.feedback.busy)
00368       return self
00369     except struct.error as e:
00370       raise genpy.DeserializationError(e) #most likely buffer underfill
00371 
00372 
00373   def serialize_numpy(self, buff, numpy):
00374     """
00375     serialize message with numpy array types into buffer
00376     :param buff: buffer, ``StringIO``
00377     :param numpy: numpy python module
00378     """
00379     try:
00380       _x = self
00381       buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00382       _x = self.action_goal.header.frame_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       _x = self
00389       buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00390       _x = self.action_goal.goal_id.id
00391       length = len(_x)
00392       if python3 or type(_x) == unicode:
00393         _x = _x.encode('utf-8')
00394         length = len(_x)
00395       buff.write(struct.pack('<I%ss'%length, length, _x))
00396       _x = self.action_goal.goal.msg
00397       length = len(_x)
00398       if python3 or type(_x) == unicode:
00399         _x = _x.encode('utf-8')
00400         length = len(_x)
00401       buff.write(struct.pack('<I%ss'%length, length, _x))
00402       _x = self
00403       buff.write(_struct_3I.pack(_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00404       _x = self.action_result.header.frame_id
00405       length = len(_x)
00406       if python3 or type(_x) == unicode:
00407         _x = _x.encode('utf-8')
00408         length = len(_x)
00409       buff.write(struct.pack('<I%ss'%length, length, _x))
00410       _x = self
00411       buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00412       _x = self.action_result.status.goal_id.id
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       buff.write(_struct_B.pack(self.action_result.status.status))
00419       _x = self.action_result.status.text
00420       length = len(_x)
00421       if python3 or type(_x) == unicode:
00422         _x = _x.encode('utf-8')
00423         length = len(_x)
00424       buff.write(struct.pack('<I%ss'%length, length, _x))
00425       _x = self
00426       buff.write(_struct_B3I.pack(_x.action_result.result.ok, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00427       _x = self.action_feedback.header.frame_id
00428       length = len(_x)
00429       if python3 or type(_x) == unicode:
00430         _x = _x.encode('utf-8')
00431         length = len(_x)
00432       buff.write(struct.pack('<I%ss'%length, length, _x))
00433       _x = self
00434       buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00435       _x = self.action_feedback.status.goal_id.id
00436       length = len(_x)
00437       if python3 or type(_x) == unicode:
00438         _x = _x.encode('utf-8')
00439         length = len(_x)
00440       buff.write(struct.pack('<I%ss'%length, length, _x))
00441       buff.write(_struct_B.pack(self.action_feedback.status.status))
00442       _x = self.action_feedback.status.text
00443       length = len(_x)
00444       if python3 or type(_x) == unicode:
00445         _x = _x.encode('utf-8')
00446         length = len(_x)
00447       buff.write(struct.pack('<I%ss'%length, length, _x))
00448       buff.write(_struct_B.pack(self.action_feedback.feedback.busy))
00449     except struct.error as se: self._check_types(se)
00450     except TypeError as te: self._check_types(te)
00451 
00452   def deserialize_numpy(self, str, numpy):
00453     """
00454     unpack serialized message in str into this message instance using numpy for array types
00455     :param str: byte array of serialized message, ``str``
00456     :param numpy: numpy python module
00457     """
00458     try:
00459       if self.action_goal is None:
00460         self.action_goal = iri_common_drivers_msgs.msg.ttsActionGoal()
00461       if self.action_result is None:
00462         self.action_result = iri_common_drivers_msgs.msg.ttsActionResult()
00463       if self.action_feedback is None:
00464         self.action_feedback = iri_common_drivers_msgs.msg.ttsActionFeedback()
00465       end = 0
00466       _x = self
00467       start = end
00468       end += 12
00469       (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.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.header.frame_id = str[start:end].decode('utf-8')
00477       else:
00478         self.action_goal.header.frame_id = str[start:end]
00479       _x = self
00480       start = end
00481       end += 8
00482       (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00483       start = end
00484       end += 4
00485       (length,) = _struct_I.unpack(str[start:end])
00486       start = end
00487       end += length
00488       if python3:
00489         self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00490       else:
00491         self.action_goal.goal_id.id = 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_goal.goal.msg = str[start:end].decode('utf-8')
00499       else:
00500         self.action_goal.goal.msg = str[start:end]
00501       _x = self
00502       start = end
00503       end += 12
00504       (_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_3I.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.header.frame_id = str[start:end].decode('utf-8')
00512       else:
00513         self.action_result.header.frame_id = str[start:end]
00514       _x = self
00515       start = end
00516       end += 8
00517       (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00518       start = end
00519       end += 4
00520       (length,) = _struct_I.unpack(str[start:end])
00521       start = end
00522       end += length
00523       if python3:
00524         self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00525       else:
00526         self.action_result.status.goal_id.id = str[start:end]
00527       start = end
00528       end += 1
00529       (self.action_result.status.status,) = _struct_B.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_result.status.text = str[start:end].decode('utf-8')
00537       else:
00538         self.action_result.status.text = str[start:end]
00539       _x = self
00540       start = end
00541       end += 13
00542       (_x.action_result.result.ok, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_B3I.unpack(str[start:end])
00543       self.action_result.result.ok = bool(self.action_result.result.ok)
00544       start = end
00545       end += 4
00546       (length,) = _struct_I.unpack(str[start:end])
00547       start = end
00548       end += length
00549       if python3:
00550         self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00551       else:
00552         self.action_feedback.header.frame_id = str[start:end]
00553       _x = self
00554       start = end
00555       end += 8
00556       (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00557       start = end
00558       end += 4
00559       (length,) = _struct_I.unpack(str[start:end])
00560       start = end
00561       end += length
00562       if python3:
00563         self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00564       else:
00565         self.action_feedback.status.goal_id.id = str[start:end]
00566       start = end
00567       end += 1
00568       (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00569       start = end
00570       end += 4
00571       (length,) = _struct_I.unpack(str[start:end])
00572       start = end
00573       end += length
00574       if python3:
00575         self.action_feedback.status.text = str[start:end].decode('utf-8')
00576       else:
00577         self.action_feedback.status.text = str[start:end]
00578       start = end
00579       end += 1
00580       (self.action_feedback.feedback.busy,) = _struct_B.unpack(str[start:end])
00581       self.action_feedback.feedback.busy = bool(self.action_feedback.feedback.busy)
00582       return self
00583     except struct.error as e:
00584       raise genpy.DeserializationError(e) #most likely buffer underfill
00585 
00586 _struct_I = genpy.struct_I
00587 _struct_3I = struct.Struct("<3I")
00588 _struct_B = struct.Struct("<B")
00589 _struct_2I = struct.Struct("<2I")
00590 _struct_B3I = struct.Struct("<B3I")


iri_common_drivers_msgs
Author(s): Marti Morta, mmorta at iri.upc.ed
autogenerated on Fri Dec 6 2013 19:59:37