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


tibi_dabo_msgs
Author(s): Sergi Hernandez Juan
autogenerated on Fri Dec 6 2013 20:03:32