_FibonacciAction.py
Go to the documentation of this file.
00001 """autogenerated by genpy from actionlib_tutorials/FibonacciAction.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 actionlib_tutorials.msg
00008 import genpy
00009 import actionlib_msgs.msg
00010 import std_msgs.msg
00011 
00012 class FibonacciAction(genpy.Message):
00013   _md5sum = "f59df5767bf7634684781c92598b2406"
00014   _type = "actionlib_tutorials/FibonacciAction"
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 FibonacciActionGoal action_goal
00019 FibonacciActionResult action_result
00020 FibonacciActionFeedback action_feedback
00021 
00022 ================================================================================
00023 MSG: actionlib_tutorials/FibonacciActionGoal
00024 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00025 
00026 Header header
00027 actionlib_msgs/GoalID goal_id
00028 FibonacciGoal 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: actionlib_tutorials/FibonacciGoal
00063 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00064 #goal definition
00065 int32 order
00066 
00067 ================================================================================
00068 MSG: actionlib_tutorials/FibonacciActionResult
00069 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00070 
00071 Header header
00072 actionlib_msgs/GoalStatus status
00073 FibonacciResult 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: actionlib_tutorials/FibonacciResult
00103 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00104 #result definition
00105 int32[] sequence
00106 
00107 ================================================================================
00108 MSG: actionlib_tutorials/FibonacciActionFeedback
00109 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00110 
00111 Header header
00112 actionlib_msgs/GoalStatus status
00113 FibonacciFeedback feedback
00114 
00115 ================================================================================
00116 MSG: actionlib_tutorials/FibonacciFeedback
00117 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00118 #feedback
00119 int32[] sequence 
00120 
00121 
00122 
00123 """
00124   __slots__ = ['action_goal','action_result','action_feedback']
00125   _slot_types = ['actionlib_tutorials/FibonacciActionGoal','actionlib_tutorials/FibonacciActionResult','actionlib_tutorials/FibonacciActionFeedback']
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(FibonacciAction, 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 = actionlib_tutorials.msg.FibonacciActionGoal()
00146       if self.action_result is None:
00147         self.action_result = actionlib_tutorials.msg.FibonacciActionResult()
00148       if self.action_feedback is None:
00149         self.action_feedback = actionlib_tutorials.msg.FibonacciActionFeedback()
00150     else:
00151       self.action_goal = actionlib_tutorials.msg.FibonacciActionGoal()
00152       self.action_result = actionlib_tutorials.msg.FibonacciActionResult()
00153       self.action_feedback = actionlib_tutorials.msg.FibonacciActionFeedback()
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
00184       buff.write(_struct_i3I.pack(_x.action_goal.goal.order, _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       length = len(self.action_result.result.sequence)
00207       buff.write(_struct_I.pack(length))
00208       pattern = '<%si'%length
00209       buff.write(struct.pack(pattern, *self.action_result.result.sequence))
00210       _x = self
00211       buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00212       _x = self.action_feedback.header.frame_id
00213       length = len(_x)
00214       if python3 or type(_x) == unicode:
00215         _x = _x.encode('utf-8')
00216         length = len(_x)
00217       buff.write(struct.pack('<I%ss'%length, length, _x))
00218       _x = self
00219       buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00220       _x = self.action_feedback.status.goal_id.id
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       buff.write(_struct_B.pack(self.action_feedback.status.status))
00227       _x = self.action_feedback.status.text
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       length = len(self.action_feedback.feedback.sequence)
00234       buff.write(_struct_I.pack(length))
00235       pattern = '<%si'%length
00236       buff.write(struct.pack(pattern, *self.action_feedback.feedback.sequence))
00237     except struct.error as se: self._check_types(se)
00238     except TypeError as te: self._check_types(te)
00239 
00240   def deserialize(self, str):
00241     """
00242     unpack serialized message in str into this message instance
00243     :param str: byte array of serialized message, ``str``
00244     """
00245     try:
00246       if self.action_goal is None:
00247         self.action_goal = actionlib_tutorials.msg.FibonacciActionGoal()
00248       if self.action_result is None:
00249         self.action_result = actionlib_tutorials.msg.FibonacciActionResult()
00250       if self.action_feedback is None:
00251         self.action_feedback = actionlib_tutorials.msg.FibonacciActionFeedback()
00252       end = 0
00253       _x = self
00254       start = end
00255       end += 12
00256       (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00257       start = end
00258       end += 4
00259       (length,) = _struct_I.unpack(str[start:end])
00260       start = end
00261       end += length
00262       if python3:
00263         self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00264       else:
00265         self.action_goal.header.frame_id = str[start:end]
00266       _x = self
00267       start = end
00268       end += 8
00269       (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00270       start = end
00271       end += 4
00272       (length,) = _struct_I.unpack(str[start:end])
00273       start = end
00274       end += length
00275       if python3:
00276         self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00277       else:
00278         self.action_goal.goal_id.id = str[start:end]
00279       _x = self
00280       start = end
00281       end += 16
00282       (_x.action_goal.goal.order, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_i3I.unpack(str[start:end])
00283       start = end
00284       end += 4
00285       (length,) = _struct_I.unpack(str[start:end])
00286       start = end
00287       end += length
00288       if python3:
00289         self.action_result.header.frame_id = str[start:end].decode('utf-8')
00290       else:
00291         self.action_result.header.frame_id = str[start:end]
00292       _x = self
00293       start = end
00294       end += 8
00295       (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00296       start = end
00297       end += 4
00298       (length,) = _struct_I.unpack(str[start:end])
00299       start = end
00300       end += length
00301       if python3:
00302         self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00303       else:
00304         self.action_result.status.goal_id.id = str[start:end]
00305       start = end
00306       end += 1
00307       (self.action_result.status.status,) = _struct_B.unpack(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         self.action_result.status.text = str[start:end].decode('utf-8')
00315       else:
00316         self.action_result.status.text = str[start:end]
00317       start = end
00318       end += 4
00319       (length,) = _struct_I.unpack(str[start:end])
00320       pattern = '<%si'%length
00321       start = end
00322       end += struct.calcsize(pattern)
00323       self.action_result.result.sequence = struct.unpack(pattern, str[start:end])
00324       _x = self
00325       start = end
00326       end += 12
00327       (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00328       start = end
00329       end += 4
00330       (length,) = _struct_I.unpack(str[start:end])
00331       start = end
00332       end += length
00333       if python3:
00334         self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00335       else:
00336         self.action_feedback.header.frame_id = str[start:end]
00337       _x = self
00338       start = end
00339       end += 8
00340       (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00341       start = end
00342       end += 4
00343       (length,) = _struct_I.unpack(str[start:end])
00344       start = end
00345       end += length
00346       if python3:
00347         self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00348       else:
00349         self.action_feedback.status.goal_id.id = str[start:end]
00350       start = end
00351       end += 1
00352       (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00353       start = end
00354       end += 4
00355       (length,) = _struct_I.unpack(str[start:end])
00356       start = end
00357       end += length
00358       if python3:
00359         self.action_feedback.status.text = str[start:end].decode('utf-8')
00360       else:
00361         self.action_feedback.status.text = str[start:end]
00362       start = end
00363       end += 4
00364       (length,) = _struct_I.unpack(str[start:end])
00365       pattern = '<%si'%length
00366       start = end
00367       end += struct.calcsize(pattern)
00368       self.action_feedback.feedback.sequence = struct.unpack(pattern, str[start:end])
00369       return self
00370     except struct.error as e:
00371       raise genpy.DeserializationError(e) #most likely buffer underfill
00372 
00373 
00374   def serialize_numpy(self, buff, numpy):
00375     """
00376     serialize message with numpy array types into buffer
00377     :param buff: buffer, ``StringIO``
00378     :param numpy: numpy python module
00379     """
00380     try:
00381       _x = self
00382       buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00383       _x = self.action_goal.header.frame_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 = self
00390       buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00391       _x = self.action_goal.goal_id.id
00392       length = len(_x)
00393       if python3 or type(_x) == unicode:
00394         _x = _x.encode('utf-8')
00395         length = len(_x)
00396       buff.write(struct.pack('<I%ss'%length, length, _x))
00397       _x = self
00398       buff.write(_struct_i3I.pack(_x.action_goal.goal.order, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00399       _x = self.action_result.header.frame_id
00400       length = len(_x)
00401       if python3 or type(_x) == unicode:
00402         _x = _x.encode('utf-8')
00403         length = len(_x)
00404       buff.write(struct.pack('<I%ss'%length, length, _x))
00405       _x = self
00406       buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00407       _x = self.action_result.status.goal_id.id
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       buff.write(_struct_B.pack(self.action_result.status.status))
00414       _x = self.action_result.status.text
00415       length = len(_x)
00416       if python3 or type(_x) == unicode:
00417         _x = _x.encode('utf-8')
00418         length = len(_x)
00419       buff.write(struct.pack('<I%ss'%length, length, _x))
00420       length = len(self.action_result.result.sequence)
00421       buff.write(_struct_I.pack(length))
00422       pattern = '<%si'%length
00423       buff.write(self.action_result.result.sequence.tostring())
00424       _x = self
00425       buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00426       _x = self.action_feedback.header.frame_id
00427       length = len(_x)
00428       if python3 or type(_x) == unicode:
00429         _x = _x.encode('utf-8')
00430         length = len(_x)
00431       buff.write(struct.pack('<I%ss'%length, length, _x))
00432       _x = self
00433       buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00434       _x = self.action_feedback.status.goal_id.id
00435       length = len(_x)
00436       if python3 or type(_x) == unicode:
00437         _x = _x.encode('utf-8')
00438         length = len(_x)
00439       buff.write(struct.pack('<I%ss'%length, length, _x))
00440       buff.write(_struct_B.pack(self.action_feedback.status.status))
00441       _x = self.action_feedback.status.text
00442       length = len(_x)
00443       if python3 or type(_x) == unicode:
00444         _x = _x.encode('utf-8')
00445         length = len(_x)
00446       buff.write(struct.pack('<I%ss'%length, length, _x))
00447       length = len(self.action_feedback.feedback.sequence)
00448       buff.write(_struct_I.pack(length))
00449       pattern = '<%si'%length
00450       buff.write(self.action_feedback.feedback.sequence.tostring())
00451     except struct.error as se: self._check_types(se)
00452     except TypeError as te: self._check_types(te)
00453 
00454   def deserialize_numpy(self, str, numpy):
00455     """
00456     unpack serialized message in str into this message instance using numpy for array types
00457     :param str: byte array of serialized message, ``str``
00458     :param numpy: numpy python module
00459     """
00460     try:
00461       if self.action_goal is None:
00462         self.action_goal = actionlib_tutorials.msg.FibonacciActionGoal()
00463       if self.action_result is None:
00464         self.action_result = actionlib_tutorials.msg.FibonacciActionResult()
00465       if self.action_feedback is None:
00466         self.action_feedback = actionlib_tutorials.msg.FibonacciActionFeedback()
00467       end = 0
00468       _x = self
00469       start = end
00470       end += 12
00471       (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00472       start = end
00473       end += 4
00474       (length,) = _struct_I.unpack(str[start:end])
00475       start = end
00476       end += length
00477       if python3:
00478         self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00479       else:
00480         self.action_goal.header.frame_id = str[start:end]
00481       _x = self
00482       start = end
00483       end += 8
00484       (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00485       start = end
00486       end += 4
00487       (length,) = _struct_I.unpack(str[start:end])
00488       start = end
00489       end += length
00490       if python3:
00491         self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00492       else:
00493         self.action_goal.goal_id.id = str[start:end]
00494       _x = self
00495       start = end
00496       end += 16
00497       (_x.action_goal.goal.order, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_i3I.unpack(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         self.action_result.header.frame_id = str[start:end].decode('utf-8')
00505       else:
00506         self.action_result.header.frame_id = str[start:end]
00507       _x = self
00508       start = end
00509       end += 8
00510       (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00511       start = end
00512       end += 4
00513       (length,) = _struct_I.unpack(str[start:end])
00514       start = end
00515       end += length
00516       if python3:
00517         self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00518       else:
00519         self.action_result.status.goal_id.id = str[start:end]
00520       start = end
00521       end += 1
00522       (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00523       start = end
00524       end += 4
00525       (length,) = _struct_I.unpack(str[start:end])
00526       start = end
00527       end += length
00528       if python3:
00529         self.action_result.status.text = str[start:end].decode('utf-8')
00530       else:
00531         self.action_result.status.text = str[start:end]
00532       start = end
00533       end += 4
00534       (length,) = _struct_I.unpack(str[start:end])
00535       pattern = '<%si'%length
00536       start = end
00537       end += struct.calcsize(pattern)
00538       self.action_result.result.sequence = numpy.frombuffer(str[start:end], dtype=numpy.int32, count=length)
00539       _x = self
00540       start = end
00541       end += 12
00542       (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.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.header.frame_id = str[start:end].decode('utf-8')
00550       else:
00551         self.action_feedback.header.frame_id = str[start:end]
00552       _x = self
00553       start = end
00554       end += 8
00555       (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00556       start = end
00557       end += 4
00558       (length,) = _struct_I.unpack(str[start:end])
00559       start = end
00560       end += length
00561       if python3:
00562         self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00563       else:
00564         self.action_feedback.status.goal_id.id = str[start:end]
00565       start = end
00566       end += 1
00567       (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00568       start = end
00569       end += 4
00570       (length,) = _struct_I.unpack(str[start:end])
00571       start = end
00572       end += length
00573       if python3:
00574         self.action_feedback.status.text = str[start:end].decode('utf-8')
00575       else:
00576         self.action_feedback.status.text = str[start:end]
00577       start = end
00578       end += 4
00579       (length,) = _struct_I.unpack(str[start:end])
00580       pattern = '<%si'%length
00581       start = end
00582       end += struct.calcsize(pattern)
00583       self.action_feedback.feedback.sequence = numpy.frombuffer(str[start:end], dtype=numpy.int32, count=length)
00584       return self
00585     except struct.error as e:
00586       raise genpy.DeserializationError(e) #most likely buffer underfill
00587 
00588 _struct_I = genpy.struct_I
00589 _struct_3I = struct.Struct("<3I")
00590 _struct_B = struct.Struct("<B")
00591 _struct_2I = struct.Struct("<2I")
00592 _struct_i3I = struct.Struct("<i3I")


actionlib_tutorials
Author(s): Melonee Wise
autogenerated on Thu Jan 2 2014 11:09:44