_PointHeadActionAction.py
Go to the documentation of this file.
00001 """autogenerated by genpy from control_msgs/PointHeadActionAction.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 geometry_msgs.msg
00008 import std_msgs.msg
00009 import genpy
00010 import actionlib_msgs.msg
00011 import control_msgs.msg
00012 
00013 class PointHeadActionAction(genpy.Message):
00014   _md5sum = "6a07e5bfef9eb077d70c657418c28471"
00015   _type = "control_msgs/PointHeadActionAction"
00016   _has_header = False #flag to mark the presence of a Header object
00017   _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00018 
00019 PointHeadActionActionGoal action_goal
00020 PointHeadActionActionResult action_result
00021 PointHeadActionActionFeedback action_feedback
00022 
00023 ================================================================================
00024 MSG: control_msgs/PointHeadActionActionGoal
00025 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00026 
00027 Header header
00028 actionlib_msgs/GoalID goal_id
00029 PointHeadActionGoal goal
00030 
00031 ================================================================================
00032 MSG: std_msgs/Header
00033 # Standard metadata for higher-level stamped data types.
00034 # This is generally used to communicate timestamped data 
00035 # in a particular coordinate frame.
00036 # 
00037 # sequence ID: consecutively increasing ID 
00038 uint32 seq
00039 #Two-integer timestamp that is expressed as:
00040 # * stamp.secs: seconds (stamp_secs) since epoch
00041 # * stamp.nsecs: nanoseconds since stamp_secs
00042 # time-handling sugar is provided by the client library
00043 time stamp
00044 #Frame this data is associated with
00045 # 0: no frame
00046 # 1: global frame
00047 string frame_id
00048 
00049 ================================================================================
00050 MSG: actionlib_msgs/GoalID
00051 # The stamp should store the time at which this goal was requested.
00052 # It is used by an action server when it tries to preempt all
00053 # goals that were requested before a certain time
00054 time stamp
00055 
00056 # The id provides a way to associate feedback and
00057 # result message with specific goal requests. The id
00058 # specified must be unique.
00059 string id
00060 
00061 
00062 ================================================================================
00063 MSG: control_msgs/PointHeadActionGoal
00064 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00065 geometry_msgs/PointStamped target
00066 geometry_msgs/Vector3 pointing_axis
00067 string pointing_frame
00068 duration min_duration
00069 float64 max_velocity
00070 
00071 ================================================================================
00072 MSG: geometry_msgs/PointStamped
00073 # This represents a Point with reference coordinate frame and timestamp
00074 Header header
00075 Point point
00076 
00077 ================================================================================
00078 MSG: geometry_msgs/Point
00079 # This contains the position of a point in free space
00080 float64 x
00081 float64 y
00082 float64 z
00083 
00084 ================================================================================
00085 MSG: geometry_msgs/Vector3
00086 # This represents a vector in free space. 
00087 
00088 float64 x
00089 float64 y
00090 float64 z
00091 ================================================================================
00092 MSG: control_msgs/PointHeadActionActionResult
00093 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00094 
00095 Header header
00096 actionlib_msgs/GoalStatus status
00097 PointHeadActionResult result
00098 
00099 ================================================================================
00100 MSG: actionlib_msgs/GoalStatus
00101 GoalID goal_id
00102 uint8 status
00103 uint8 PENDING         = 0   # The goal has yet to be processed by the action server
00104 uint8 ACTIVE          = 1   # The goal is currently being processed by the action server
00105 uint8 PREEMPTED       = 2   # The goal received a cancel request after it started executing
00106                             #   and has since completed its execution (Terminal State)
00107 uint8 SUCCEEDED       = 3   # The goal was achieved successfully by the action server (Terminal State)
00108 uint8 ABORTED         = 4   # The goal was aborted during execution by the action server due
00109                             #    to some failure (Terminal State)
00110 uint8 REJECTED        = 5   # The goal was rejected by the action server without being processed,
00111                             #    because the goal was unattainable or invalid (Terminal State)
00112 uint8 PREEMPTING      = 6   # The goal received a cancel request after it started executing
00113                             #    and has not yet completed execution
00114 uint8 RECALLING       = 7   # The goal received a cancel request before it started executing,
00115                             #    but the action server has not yet confirmed that the goal is canceled
00116 uint8 RECALLED        = 8   # The goal received a cancel request before it started executing
00117                             #    and was successfully cancelled (Terminal State)
00118 uint8 LOST            = 9   # An action client can determine that a goal is LOST. This should not be
00119                             #    sent over the wire by an action server
00120 
00121 #Allow for the user to associate a string with GoalStatus for debugging
00122 string text
00123 
00124 
00125 ================================================================================
00126 MSG: control_msgs/PointHeadActionResult
00127 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00128 
00129 ================================================================================
00130 MSG: control_msgs/PointHeadActionActionFeedback
00131 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00132 
00133 Header header
00134 actionlib_msgs/GoalStatus status
00135 PointHeadActionFeedback feedback
00136 
00137 ================================================================================
00138 MSG: control_msgs/PointHeadActionFeedback
00139 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00140 
00141 
00142 """
00143   __slots__ = ['action_goal','action_result','action_feedback']
00144   _slot_types = ['control_msgs/PointHeadActionActionGoal','control_msgs/PointHeadActionActionResult','control_msgs/PointHeadActionActionFeedback']
00145 
00146   def __init__(self, *args, **kwds):
00147     """
00148     Constructor. Any message fields that are implicitly/explicitly
00149     set to None will be assigned a default value. The recommend
00150     use is keyword arguments as this is more robust to future message
00151     changes.  You cannot mix in-order arguments and keyword arguments.
00152 
00153     The available fields are:
00154        action_goal,action_result,action_feedback
00155 
00156     :param args: complete set of field values, in .msg order
00157     :param kwds: use keyword arguments corresponding to message field names
00158     to set specific fields.
00159     """
00160     if args or kwds:
00161       super(PointHeadActionAction, self).__init__(*args, **kwds)
00162       #message fields cannot be None, assign default values for those that are
00163       if self.action_goal is None:
00164         self.action_goal = control_msgs.msg.PointHeadActionActionGoal()
00165       if self.action_result is None:
00166         self.action_result = control_msgs.msg.PointHeadActionActionResult()
00167       if self.action_feedback is None:
00168         self.action_feedback = control_msgs.msg.PointHeadActionActionFeedback()
00169     else:
00170       self.action_goal = control_msgs.msg.PointHeadActionActionGoal()
00171       self.action_result = control_msgs.msg.PointHeadActionActionResult()
00172       self.action_feedback = control_msgs.msg.PointHeadActionActionFeedback()
00173 
00174   def _get_types(self):
00175     """
00176     internal API method
00177     """
00178     return self._slot_types
00179 
00180   def serialize(self, buff):
00181     """
00182     serialize message into buffer
00183     :param buff: buffer, ``StringIO``
00184     """
00185     try:
00186       _x = self
00187       buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00188       _x = self.action_goal.header.frame_id
00189       length = len(_x)
00190       if python3 or type(_x) == unicode:
00191         _x = _x.encode('utf-8')
00192         length = len(_x)
00193       buff.write(struct.pack('<I%ss'%length, length, _x))
00194       _x = self
00195       buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00196       _x = self.action_goal.goal_id.id
00197       length = len(_x)
00198       if python3 or type(_x) == unicode:
00199         _x = _x.encode('utf-8')
00200         length = len(_x)
00201       buff.write(struct.pack('<I%ss'%length, length, _x))
00202       _x = self
00203       buff.write(_struct_3I.pack(_x.action_goal.goal.target.header.seq, _x.action_goal.goal.target.header.stamp.secs, _x.action_goal.goal.target.header.stamp.nsecs))
00204       _x = self.action_goal.goal.target.header.frame_id
00205       length = len(_x)
00206       if python3 or type(_x) == unicode:
00207         _x = _x.encode('utf-8')
00208         length = len(_x)
00209       buff.write(struct.pack('<I%ss'%length, length, _x))
00210       _x = self
00211       buff.write(_struct_6d.pack(_x.action_goal.goal.target.point.x, _x.action_goal.goal.target.point.y, _x.action_goal.goal.target.point.z, _x.action_goal.goal.pointing_axis.x, _x.action_goal.goal.pointing_axis.y, _x.action_goal.goal.pointing_axis.z))
00212       _x = self.action_goal.goal.pointing_frame
00213       length = len(_x)
00214       if python3 or type(_x) == unicode:
00215         _x = _x.encode('utf-8')
00216         length = len(_x)
00217       buff.write(struct.pack('<I%ss'%length, length, _x))
00218       _x = self
00219       buff.write(_struct_2id3I.pack(_x.action_goal.goal.min_duration.secs, _x.action_goal.goal.min_duration.nsecs, _x.action_goal.goal.max_velocity, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00220       _x = self.action_result.header.frame_id
00221       length = len(_x)
00222       if python3 or type(_x) == unicode:
00223         _x = _x.encode('utf-8')
00224         length = len(_x)
00225       buff.write(struct.pack('<I%ss'%length, length, _x))
00226       _x = self
00227       buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00228       _x = self.action_result.status.goal_id.id
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       buff.write(_struct_B.pack(self.action_result.status.status))
00235       _x = self.action_result.status.text
00236       length = len(_x)
00237       if python3 or type(_x) == unicode:
00238         _x = _x.encode('utf-8')
00239         length = len(_x)
00240       buff.write(struct.pack('<I%ss'%length, length, _x))
00241       _x = self
00242       buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00243       _x = self.action_feedback.header.frame_id
00244       length = len(_x)
00245       if python3 or type(_x) == unicode:
00246         _x = _x.encode('utf-8')
00247         length = len(_x)
00248       buff.write(struct.pack('<I%ss'%length, length, _x))
00249       _x = self
00250       buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00251       _x = self.action_feedback.status.goal_id.id
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       buff.write(_struct_B.pack(self.action_feedback.status.status))
00258       _x = self.action_feedback.status.text
00259       length = len(_x)
00260       if python3 or type(_x) == unicode:
00261         _x = _x.encode('utf-8')
00262         length = len(_x)
00263       buff.write(struct.pack('<I%ss'%length, length, _x))
00264     except struct.error as se: self._check_types(se)
00265     except TypeError as te: self._check_types(te)
00266 
00267   def deserialize(self, str):
00268     """
00269     unpack serialized message in str into this message instance
00270     :param str: byte array of serialized message, ``str``
00271     """
00272     try:
00273       if self.action_goal is None:
00274         self.action_goal = control_msgs.msg.PointHeadActionActionGoal()
00275       if self.action_result is None:
00276         self.action_result = control_msgs.msg.PointHeadActionActionResult()
00277       if self.action_feedback is None:
00278         self.action_feedback = control_msgs.msg.PointHeadActionActionFeedback()
00279       end = 0
00280       _x = self
00281       start = end
00282       end += 12
00283       (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00284       start = end
00285       end += 4
00286       (length,) = _struct_I.unpack(str[start:end])
00287       start = end
00288       end += length
00289       if python3:
00290         self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00291       else:
00292         self.action_goal.header.frame_id = str[start:end]
00293       _x = self
00294       start = end
00295       end += 8
00296       (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00297       start = end
00298       end += 4
00299       (length,) = _struct_I.unpack(str[start:end])
00300       start = end
00301       end += length
00302       if python3:
00303         self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00304       else:
00305         self.action_goal.goal_id.id = str[start:end]
00306       _x = self
00307       start = end
00308       end += 12
00309       (_x.action_goal.goal.target.header.seq, _x.action_goal.goal.target.header.stamp.secs, _x.action_goal.goal.target.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00310       start = end
00311       end += 4
00312       (length,) = _struct_I.unpack(str[start:end])
00313       start = end
00314       end += length
00315       if python3:
00316         self.action_goal.goal.target.header.frame_id = str[start:end].decode('utf-8')
00317       else:
00318         self.action_goal.goal.target.header.frame_id = str[start:end]
00319       _x = self
00320       start = end
00321       end += 48
00322       (_x.action_goal.goal.target.point.x, _x.action_goal.goal.target.point.y, _x.action_goal.goal.target.point.z, _x.action_goal.goal.pointing_axis.x, _x.action_goal.goal.pointing_axis.y, _x.action_goal.goal.pointing_axis.z,) = _struct_6d.unpack(str[start:end])
00323       start = end
00324       end += 4
00325       (length,) = _struct_I.unpack(str[start:end])
00326       start = end
00327       end += length
00328       if python3:
00329         self.action_goal.goal.pointing_frame = str[start:end].decode('utf-8')
00330       else:
00331         self.action_goal.goal.pointing_frame = str[start:end]
00332       _x = self
00333       start = end
00334       end += 28
00335       (_x.action_goal.goal.min_duration.secs, _x.action_goal.goal.min_duration.nsecs, _x.action_goal.goal.max_velocity, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_2id3I.unpack(str[start:end])
00336       start = end
00337       end += 4
00338       (length,) = _struct_I.unpack(str[start:end])
00339       start = end
00340       end += length
00341       if python3:
00342         self.action_result.header.frame_id = str[start:end].decode('utf-8')
00343       else:
00344         self.action_result.header.frame_id = str[start:end]
00345       _x = self
00346       start = end
00347       end += 8
00348       (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00349       start = end
00350       end += 4
00351       (length,) = _struct_I.unpack(str[start:end])
00352       start = end
00353       end += length
00354       if python3:
00355         self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00356       else:
00357         self.action_result.status.goal_id.id = str[start:end]
00358       start = end
00359       end += 1
00360       (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00361       start = end
00362       end += 4
00363       (length,) = _struct_I.unpack(str[start:end])
00364       start = end
00365       end += length
00366       if python3:
00367         self.action_result.status.text = str[start:end].decode('utf-8')
00368       else:
00369         self.action_result.status.text = str[start:end]
00370       _x = self
00371       start = end
00372       end += 12
00373       (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00374       start = end
00375       end += 4
00376       (length,) = _struct_I.unpack(str[start:end])
00377       start = end
00378       end += length
00379       if python3:
00380         self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00381       else:
00382         self.action_feedback.header.frame_id = str[start:end]
00383       _x = self
00384       start = end
00385       end += 8
00386       (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00387       start = end
00388       end += 4
00389       (length,) = _struct_I.unpack(str[start:end])
00390       start = end
00391       end += length
00392       if python3:
00393         self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00394       else:
00395         self.action_feedback.status.goal_id.id = str[start:end]
00396       start = end
00397       end += 1
00398       (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00399       start = end
00400       end += 4
00401       (length,) = _struct_I.unpack(str[start:end])
00402       start = end
00403       end += length
00404       if python3:
00405         self.action_feedback.status.text = str[start:end].decode('utf-8')
00406       else:
00407         self.action_feedback.status.text = str[start:end]
00408       return self
00409     except struct.error as e:
00410       raise genpy.DeserializationError(e) #most likely buffer underfill
00411 
00412 
00413   def serialize_numpy(self, buff, numpy):
00414     """
00415     serialize message with numpy array types into buffer
00416     :param buff: buffer, ``StringIO``
00417     :param numpy: numpy python module
00418     """
00419     try:
00420       _x = self
00421       buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00422       _x = self.action_goal.header.frame_id
00423       length = len(_x)
00424       if python3 or type(_x) == unicode:
00425         _x = _x.encode('utf-8')
00426         length = len(_x)
00427       buff.write(struct.pack('<I%ss'%length, length, _x))
00428       _x = self
00429       buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00430       _x = self.action_goal.goal_id.id
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_3I.pack(_x.action_goal.goal.target.header.seq, _x.action_goal.goal.target.header.stamp.secs, _x.action_goal.goal.target.header.stamp.nsecs))
00438       _x = self.action_goal.goal.target.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_6d.pack(_x.action_goal.goal.target.point.x, _x.action_goal.goal.target.point.y, _x.action_goal.goal.target.point.z, _x.action_goal.goal.pointing_axis.x, _x.action_goal.goal.pointing_axis.y, _x.action_goal.goal.pointing_axis.z))
00446       _x = self.action_goal.goal.pointing_frame
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       _x = self
00453       buff.write(_struct_2id3I.pack(_x.action_goal.goal.min_duration.secs, _x.action_goal.goal.min_duration.nsecs, _x.action_goal.goal.max_velocity, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00454       _x = self.action_result.header.frame_id
00455       length = len(_x)
00456       if python3 or type(_x) == unicode:
00457         _x = _x.encode('utf-8')
00458         length = len(_x)
00459       buff.write(struct.pack('<I%ss'%length, length, _x))
00460       _x = self
00461       buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00462       _x = self.action_result.status.goal_id.id
00463       length = len(_x)
00464       if python3 or type(_x) == unicode:
00465         _x = _x.encode('utf-8')
00466         length = len(_x)
00467       buff.write(struct.pack('<I%ss'%length, length, _x))
00468       buff.write(_struct_B.pack(self.action_result.status.status))
00469       _x = self.action_result.status.text
00470       length = len(_x)
00471       if python3 or type(_x) == unicode:
00472         _x = _x.encode('utf-8')
00473         length = len(_x)
00474       buff.write(struct.pack('<I%ss'%length, length, _x))
00475       _x = self
00476       buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00477       _x = self.action_feedback.header.frame_id
00478       length = len(_x)
00479       if python3 or type(_x) == unicode:
00480         _x = _x.encode('utf-8')
00481         length = len(_x)
00482       buff.write(struct.pack('<I%ss'%length, length, _x))
00483       _x = self
00484       buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00485       _x = self.action_feedback.status.goal_id.id
00486       length = len(_x)
00487       if python3 or type(_x) == unicode:
00488         _x = _x.encode('utf-8')
00489         length = len(_x)
00490       buff.write(struct.pack('<I%ss'%length, length, _x))
00491       buff.write(_struct_B.pack(self.action_feedback.status.status))
00492       _x = self.action_feedback.status.text
00493       length = len(_x)
00494       if python3 or type(_x) == unicode:
00495         _x = _x.encode('utf-8')
00496         length = len(_x)
00497       buff.write(struct.pack('<I%ss'%length, length, _x))
00498     except struct.error as se: self._check_types(se)
00499     except TypeError as te: self._check_types(te)
00500 
00501   def deserialize_numpy(self, str, numpy):
00502     """
00503     unpack serialized message in str into this message instance using numpy for array types
00504     :param str: byte array of serialized message, ``str``
00505     :param numpy: numpy python module
00506     """
00507     try:
00508       if self.action_goal is None:
00509         self.action_goal = control_msgs.msg.PointHeadActionActionGoal()
00510       if self.action_result is None:
00511         self.action_result = control_msgs.msg.PointHeadActionActionResult()
00512       if self.action_feedback is None:
00513         self.action_feedback = control_msgs.msg.PointHeadActionActionFeedback()
00514       end = 0
00515       _x = self
00516       start = end
00517       end += 12
00518       (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.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_goal.header.frame_id = str[start:end].decode('utf-8')
00526       else:
00527         self.action_goal.header.frame_id = str[start:end]
00528       _x = self
00529       start = end
00530       end += 8
00531       (_x.action_goal.goal_id.stamp.secs, _x.action_goal.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_goal.goal_id.id = str[start:end].decode('utf-8')
00539       else:
00540         self.action_goal.goal_id.id = str[start:end]
00541       _x = self
00542       start = end
00543       end += 12
00544       (_x.action_goal.goal.target.header.seq, _x.action_goal.goal.target.header.stamp.secs, _x.action_goal.goal.target.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00545       start = end
00546       end += 4
00547       (length,) = _struct_I.unpack(str[start:end])
00548       start = end
00549       end += length
00550       if python3:
00551         self.action_goal.goal.target.header.frame_id = str[start:end].decode('utf-8')
00552       else:
00553         self.action_goal.goal.target.header.frame_id = str[start:end]
00554       _x = self
00555       start = end
00556       end += 48
00557       (_x.action_goal.goal.target.point.x, _x.action_goal.goal.target.point.y, _x.action_goal.goal.target.point.z, _x.action_goal.goal.pointing_axis.x, _x.action_goal.goal.pointing_axis.y, _x.action_goal.goal.pointing_axis.z,) = _struct_6d.unpack(str[start:end])
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_goal.goal.pointing_frame = str[start:end].decode('utf-8')
00565       else:
00566         self.action_goal.goal.pointing_frame = str[start:end]
00567       _x = self
00568       start = end
00569       end += 28
00570       (_x.action_goal.goal.min_duration.secs, _x.action_goal.goal.min_duration.nsecs, _x.action_goal.goal.max_velocity, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_2id3I.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_result.header.frame_id = str[start:end].decode('utf-8')
00578       else:
00579         self.action_result.header.frame_id = str[start:end]
00580       _x = self
00581       start = end
00582       end += 8
00583       (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00584       start = end
00585       end += 4
00586       (length,) = _struct_I.unpack(str[start:end])
00587       start = end
00588       end += length
00589       if python3:
00590         self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00591       else:
00592         self.action_result.status.goal_id.id = str[start:end]
00593       start = end
00594       end += 1
00595       (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00596       start = end
00597       end += 4
00598       (length,) = _struct_I.unpack(str[start:end])
00599       start = end
00600       end += length
00601       if python3:
00602         self.action_result.status.text = str[start:end].decode('utf-8')
00603       else:
00604         self.action_result.status.text = str[start:end]
00605       _x = self
00606       start = end
00607       end += 12
00608       (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00609       start = end
00610       end += 4
00611       (length,) = _struct_I.unpack(str[start:end])
00612       start = end
00613       end += length
00614       if python3:
00615         self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00616       else:
00617         self.action_feedback.header.frame_id = str[start:end]
00618       _x = self
00619       start = end
00620       end += 8
00621       (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00622       start = end
00623       end += 4
00624       (length,) = _struct_I.unpack(str[start:end])
00625       start = end
00626       end += length
00627       if python3:
00628         self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00629       else:
00630         self.action_feedback.status.goal_id.id = str[start:end]
00631       start = end
00632       end += 1
00633       (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00634       start = end
00635       end += 4
00636       (length,) = _struct_I.unpack(str[start:end])
00637       start = end
00638       end += length
00639       if python3:
00640         self.action_feedback.status.text = str[start:end].decode('utf-8')
00641       else:
00642         self.action_feedback.status.text = str[start:end]
00643       return self
00644     except struct.error as e:
00645       raise genpy.DeserializationError(e) #most likely buffer underfill
00646 
00647 _struct_I = genpy.struct_I
00648 _struct_2id3I = struct.Struct("<2id3I")
00649 _struct_3I = struct.Struct("<3I")
00650 _struct_B = struct.Struct("<B")
00651 _struct_6d = struct.Struct("<6d")
00652 _struct_2I = struct.Struct("<2I")


control_msgs
Author(s): Stuart Glaser
autogenerated on Sat Dec 28 2013 16:52:54