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


move_arm_head_monitor
Author(s): Adam Harmat
autogenerated on Thu Dec 12 2013 11:08:12