_TopicLoggerAction.py
Go to the documentation of this file.
00001 """autogenerated by genpy from topic_logger/TopicLoggerAction.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 topic_logger.msg
00008 import genpy
00009 import actionlib_msgs.msg
00010 import std_msgs.msg
00011 
00012 class TopicLoggerAction(genpy.Message):
00013   _md5sum = "98080048fc406d0ce888bb06075389ae"
00014   _type = "topic_logger/TopicLoggerAction"
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 TopicLoggerActionGoal action_goal
00019 TopicLoggerActionResult action_result
00020 TopicLoggerActionFeedback action_feedback
00021 
00022 ================================================================================
00023 MSG: topic_logger/TopicLoggerActionGoal
00024 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00025 
00026 Header header
00027 actionlib_msgs/GoalID goal_id
00028 TopicLoggerGoal 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: topic_logger/TopicLoggerGoal
00063 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00064 #goal definition
00065 string command
00066 string ID
00067 string[] selectedTopics
00068 
00069 ================================================================================
00070 MSG: topic_logger/TopicLoggerActionResult
00071 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00072 
00073 Header header
00074 actionlib_msgs/GoalStatus status
00075 TopicLoggerResult result
00076 
00077 ================================================================================
00078 MSG: actionlib_msgs/GoalStatus
00079 GoalID goal_id
00080 uint8 status
00081 uint8 PENDING         = 0   # The goal has yet to be processed by the action server
00082 uint8 ACTIVE          = 1   # The goal is currently being processed by the action server
00083 uint8 PREEMPTED       = 2   # The goal received a cancel request after it started executing
00084                             #   and has since completed its execution (Terminal State)
00085 uint8 SUCCEEDED       = 3   # The goal was achieved successfully by the action server (Terminal State)
00086 uint8 ABORTED         = 4   # The goal was aborted during execution by the action server due
00087                             #    to some failure (Terminal State)
00088 uint8 REJECTED        = 5   # The goal was rejected by the action server without being processed,
00089                             #    because the goal was unattainable or invalid (Terminal State)
00090 uint8 PREEMPTING      = 6   # The goal received a cancel request after it started executing
00091                             #    and has not yet completed execution
00092 uint8 RECALLING       = 7   # The goal received a cancel request before it started executing,
00093                             #    but the action server has not yet confirmed that the goal is canceled
00094 uint8 RECALLED        = 8   # The goal received a cancel request before it started executing
00095                             #    and was successfully cancelled (Terminal State)
00096 uint8 LOST            = 9   # An action client can determine that a goal is LOST. This should not be
00097                             #    sent over the wire by an action server
00098 
00099 #Allow for the user to associate a string with GoalStatus for debugging
00100 string text
00101 
00102 
00103 ================================================================================
00104 MSG: topic_logger/TopicLoggerResult
00105 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00106 #result definition
00107 string downloadURL
00108 string target_filename
00109 
00110 ================================================================================
00111 MSG: topic_logger/TopicLoggerActionFeedback
00112 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00113 
00114 Header header
00115 actionlib_msgs/GoalStatus status
00116 TopicLoggerFeedback feedback
00117 
00118 ================================================================================
00119 MSG: topic_logger/TopicLoggerFeedback
00120 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00121 #feedback
00122 float32 filesize
00123 
00124 """
00125   __slots__ = ['action_goal','action_result','action_feedback']
00126   _slot_types = ['topic_logger/TopicLoggerActionGoal','topic_logger/TopicLoggerActionResult','topic_logger/TopicLoggerActionFeedback']
00127 
00128   def __init__(self, *args, **kwds):
00129     """
00130     Constructor. Any message fields that are implicitly/explicitly
00131     set to None will be assigned a default value. The recommend
00132     use is keyword arguments as this is more robust to future message
00133     changes.  You cannot mix in-order arguments and keyword arguments.
00134 
00135     The available fields are:
00136        action_goal,action_result,action_feedback
00137 
00138     :param args: complete set of field values, in .msg order
00139     :param kwds: use keyword arguments corresponding to message field names
00140     to set specific fields.
00141     """
00142     if args or kwds:
00143       super(TopicLoggerAction, self).__init__(*args, **kwds)
00144       #message fields cannot be None, assign default values for those that are
00145       if self.action_goal is None:
00146         self.action_goal = topic_logger.msg.TopicLoggerActionGoal()
00147       if self.action_result is None:
00148         self.action_result = topic_logger.msg.TopicLoggerActionResult()
00149       if self.action_feedback is None:
00150         self.action_feedback = topic_logger.msg.TopicLoggerActionFeedback()
00151     else:
00152       self.action_goal = topic_logger.msg.TopicLoggerActionGoal()
00153       self.action_result = topic_logger.msg.TopicLoggerActionResult()
00154       self.action_feedback = topic_logger.msg.TopicLoggerActionFeedback()
00155 
00156   def _get_types(self):
00157     """
00158     internal API method
00159     """
00160     return self._slot_types
00161 
00162   def serialize(self, buff):
00163     """
00164     serialize message into buffer
00165     :param buff: buffer, ``StringIO``
00166     """
00167     try:
00168       _x = self
00169       buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00170       _x = self.action_goal.header.frame_id
00171       length = len(_x)
00172       if python3 or type(_x) == unicode:
00173         _x = _x.encode('utf-8')
00174         length = len(_x)
00175       buff.write(struct.pack('<I%ss'%length, length, _x))
00176       _x = self
00177       buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00178       _x = self.action_goal.goal_id.id
00179       length = len(_x)
00180       if python3 or type(_x) == unicode:
00181         _x = _x.encode('utf-8')
00182         length = len(_x)
00183       buff.write(struct.pack('<I%ss'%length, length, _x))
00184       _x = self.action_goal.goal.command
00185       length = len(_x)
00186       if python3 or type(_x) == unicode:
00187         _x = _x.encode('utf-8')
00188         length = len(_x)
00189       buff.write(struct.pack('<I%ss'%length, length, _x))
00190       _x = self.action_goal.goal.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       length = len(self.action_goal.goal.selectedTopics)
00197       buff.write(_struct_I.pack(length))
00198       for val1 in self.action_goal.goal.selectedTopics:
00199         length = len(val1)
00200         if python3 or type(val1) == unicode:
00201           val1 = val1.encode('utf-8')
00202           length = len(val1)
00203         buff.write(struct.pack('<I%ss'%length, length, val1))
00204       _x = self
00205       buff.write(_struct_3I.pack(_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00206       _x = self.action_result.header.frame_id
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_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00214       _x = self.action_result.status.goal_id.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       buff.write(_struct_B.pack(self.action_result.status.status))
00221       _x = self.action_result.status.text
00222       length = len(_x)
00223       if python3 or type(_x) == unicode:
00224         _x = _x.encode('utf-8')
00225         length = len(_x)
00226       buff.write(struct.pack('<I%ss'%length, length, _x))
00227       _x = self.action_result.result.downloadURL
00228       length = len(_x)
00229       if python3 or type(_x) == unicode:
00230         _x = _x.encode('utf-8')
00231         length = len(_x)
00232       buff.write(struct.pack('<I%ss'%length, length, _x))
00233       _x = self.action_result.result.target_filename
00234       length = len(_x)
00235       if python3 or type(_x) == unicode:
00236         _x = _x.encode('utf-8')
00237         length = len(_x)
00238       buff.write(struct.pack('<I%ss'%length, length, _x))
00239       _x = self
00240       buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00241       _x = self.action_feedback.header.frame_id
00242       length = len(_x)
00243       if python3 or type(_x) == unicode:
00244         _x = _x.encode('utf-8')
00245         length = len(_x)
00246       buff.write(struct.pack('<I%ss'%length, length, _x))
00247       _x = self
00248       buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00249       _x = self.action_feedback.status.goal_id.id
00250       length = len(_x)
00251       if python3 or type(_x) == unicode:
00252         _x = _x.encode('utf-8')
00253         length = len(_x)
00254       buff.write(struct.pack('<I%ss'%length, length, _x))
00255       buff.write(_struct_B.pack(self.action_feedback.status.status))
00256       _x = self.action_feedback.status.text
00257       length = len(_x)
00258       if python3 or type(_x) == unicode:
00259         _x = _x.encode('utf-8')
00260         length = len(_x)
00261       buff.write(struct.pack('<I%ss'%length, length, _x))
00262       buff.write(_struct_f.pack(self.action_feedback.feedback.filesize))
00263     except struct.error as se: self._check_types(se)
00264     except TypeError as te: self._check_types(te)
00265 
00266   def deserialize(self, str):
00267     """
00268     unpack serialized message in str into this message instance
00269     :param str: byte array of serialized message, ``str``
00270     """
00271     try:
00272       if self.action_goal is None:
00273         self.action_goal = topic_logger.msg.TopicLoggerActionGoal()
00274       if self.action_result is None:
00275         self.action_result = topic_logger.msg.TopicLoggerActionResult()
00276       if self.action_feedback is None:
00277         self.action_feedback = topic_logger.msg.TopicLoggerActionFeedback()
00278       end = 0
00279       _x = self
00280       start = end
00281       end += 12
00282       (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.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_goal.header.frame_id = str[start:end].decode('utf-8')
00290       else:
00291         self.action_goal.header.frame_id = str[start:end]
00292       _x = self
00293       start = end
00294       end += 8
00295       (_x.action_goal.goal_id.stamp.secs, _x.action_goal.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_goal.goal_id.id = str[start:end].decode('utf-8')
00303       else:
00304         self.action_goal.goal_id.id = str[start:end]
00305       start = end
00306       end += 4
00307       (length,) = _struct_I.unpack(str[start:end])
00308       start = end
00309       end += length
00310       if python3:
00311         self.action_goal.goal.command = str[start:end].decode('utf-8')
00312       else:
00313         self.action_goal.goal.command = str[start:end]
00314       start = end
00315       end += 4
00316       (length,) = _struct_I.unpack(str[start:end])
00317       start = end
00318       end += length
00319       if python3:
00320         self.action_goal.goal.ID = str[start:end].decode('utf-8')
00321       else:
00322         self.action_goal.goal.ID = str[start:end]
00323       start = end
00324       end += 4
00325       (length,) = _struct_I.unpack(str[start:end])
00326       self.action_goal.goal.selectedTopics = []
00327       for i in range(0, length):
00328         start = end
00329         end += 4
00330         (length,) = _struct_I.unpack(str[start:end])
00331         start = end
00332         end += length
00333         if python3:
00334           val1 = str[start:end].decode('utf-8')
00335         else:
00336           val1 = str[start:end]
00337         self.action_goal.goal.selectedTopics.append(val1)
00338       _x = self
00339       start = end
00340       end += 12
00341       (_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00342       start = end
00343       end += 4
00344       (length,) = _struct_I.unpack(str[start:end])
00345       start = end
00346       end += length
00347       if python3:
00348         self.action_result.header.frame_id = str[start:end].decode('utf-8')
00349       else:
00350         self.action_result.header.frame_id = str[start:end]
00351       _x = self
00352       start = end
00353       end += 8
00354       (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.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_result.status.goal_id.id = str[start:end].decode('utf-8')
00362       else:
00363         self.action_result.status.goal_id.id = str[start:end]
00364       start = end
00365       end += 1
00366       (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00367       start = end
00368       end += 4
00369       (length,) = _struct_I.unpack(str[start:end])
00370       start = end
00371       end += length
00372       if python3:
00373         self.action_result.status.text = str[start:end].decode('utf-8')
00374       else:
00375         self.action_result.status.text = str[start:end]
00376       start = end
00377       end += 4
00378       (length,) = _struct_I.unpack(str[start:end])
00379       start = end
00380       end += length
00381       if python3:
00382         self.action_result.result.downloadURL = str[start:end].decode('utf-8')
00383       else:
00384         self.action_result.result.downloadURL = str[start:end]
00385       start = end
00386       end += 4
00387       (length,) = _struct_I.unpack(str[start:end])
00388       start = end
00389       end += length
00390       if python3:
00391         self.action_result.result.target_filename = str[start:end].decode('utf-8')
00392       else:
00393         self.action_result.result.target_filename = str[start:end]
00394       _x = self
00395       start = end
00396       end += 12
00397       (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00398       start = end
00399       end += 4
00400       (length,) = _struct_I.unpack(str[start:end])
00401       start = end
00402       end += length
00403       if python3:
00404         self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00405       else:
00406         self.action_feedback.header.frame_id = str[start:end]
00407       _x = self
00408       start = end
00409       end += 8
00410       (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00411       start = end
00412       end += 4
00413       (length,) = _struct_I.unpack(str[start:end])
00414       start = end
00415       end += length
00416       if python3:
00417         self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00418       else:
00419         self.action_feedback.status.goal_id.id = str[start:end]
00420       start = end
00421       end += 1
00422       (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00423       start = end
00424       end += 4
00425       (length,) = _struct_I.unpack(str[start:end])
00426       start = end
00427       end += length
00428       if python3:
00429         self.action_feedback.status.text = str[start:end].decode('utf-8')
00430       else:
00431         self.action_feedback.status.text = str[start:end]
00432       start = end
00433       end += 4
00434       (self.action_feedback.feedback.filesize,) = _struct_f.unpack(str[start:end])
00435       return self
00436     except struct.error as e:
00437       raise genpy.DeserializationError(e) #most likely buffer underfill
00438 
00439 
00440   def serialize_numpy(self, buff, numpy):
00441     """
00442     serialize message with numpy array types into buffer
00443     :param buff: buffer, ``StringIO``
00444     :param numpy: numpy python module
00445     """
00446     try:
00447       _x = self
00448       buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00449       _x = self.action_goal.header.frame_id
00450       length = len(_x)
00451       if python3 or type(_x) == unicode:
00452         _x = _x.encode('utf-8')
00453         length = len(_x)
00454       buff.write(struct.pack('<I%ss'%length, length, _x))
00455       _x = self
00456       buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00457       _x = self.action_goal.goal_id.id
00458       length = len(_x)
00459       if python3 or type(_x) == unicode:
00460         _x = _x.encode('utf-8')
00461         length = len(_x)
00462       buff.write(struct.pack('<I%ss'%length, length, _x))
00463       _x = self.action_goal.goal.command
00464       length = len(_x)
00465       if python3 or type(_x) == unicode:
00466         _x = _x.encode('utf-8')
00467         length = len(_x)
00468       buff.write(struct.pack('<I%ss'%length, length, _x))
00469       _x = self.action_goal.goal.ID
00470       length = len(_x)
00471       if python3 or type(_x) == unicode:
00472         _x = _x.encode('utf-8')
00473         length = len(_x)
00474       buff.write(struct.pack('<I%ss'%length, length, _x))
00475       length = len(self.action_goal.goal.selectedTopics)
00476       buff.write(_struct_I.pack(length))
00477       for val1 in self.action_goal.goal.selectedTopics:
00478         length = len(val1)
00479         if python3 or type(val1) == unicode:
00480           val1 = val1.encode('utf-8')
00481           length = len(val1)
00482         buff.write(struct.pack('<I%ss'%length, length, val1))
00483       _x = self
00484       buff.write(_struct_3I.pack(_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00485       _x = self.action_result.header.frame_id
00486       length = len(_x)
00487       if python3 or type(_x) == unicode:
00488         _x = _x.encode('utf-8')
00489         length = len(_x)
00490       buff.write(struct.pack('<I%ss'%length, length, _x))
00491       _x = self
00492       buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00493       _x = self.action_result.status.goal_id.id
00494       length = len(_x)
00495       if python3 or type(_x) == unicode:
00496         _x = _x.encode('utf-8')
00497         length = len(_x)
00498       buff.write(struct.pack('<I%ss'%length, length, _x))
00499       buff.write(_struct_B.pack(self.action_result.status.status))
00500       _x = self.action_result.status.text
00501       length = len(_x)
00502       if python3 or type(_x) == unicode:
00503         _x = _x.encode('utf-8')
00504         length = len(_x)
00505       buff.write(struct.pack('<I%ss'%length, length, _x))
00506       _x = self.action_result.result.downloadURL
00507       length = len(_x)
00508       if python3 or type(_x) == unicode:
00509         _x = _x.encode('utf-8')
00510         length = len(_x)
00511       buff.write(struct.pack('<I%ss'%length, length, _x))
00512       _x = self.action_result.result.target_filename
00513       length = len(_x)
00514       if python3 or type(_x) == unicode:
00515         _x = _x.encode('utf-8')
00516         length = len(_x)
00517       buff.write(struct.pack('<I%ss'%length, length, _x))
00518       _x = self
00519       buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00520       _x = self.action_feedback.header.frame_id
00521       length = len(_x)
00522       if python3 or type(_x) == unicode:
00523         _x = _x.encode('utf-8')
00524         length = len(_x)
00525       buff.write(struct.pack('<I%ss'%length, length, _x))
00526       _x = self
00527       buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00528       _x = self.action_feedback.status.goal_id.id
00529       length = len(_x)
00530       if python3 or type(_x) == unicode:
00531         _x = _x.encode('utf-8')
00532         length = len(_x)
00533       buff.write(struct.pack('<I%ss'%length, length, _x))
00534       buff.write(_struct_B.pack(self.action_feedback.status.status))
00535       _x = self.action_feedback.status.text
00536       length = len(_x)
00537       if python3 or type(_x) == unicode:
00538         _x = _x.encode('utf-8')
00539         length = len(_x)
00540       buff.write(struct.pack('<I%ss'%length, length, _x))
00541       buff.write(_struct_f.pack(self.action_feedback.feedback.filesize))
00542     except struct.error as se: self._check_types(se)
00543     except TypeError as te: self._check_types(te)
00544 
00545   def deserialize_numpy(self, str, numpy):
00546     """
00547     unpack serialized message in str into this message instance using numpy for array types
00548     :param str: byte array of serialized message, ``str``
00549     :param numpy: numpy python module
00550     """
00551     try:
00552       if self.action_goal is None:
00553         self.action_goal = topic_logger.msg.TopicLoggerActionGoal()
00554       if self.action_result is None:
00555         self.action_result = topic_logger.msg.TopicLoggerActionResult()
00556       if self.action_feedback is None:
00557         self.action_feedback = topic_logger.msg.TopicLoggerActionFeedback()
00558       end = 0
00559       _x = self
00560       start = end
00561       end += 12
00562       (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00563       start = end
00564       end += 4
00565       (length,) = _struct_I.unpack(str[start:end])
00566       start = end
00567       end += length
00568       if python3:
00569         self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00570       else:
00571         self.action_goal.header.frame_id = str[start:end]
00572       _x = self
00573       start = end
00574       end += 8
00575       (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00576       start = end
00577       end += 4
00578       (length,) = _struct_I.unpack(str[start:end])
00579       start = end
00580       end += length
00581       if python3:
00582         self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00583       else:
00584         self.action_goal.goal_id.id = str[start:end]
00585       start = end
00586       end += 4
00587       (length,) = _struct_I.unpack(str[start:end])
00588       start = end
00589       end += length
00590       if python3:
00591         self.action_goal.goal.command = str[start:end].decode('utf-8')
00592       else:
00593         self.action_goal.goal.command = str[start:end]
00594       start = end
00595       end += 4
00596       (length,) = _struct_I.unpack(str[start:end])
00597       start = end
00598       end += length
00599       if python3:
00600         self.action_goal.goal.ID = str[start:end].decode('utf-8')
00601       else:
00602         self.action_goal.goal.ID = str[start:end]
00603       start = end
00604       end += 4
00605       (length,) = _struct_I.unpack(str[start:end])
00606       self.action_goal.goal.selectedTopics = []
00607       for i in range(0, length):
00608         start = end
00609         end += 4
00610         (length,) = _struct_I.unpack(str[start:end])
00611         start = end
00612         end += length
00613         if python3:
00614           val1 = str[start:end].decode('utf-8')
00615         else:
00616           val1 = str[start:end]
00617         self.action_goal.goal.selectedTopics.append(val1)
00618       _x = self
00619       start = end
00620       end += 12
00621       (_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00622       start = end
00623       end += 4
00624       (length,) = _struct_I.unpack(str[start:end])
00625       start = end
00626       end += length
00627       if python3:
00628         self.action_result.header.frame_id = str[start:end].decode('utf-8')
00629       else:
00630         self.action_result.header.frame_id = str[start:end]
00631       _x = self
00632       start = end
00633       end += 8
00634       (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00635       start = end
00636       end += 4
00637       (length,) = _struct_I.unpack(str[start:end])
00638       start = end
00639       end += length
00640       if python3:
00641         self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00642       else:
00643         self.action_result.status.goal_id.id = str[start:end]
00644       start = end
00645       end += 1
00646       (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00647       start = end
00648       end += 4
00649       (length,) = _struct_I.unpack(str[start:end])
00650       start = end
00651       end += length
00652       if python3:
00653         self.action_result.status.text = str[start:end].decode('utf-8')
00654       else:
00655         self.action_result.status.text = str[start:end]
00656       start = end
00657       end += 4
00658       (length,) = _struct_I.unpack(str[start:end])
00659       start = end
00660       end += length
00661       if python3:
00662         self.action_result.result.downloadURL = str[start:end].decode('utf-8')
00663       else:
00664         self.action_result.result.downloadURL = str[start:end]
00665       start = end
00666       end += 4
00667       (length,) = _struct_I.unpack(str[start:end])
00668       start = end
00669       end += length
00670       if python3:
00671         self.action_result.result.target_filename = str[start:end].decode('utf-8')
00672       else:
00673         self.action_result.result.target_filename = str[start:end]
00674       _x = self
00675       start = end
00676       end += 12
00677       (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00678       start = end
00679       end += 4
00680       (length,) = _struct_I.unpack(str[start:end])
00681       start = end
00682       end += length
00683       if python3:
00684         self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00685       else:
00686         self.action_feedback.header.frame_id = str[start:end]
00687       _x = self
00688       start = end
00689       end += 8
00690       (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00691       start = end
00692       end += 4
00693       (length,) = _struct_I.unpack(str[start:end])
00694       start = end
00695       end += length
00696       if python3:
00697         self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00698       else:
00699         self.action_feedback.status.goal_id.id = str[start:end]
00700       start = end
00701       end += 1
00702       (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00703       start = end
00704       end += 4
00705       (length,) = _struct_I.unpack(str[start:end])
00706       start = end
00707       end += length
00708       if python3:
00709         self.action_feedback.status.text = str[start:end].decode('utf-8')
00710       else:
00711         self.action_feedback.status.text = str[start:end]
00712       start = end
00713       end += 4
00714       (self.action_feedback.feedback.filesize,) = _struct_f.unpack(str[start:end])
00715       return self
00716     except struct.error as e:
00717       raise genpy.DeserializationError(e) #most likely buffer underfill
00718 
00719 _struct_I = genpy.struct_I
00720 _struct_3I = struct.Struct("<3I")
00721 _struct_B = struct.Struct("<B")
00722 _struct_2I = struct.Struct("<2I")
00723 _struct_f = struct.Struct("<f")


topic_logger
Author(s): Ralf Kempf Maintained by Sarah Osentoski and Ben Pitzer
autogenerated on Sun Jan 5 2014 11:33:05