_BlinkAction.py
Go to the documentation of this file.
00001 """autogenerated by genpy from nao_msgs/BlinkAction.msg. Do not edit."""
00002 import sys
00003 python3 = True if sys.hexversion > 0x03000000 else False
00004 import genpy
00005 import struct
00006 
00007 import genpy
00008 import nao_msgs.msg
00009 import actionlib_msgs.msg
00010 import std_msgs.msg
00011 
00012 class BlinkAction(genpy.Message):
00013   _md5sum = "c03ab9992d56528894da7d19c515fc49"
00014   _type = "nao_msgs/BlinkAction"
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 BlinkActionGoal action_goal
00019 BlinkActionResult action_result
00020 BlinkActionFeedback action_feedback
00021 
00022 ================================================================================
00023 MSG: nao_msgs/BlinkActionGoal
00024 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00025 
00026 Header header
00027 actionlib_msgs/GoalID goal_id
00028 BlinkGoal 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: nao_msgs/BlinkGoal
00063 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00064 # Goal: colours to use for blinking, plus blinking rate mean and sd
00065 # Result: true if robot is still blinking (call was pre-empted by another user)
00066 # Feedback: last blinked colour
00067 std_msgs/ColorRGBA[] colors
00068 std_msgs/ColorRGBA bg_color
00069 duration blink_duration
00070 float32 blink_rate_mean
00071 float32 blink_rate_sd
00072 
00073 ================================================================================
00074 MSG: std_msgs/ColorRGBA
00075 float32 r
00076 float32 g
00077 float32 b
00078 float32 a
00079 
00080 ================================================================================
00081 MSG: nao_msgs/BlinkActionResult
00082 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00083 
00084 Header header
00085 actionlib_msgs/GoalStatus status
00086 BlinkResult result
00087 
00088 ================================================================================
00089 MSG: actionlib_msgs/GoalStatus
00090 GoalID goal_id
00091 uint8 status
00092 uint8 PENDING         = 0   # The goal has yet to be processed by the action server
00093 uint8 ACTIVE          = 1   # The goal is currently being processed by the action server
00094 uint8 PREEMPTED       = 2   # The goal received a cancel request after it started executing
00095                             #   and has since completed its execution (Terminal State)
00096 uint8 SUCCEEDED       = 3   # The goal was achieved successfully by the action server (Terminal State)
00097 uint8 ABORTED         = 4   # The goal was aborted during execution by the action server due
00098                             #    to some failure (Terminal State)
00099 uint8 REJECTED        = 5   # The goal was rejected by the action server without being processed,
00100                             #    because the goal was unattainable or invalid (Terminal State)
00101 uint8 PREEMPTING      = 6   # The goal received a cancel request after it started executing
00102                             #    and has not yet completed execution
00103 uint8 RECALLING       = 7   # The goal received a cancel request before it started executing,
00104                             #    but the action server has not yet confirmed that the goal is canceled
00105 uint8 RECALLED        = 8   # The goal received a cancel request before it started executing
00106                             #    and was successfully cancelled (Terminal State)
00107 uint8 LOST            = 9   # An action client can determine that a goal is LOST. This should not be
00108                             #    sent over the wire by an action server
00109 
00110 #Allow for the user to associate a string with GoalStatus for debugging
00111 string text
00112 
00113 
00114 ================================================================================
00115 MSG: nao_msgs/BlinkResult
00116 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00117 bool still_blinking
00118 
00119 ================================================================================
00120 MSG: nao_msgs/BlinkActionFeedback
00121 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00122 
00123 Header header
00124 actionlib_msgs/GoalStatus status
00125 BlinkFeedback feedback
00126 
00127 ================================================================================
00128 MSG: nao_msgs/BlinkFeedback
00129 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00130 std_msgs/ColorRGBA last_color
00131 
00132 
00133 """
00134   __slots__ = ['action_goal','action_result','action_feedback']
00135   _slot_types = ['nao_msgs/BlinkActionGoal','nao_msgs/BlinkActionResult','nao_msgs/BlinkActionFeedback']
00136 
00137   def __init__(self, *args, **kwds):
00138     """
00139     Constructor. Any message fields that are implicitly/explicitly
00140     set to None will be assigned a default value. The recommend
00141     use is keyword arguments as this is more robust to future message
00142     changes.  You cannot mix in-order arguments and keyword arguments.
00143 
00144     The available fields are:
00145        action_goal,action_result,action_feedback
00146 
00147     :param args: complete set of field values, in .msg order
00148     :param kwds: use keyword arguments corresponding to message field names
00149     to set specific fields.
00150     """
00151     if args or kwds:
00152       super(BlinkAction, self).__init__(*args, **kwds)
00153       #message fields cannot be None, assign default values for those that are
00154       if self.action_goal is None:
00155         self.action_goal = nao_msgs.msg.BlinkActionGoal()
00156       if self.action_result is None:
00157         self.action_result = nao_msgs.msg.BlinkActionResult()
00158       if self.action_feedback is None:
00159         self.action_feedback = nao_msgs.msg.BlinkActionFeedback()
00160     else:
00161       self.action_goal = nao_msgs.msg.BlinkActionGoal()
00162       self.action_result = nao_msgs.msg.BlinkActionResult()
00163       self.action_feedback = nao_msgs.msg.BlinkActionFeedback()
00164 
00165   def _get_types(self):
00166     """
00167     internal API method
00168     """
00169     return self._slot_types
00170 
00171   def serialize(self, buff):
00172     """
00173     serialize message into buffer
00174     :param buff: buffer, ``StringIO``
00175     """
00176     try:
00177       _x = self
00178       buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00179       _x = self.action_goal.header.frame_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       _x = self
00186       buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00187       _x = self.action_goal.goal_id.id
00188       length = len(_x)
00189       if python3 or type(_x) == unicode:
00190         _x = _x.encode('utf-8')
00191         length = len(_x)
00192       buff.write(struct.pack('<I%ss'%length, length, _x))
00193       length = len(self.action_goal.goal.colors)
00194       buff.write(_struct_I.pack(length))
00195       for val1 in self.action_goal.goal.colors:
00196         _x = val1
00197         buff.write(_struct_4f.pack(_x.r, _x.g, _x.b, _x.a))
00198       _x = self
00199       buff.write(_struct_4f2i2f3I.pack(_x.action_goal.goal.bg_color.r, _x.action_goal.goal.bg_color.g, _x.action_goal.goal.bg_color.b, _x.action_goal.goal.bg_color.a, _x.action_goal.goal.blink_duration.secs, _x.action_goal.goal.blink_duration.nsecs, _x.action_goal.goal.blink_rate_mean, _x.action_goal.goal.blink_rate_sd, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00200       _x = self.action_result.header.frame_id
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       _x = self
00207       buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00208       _x = self.action_result.status.goal_id.id
00209       length = len(_x)
00210       if python3 or type(_x) == unicode:
00211         _x = _x.encode('utf-8')
00212         length = len(_x)
00213       buff.write(struct.pack('<I%ss'%length, length, _x))
00214       buff.write(_struct_B.pack(self.action_result.status.status))
00215       _x = self.action_result.status.text
00216       length = len(_x)
00217       if python3 or type(_x) == unicode:
00218         _x = _x.encode('utf-8')
00219         length = len(_x)
00220       buff.write(struct.pack('<I%ss'%length, length, _x))
00221       _x = self
00222       buff.write(_struct_B3I.pack(_x.action_result.result.still_blinking, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00223       _x = self.action_feedback.header.frame_id
00224       length = len(_x)
00225       if python3 or type(_x) == unicode:
00226         _x = _x.encode('utf-8')
00227         length = len(_x)
00228       buff.write(struct.pack('<I%ss'%length, length, _x))
00229       _x = self
00230       buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00231       _x = self.action_feedback.status.goal_id.id
00232       length = len(_x)
00233       if python3 or type(_x) == unicode:
00234         _x = _x.encode('utf-8')
00235         length = len(_x)
00236       buff.write(struct.pack('<I%ss'%length, length, _x))
00237       buff.write(_struct_B.pack(self.action_feedback.status.status))
00238       _x = self.action_feedback.status.text
00239       length = len(_x)
00240       if python3 or type(_x) == unicode:
00241         _x = _x.encode('utf-8')
00242         length = len(_x)
00243       buff.write(struct.pack('<I%ss'%length, length, _x))
00244       _x = self
00245       buff.write(_struct_4f.pack(_x.action_feedback.feedback.last_color.r, _x.action_feedback.feedback.last_color.g, _x.action_feedback.feedback.last_color.b, _x.action_feedback.feedback.last_color.a))
00246     except struct.error as se: self._check_types(se)
00247     except TypeError as te: self._check_types(te)
00248 
00249   def deserialize(self, str):
00250     """
00251     unpack serialized message in str into this message instance
00252     :param str: byte array of serialized message, ``str``
00253     """
00254     try:
00255       if self.action_goal is None:
00256         self.action_goal = nao_msgs.msg.BlinkActionGoal()
00257       if self.action_result is None:
00258         self.action_result = nao_msgs.msg.BlinkActionResult()
00259       if self.action_feedback is None:
00260         self.action_feedback = nao_msgs.msg.BlinkActionFeedback()
00261       end = 0
00262       _x = self
00263       start = end
00264       end += 12
00265       (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00266       start = end
00267       end += 4
00268       (length,) = _struct_I.unpack(str[start:end])
00269       start = end
00270       end += length
00271       if python3:
00272         self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00273       else:
00274         self.action_goal.header.frame_id = str[start:end]
00275       _x = self
00276       start = end
00277       end += 8
00278       (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.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.goal_id.id = str[start:end].decode('utf-8')
00286       else:
00287         self.action_goal.goal_id.id = str[start:end]
00288       start = end
00289       end += 4
00290       (length,) = _struct_I.unpack(str[start:end])
00291       self.action_goal.goal.colors = []
00292       for i in range(0, length):
00293         val1 = std_msgs.msg.ColorRGBA()
00294         _x = val1
00295         start = end
00296         end += 16
00297         (_x.r, _x.g, _x.b, _x.a,) = _struct_4f.unpack(str[start:end])
00298         self.action_goal.goal.colors.append(val1)
00299       _x = self
00300       start = end
00301       end += 44
00302       (_x.action_goal.goal.bg_color.r, _x.action_goal.goal.bg_color.g, _x.action_goal.goal.bg_color.b, _x.action_goal.goal.bg_color.a, _x.action_goal.goal.blink_duration.secs, _x.action_goal.goal.blink_duration.nsecs, _x.action_goal.goal.blink_rate_mean, _x.action_goal.goal.blink_rate_sd, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_4f2i2f3I.unpack(str[start:end])
00303       start = end
00304       end += 4
00305       (length,) = _struct_I.unpack(str[start:end])
00306       start = end
00307       end += length
00308       if python3:
00309         self.action_result.header.frame_id = str[start:end].decode('utf-8')
00310       else:
00311         self.action_result.header.frame_id = str[start:end]
00312       _x = self
00313       start = end
00314       end += 8
00315       (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.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.goal_id.id = str[start:end].decode('utf-8')
00323       else:
00324         self.action_result.status.goal_id.id = str[start:end]
00325       start = end
00326       end += 1
00327       (self.action_result.status.status,) = _struct_B.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_result.status.text = str[start:end].decode('utf-8')
00335       else:
00336         self.action_result.status.text = str[start:end]
00337       _x = self
00338       start = end
00339       end += 13
00340       (_x.action_result.result.still_blinking, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_B3I.unpack(str[start:end])
00341       self.action_result.result.still_blinking = bool(self.action_result.result.still_blinking)
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_feedback.header.frame_id = str[start:end].decode('utf-8')
00349       else:
00350         self.action_feedback.header.frame_id = str[start:end]
00351       _x = self
00352       start = end
00353       end += 8
00354       (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.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_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00362       else:
00363         self.action_feedback.status.goal_id.id = str[start:end]
00364       start = end
00365       end += 1
00366       (self.action_feedback.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_feedback.status.text = str[start:end].decode('utf-8')
00374       else:
00375         self.action_feedback.status.text = str[start:end]
00376       _x = self
00377       start = end
00378       end += 16
00379       (_x.action_feedback.feedback.last_color.r, _x.action_feedback.feedback.last_color.g, _x.action_feedback.feedback.last_color.b, _x.action_feedback.feedback.last_color.a,) = _struct_4f.unpack(str[start:end])
00380       return self
00381     except struct.error as e:
00382       raise genpy.DeserializationError(e) #most likely buffer underfill
00383 
00384 
00385   def serialize_numpy(self, buff, numpy):
00386     """
00387     serialize message with numpy array types into buffer
00388     :param buff: buffer, ``StringIO``
00389     :param numpy: numpy python module
00390     """
00391     try:
00392       _x = self
00393       buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00394       _x = self.action_goal.header.frame_id
00395       length = len(_x)
00396       if python3 or type(_x) == unicode:
00397         _x = _x.encode('utf-8')
00398         length = len(_x)
00399       buff.write(struct.pack('<I%ss'%length, length, _x))
00400       _x = self
00401       buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00402       _x = self.action_goal.goal_id.id
00403       length = len(_x)
00404       if python3 or type(_x) == unicode:
00405         _x = _x.encode('utf-8')
00406         length = len(_x)
00407       buff.write(struct.pack('<I%ss'%length, length, _x))
00408       length = len(self.action_goal.goal.colors)
00409       buff.write(_struct_I.pack(length))
00410       for val1 in self.action_goal.goal.colors:
00411         _x = val1
00412         buff.write(_struct_4f.pack(_x.r, _x.g, _x.b, _x.a))
00413       _x = self
00414       buff.write(_struct_4f2i2f3I.pack(_x.action_goal.goal.bg_color.r, _x.action_goal.goal.bg_color.g, _x.action_goal.goal.bg_color.b, _x.action_goal.goal.bg_color.a, _x.action_goal.goal.blink_duration.secs, _x.action_goal.goal.blink_duration.nsecs, _x.action_goal.goal.blink_rate_mean, _x.action_goal.goal.blink_rate_sd, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00415       _x = self.action_result.header.frame_id
00416       length = len(_x)
00417       if python3 or type(_x) == unicode:
00418         _x = _x.encode('utf-8')
00419         length = len(_x)
00420       buff.write(struct.pack('<I%ss'%length, length, _x))
00421       _x = self
00422       buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00423       _x = self.action_result.status.goal_id.id
00424       length = len(_x)
00425       if python3 or type(_x) == unicode:
00426         _x = _x.encode('utf-8')
00427         length = len(_x)
00428       buff.write(struct.pack('<I%ss'%length, length, _x))
00429       buff.write(_struct_B.pack(self.action_result.status.status))
00430       _x = self.action_result.status.text
00431       length = len(_x)
00432       if python3 or type(_x) == unicode:
00433         _x = _x.encode('utf-8')
00434         length = len(_x)
00435       buff.write(struct.pack('<I%ss'%length, length, _x))
00436       _x = self
00437       buff.write(_struct_B3I.pack(_x.action_result.result.still_blinking, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00438       _x = self.action_feedback.header.frame_id
00439       length = len(_x)
00440       if python3 or type(_x) == unicode:
00441         _x = _x.encode('utf-8')
00442         length = len(_x)
00443       buff.write(struct.pack('<I%ss'%length, length, _x))
00444       _x = self
00445       buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00446       _x = self.action_feedback.status.goal_id.id
00447       length = len(_x)
00448       if python3 or type(_x) == unicode:
00449         _x = _x.encode('utf-8')
00450         length = len(_x)
00451       buff.write(struct.pack('<I%ss'%length, length, _x))
00452       buff.write(_struct_B.pack(self.action_feedback.status.status))
00453       _x = self.action_feedback.status.text
00454       length = len(_x)
00455       if python3 or type(_x) == unicode:
00456         _x = _x.encode('utf-8')
00457         length = len(_x)
00458       buff.write(struct.pack('<I%ss'%length, length, _x))
00459       _x = self
00460       buff.write(_struct_4f.pack(_x.action_feedback.feedback.last_color.r, _x.action_feedback.feedback.last_color.g, _x.action_feedback.feedback.last_color.b, _x.action_feedback.feedback.last_color.a))
00461     except struct.error as se: self._check_types(se)
00462     except TypeError as te: self._check_types(te)
00463 
00464   def deserialize_numpy(self, str, numpy):
00465     """
00466     unpack serialized message in str into this message instance using numpy for array types
00467     :param str: byte array of serialized message, ``str``
00468     :param numpy: numpy python module
00469     """
00470     try:
00471       if self.action_goal is None:
00472         self.action_goal = nao_msgs.msg.BlinkActionGoal()
00473       if self.action_result is None:
00474         self.action_result = nao_msgs.msg.BlinkActionResult()
00475       if self.action_feedback is None:
00476         self.action_feedback = nao_msgs.msg.BlinkActionFeedback()
00477       end = 0
00478       _x = self
00479       start = end
00480       end += 12
00481       (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00482       start = end
00483       end += 4
00484       (length,) = _struct_I.unpack(str[start:end])
00485       start = end
00486       end += length
00487       if python3:
00488         self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00489       else:
00490         self.action_goal.header.frame_id = str[start:end]
00491       _x = self
00492       start = end
00493       end += 8
00494       (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00495       start = end
00496       end += 4
00497       (length,) = _struct_I.unpack(str[start:end])
00498       start = end
00499       end += length
00500       if python3:
00501         self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00502       else:
00503         self.action_goal.goal_id.id = str[start:end]
00504       start = end
00505       end += 4
00506       (length,) = _struct_I.unpack(str[start:end])
00507       self.action_goal.goal.colors = []
00508       for i in range(0, length):
00509         val1 = std_msgs.msg.ColorRGBA()
00510         _x = val1
00511         start = end
00512         end += 16
00513         (_x.r, _x.g, _x.b, _x.a,) = _struct_4f.unpack(str[start:end])
00514         self.action_goal.goal.colors.append(val1)
00515       _x = self
00516       start = end
00517       end += 44
00518       (_x.action_goal.goal.bg_color.r, _x.action_goal.goal.bg_color.g, _x.action_goal.goal.bg_color.b, _x.action_goal.goal.bg_color.a, _x.action_goal.goal.blink_duration.secs, _x.action_goal.goal.blink_duration.nsecs, _x.action_goal.goal.blink_rate_mean, _x.action_goal.goal.blink_rate_sd, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_4f2i2f3I.unpack(str[start:end])
00519       start = end
00520       end += 4
00521       (length,) = _struct_I.unpack(str[start:end])
00522       start = end
00523       end += length
00524       if python3:
00525         self.action_result.header.frame_id = str[start:end].decode('utf-8')
00526       else:
00527         self.action_result.header.frame_id = str[start:end]
00528       _x = self
00529       start = end
00530       end += 8
00531       (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00532       start = end
00533       end += 4
00534       (length,) = _struct_I.unpack(str[start:end])
00535       start = end
00536       end += length
00537       if python3:
00538         self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00539       else:
00540         self.action_result.status.goal_id.id = str[start:end]
00541       start = end
00542       end += 1
00543       (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
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_result.status.text = str[start:end].decode('utf-8')
00551       else:
00552         self.action_result.status.text = str[start:end]
00553       _x = self
00554       start = end
00555       end += 13
00556       (_x.action_result.result.still_blinking, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_B3I.unpack(str[start:end])
00557       self.action_result.result.still_blinking = bool(self.action_result.result.still_blinking)
00558       start = end
00559       end += 4
00560       (length,) = _struct_I.unpack(str[start:end])
00561       start = end
00562       end += length
00563       if python3:
00564         self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00565       else:
00566         self.action_feedback.header.frame_id = str[start:end]
00567       _x = self
00568       start = end
00569       end += 8
00570       (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00571       start = end
00572       end += 4
00573       (length,) = _struct_I.unpack(str[start:end])
00574       start = end
00575       end += length
00576       if python3:
00577         self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00578       else:
00579         self.action_feedback.status.goal_id.id = str[start:end]
00580       start = end
00581       end += 1
00582       (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00583       start = end
00584       end += 4
00585       (length,) = _struct_I.unpack(str[start:end])
00586       start = end
00587       end += length
00588       if python3:
00589         self.action_feedback.status.text = str[start:end].decode('utf-8')
00590       else:
00591         self.action_feedback.status.text = str[start:end]
00592       _x = self
00593       start = end
00594       end += 16
00595       (_x.action_feedback.feedback.last_color.r, _x.action_feedback.feedback.last_color.g, _x.action_feedback.feedback.last_color.b, _x.action_feedback.feedback.last_color.a,) = _struct_4f.unpack(str[start:end])
00596       return self
00597     except struct.error as e:
00598       raise genpy.DeserializationError(e) #most likely buffer underfill
00599 
00600 _struct_I = genpy.struct_I
00601 _struct_B = struct.Struct("<B")
00602 _struct_3I = struct.Struct("<3I")
00603 _struct_B3I = struct.Struct("<B3I")
00604 _struct_4f = struct.Struct("<4f")
00605 _struct_4f2i2f3I = struct.Struct("<4f2i2f3I")
00606 _struct_2I = struct.Struct("<2I")
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends


nao_msgs
Author(s): Armin Hornung, Stefan Osswald, Daniel Maier
autogenerated on Tue Oct 15 2013 10:05:22