_MoveBaseActionFeedback.py
Go to the documentation of this file.
00001 """autogenerated by genpy from move_base_msgs/MoveBaseActionFeedback.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 move_base_msgs.msg
00009 import genpy
00010 import actionlib_msgs.msg
00011 import std_msgs.msg
00012 
00013 class MoveBaseActionFeedback(genpy.Message):
00014   _md5sum = "7d1870ff6e0decea702b943b5af0b42e"
00015   _type = "move_base_msgs/MoveBaseActionFeedback"
00016   _has_header = True #flag to mark the presence of a Header object
00017   _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00018 
00019 Header header
00020 actionlib_msgs/GoalStatus status
00021 MoveBaseFeedback feedback
00022 
00023 ================================================================================
00024 MSG: std_msgs/Header
00025 # Standard metadata for higher-level stamped data types.
00026 # This is generally used to communicate timestamped data 
00027 # in a particular coordinate frame.
00028 # 
00029 # sequence ID: consecutively increasing ID 
00030 uint32 seq
00031 #Two-integer timestamp that is expressed as:
00032 # * stamp.secs: seconds (stamp_secs) since epoch
00033 # * stamp.nsecs: nanoseconds since stamp_secs
00034 # time-handling sugar is provided by the client library
00035 time stamp
00036 #Frame this data is associated with
00037 # 0: no frame
00038 # 1: global frame
00039 string frame_id
00040 
00041 ================================================================================
00042 MSG: actionlib_msgs/GoalStatus
00043 GoalID goal_id
00044 uint8 status
00045 uint8 PENDING         = 0   # The goal has yet to be processed by the action server
00046 uint8 ACTIVE          = 1   # The goal is currently being processed by the action server
00047 uint8 PREEMPTED       = 2   # The goal received a cancel request after it started executing
00048                             #   and has since completed its execution (Terminal State)
00049 uint8 SUCCEEDED       = 3   # The goal was achieved successfully by the action server (Terminal State)
00050 uint8 ABORTED         = 4   # The goal was aborted during execution by the action server due
00051                             #    to some failure (Terminal State)
00052 uint8 REJECTED        = 5   # The goal was rejected by the action server without being processed,
00053                             #    because the goal was unattainable or invalid (Terminal State)
00054 uint8 PREEMPTING      = 6   # The goal received a cancel request after it started executing
00055                             #    and has not yet completed execution
00056 uint8 RECALLING       = 7   # The goal received a cancel request before it started executing,
00057                             #    but the action server has not yet confirmed that the goal is canceled
00058 uint8 RECALLED        = 8   # The goal received a cancel request before it started executing
00059                             #    and was successfully cancelled (Terminal State)
00060 uint8 LOST            = 9   # An action client can determine that a goal is LOST. This should not be
00061                             #    sent over the wire by an action server
00062 
00063 #Allow for the user to associate a string with GoalStatus for debugging
00064 string text
00065 
00066 
00067 ================================================================================
00068 MSG: actionlib_msgs/GoalID
00069 # The stamp should store the time at which this goal was requested.
00070 # It is used by an action server when it tries to preempt all
00071 # goals that were requested before a certain time
00072 time stamp
00073 
00074 # The id provides a way to associate feedback and
00075 # result message with specific goal requests. The id
00076 # specified must be unique.
00077 string id
00078 
00079 
00080 ================================================================================
00081 MSG: move_base_msgs/MoveBaseFeedback
00082 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00083 geometry_msgs/PoseStamped base_position
00084 
00085 
00086 ================================================================================
00087 MSG: geometry_msgs/PoseStamped
00088 # A Pose with reference coordinate frame and timestamp
00089 Header header
00090 Pose pose
00091 
00092 ================================================================================
00093 MSG: geometry_msgs/Pose
00094 # A representation of pose in free space, composed of postion and orientation. 
00095 Point position
00096 Quaternion orientation
00097 
00098 ================================================================================
00099 MSG: geometry_msgs/Point
00100 # This contains the position of a point in free space
00101 float64 x
00102 float64 y
00103 float64 z
00104 
00105 ================================================================================
00106 MSG: geometry_msgs/Quaternion
00107 # This represents an orientation in free space in quaternion form.
00108 
00109 float64 x
00110 float64 y
00111 float64 z
00112 float64 w
00113 
00114 """
00115   __slots__ = ['header','status','feedback']
00116   _slot_types = ['std_msgs/Header','actionlib_msgs/GoalStatus','move_base_msgs/MoveBaseFeedback']
00117 
00118   def __init__(self, *args, **kwds):
00119     """
00120     Constructor. Any message fields that are implicitly/explicitly
00121     set to None will be assigned a default value. The recommend
00122     use is keyword arguments as this is more robust to future message
00123     changes.  You cannot mix in-order arguments and keyword arguments.
00124 
00125     The available fields are:
00126        header,status,feedback
00127 
00128     :param args: complete set of field values, in .msg order
00129     :param kwds: use keyword arguments corresponding to message field names
00130     to set specific fields.
00131     """
00132     if args or kwds:
00133       super(MoveBaseActionFeedback, self).__init__(*args, **kwds)
00134       #message fields cannot be None, assign default values for those that are
00135       if self.header is None:
00136         self.header = std_msgs.msg.Header()
00137       if self.status is None:
00138         self.status = actionlib_msgs.msg.GoalStatus()
00139       if self.feedback is None:
00140         self.feedback = move_base_msgs.msg.MoveBaseFeedback()
00141     else:
00142       self.header = std_msgs.msg.Header()
00143       self.status = actionlib_msgs.msg.GoalStatus()
00144       self.feedback = move_base_msgs.msg.MoveBaseFeedback()
00145 
00146   def _get_types(self):
00147     """
00148     internal API method
00149     """
00150     return self._slot_types
00151 
00152   def serialize(self, buff):
00153     """
00154     serialize message into buffer
00155     :param buff: buffer, ``StringIO``
00156     """
00157     try:
00158       _x = self
00159       buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00160       _x = self.header.frame_id
00161       length = len(_x)
00162       if python3 or type(_x) == unicode:
00163         _x = _x.encode('utf-8')
00164         length = len(_x)
00165       buff.write(struct.pack('<I%ss'%length, length, _x))
00166       _x = self
00167       buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs))
00168       _x = self.status.goal_id.id
00169       length = len(_x)
00170       if python3 or type(_x) == unicode:
00171         _x = _x.encode('utf-8')
00172         length = len(_x)
00173       buff.write(struct.pack('<I%ss'%length, length, _x))
00174       buff.write(_struct_B.pack(self.status.status))
00175       _x = self.status.text
00176       length = len(_x)
00177       if python3 or type(_x) == unicode:
00178         _x = _x.encode('utf-8')
00179         length = len(_x)
00180       buff.write(struct.pack('<I%ss'%length, length, _x))
00181       _x = self
00182       buff.write(_struct_3I.pack(_x.feedback.base_position.header.seq, _x.feedback.base_position.header.stamp.secs, _x.feedback.base_position.header.stamp.nsecs))
00183       _x = self.feedback.base_position.header.frame_id
00184       length = len(_x)
00185       if python3 or type(_x) == unicode:
00186         _x = _x.encode('utf-8')
00187         length = len(_x)
00188       buff.write(struct.pack('<I%ss'%length, length, _x))
00189       _x = self
00190       buff.write(_struct_7d.pack(_x.feedback.base_position.pose.position.x, _x.feedback.base_position.pose.position.y, _x.feedback.base_position.pose.position.z, _x.feedback.base_position.pose.orientation.x, _x.feedback.base_position.pose.orientation.y, _x.feedback.base_position.pose.orientation.z, _x.feedback.base_position.pose.orientation.w))
00191     except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
00192     except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
00193 
00194   def deserialize(self, str):
00195     """
00196     unpack serialized message in str into this message instance
00197     :param str: byte array of serialized message, ``str``
00198     """
00199     try:
00200       if self.header is None:
00201         self.header = std_msgs.msg.Header()
00202       if self.status is None:
00203         self.status = actionlib_msgs.msg.GoalStatus()
00204       if self.feedback is None:
00205         self.feedback = move_base_msgs.msg.MoveBaseFeedback()
00206       end = 0
00207       _x = self
00208       start = end
00209       end += 12
00210       (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00211       start = end
00212       end += 4
00213       (length,) = _struct_I.unpack(str[start:end])
00214       start = end
00215       end += length
00216       if python3:
00217         self.header.frame_id = str[start:end].decode('utf-8')
00218       else:
00219         self.header.frame_id = str[start:end]
00220       _x = self
00221       start = end
00222       end += 8
00223       (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00224       start = end
00225       end += 4
00226       (length,) = _struct_I.unpack(str[start:end])
00227       start = end
00228       end += length
00229       if python3:
00230         self.status.goal_id.id = str[start:end].decode('utf-8')
00231       else:
00232         self.status.goal_id.id = str[start:end]
00233       start = end
00234       end += 1
00235       (self.status.status,) = _struct_B.unpack(str[start:end])
00236       start = end
00237       end += 4
00238       (length,) = _struct_I.unpack(str[start:end])
00239       start = end
00240       end += length
00241       if python3:
00242         self.status.text = str[start:end].decode('utf-8')
00243       else:
00244         self.status.text = str[start:end]
00245       _x = self
00246       start = end
00247       end += 12
00248       (_x.feedback.base_position.header.seq, _x.feedback.base_position.header.stamp.secs, _x.feedback.base_position.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00249       start = end
00250       end += 4
00251       (length,) = _struct_I.unpack(str[start:end])
00252       start = end
00253       end += length
00254       if python3:
00255         self.feedback.base_position.header.frame_id = str[start:end].decode('utf-8')
00256       else:
00257         self.feedback.base_position.header.frame_id = str[start:end]
00258       _x = self
00259       start = end
00260       end += 56
00261       (_x.feedback.base_position.pose.position.x, _x.feedback.base_position.pose.position.y, _x.feedback.base_position.pose.position.z, _x.feedback.base_position.pose.orientation.x, _x.feedback.base_position.pose.orientation.y, _x.feedback.base_position.pose.orientation.z, _x.feedback.base_position.pose.orientation.w,) = _struct_7d.unpack(str[start:end])
00262       return self
00263     except struct.error as e:
00264       raise genpy.DeserializationError(e) #most likely buffer underfill
00265 
00266 
00267   def serialize_numpy(self, buff, numpy):
00268     """
00269     serialize message with numpy array types into buffer
00270     :param buff: buffer, ``StringIO``
00271     :param numpy: numpy python module
00272     """
00273     try:
00274       _x = self
00275       buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00276       _x = self.header.frame_id
00277       length = len(_x)
00278       if python3 or type(_x) == unicode:
00279         _x = _x.encode('utf-8')
00280         length = len(_x)
00281       buff.write(struct.pack('<I%ss'%length, length, _x))
00282       _x = self
00283       buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs))
00284       _x = self.status.goal_id.id
00285       length = len(_x)
00286       if python3 or type(_x) == unicode:
00287         _x = _x.encode('utf-8')
00288         length = len(_x)
00289       buff.write(struct.pack('<I%ss'%length, length, _x))
00290       buff.write(_struct_B.pack(self.status.status))
00291       _x = self.status.text
00292       length = len(_x)
00293       if python3 or type(_x) == unicode:
00294         _x = _x.encode('utf-8')
00295         length = len(_x)
00296       buff.write(struct.pack('<I%ss'%length, length, _x))
00297       _x = self
00298       buff.write(_struct_3I.pack(_x.feedback.base_position.header.seq, _x.feedback.base_position.header.stamp.secs, _x.feedback.base_position.header.stamp.nsecs))
00299       _x = self.feedback.base_position.header.frame_id
00300       length = len(_x)
00301       if python3 or type(_x) == unicode:
00302         _x = _x.encode('utf-8')
00303         length = len(_x)
00304       buff.write(struct.pack('<I%ss'%length, length, _x))
00305       _x = self
00306       buff.write(_struct_7d.pack(_x.feedback.base_position.pose.position.x, _x.feedback.base_position.pose.position.y, _x.feedback.base_position.pose.position.z, _x.feedback.base_position.pose.orientation.x, _x.feedback.base_position.pose.orientation.y, _x.feedback.base_position.pose.orientation.z, _x.feedback.base_position.pose.orientation.w))
00307     except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
00308     except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
00309 
00310   def deserialize_numpy(self, str, numpy):
00311     """
00312     unpack serialized message in str into this message instance using numpy for array types
00313     :param str: byte array of serialized message, ``str``
00314     :param numpy: numpy python module
00315     """
00316     try:
00317       if self.header is None:
00318         self.header = std_msgs.msg.Header()
00319       if self.status is None:
00320         self.status = actionlib_msgs.msg.GoalStatus()
00321       if self.feedback is None:
00322         self.feedback = move_base_msgs.msg.MoveBaseFeedback()
00323       end = 0
00324       _x = self
00325       start = end
00326       end += 12
00327       (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.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.header.frame_id = str[start:end].decode('utf-8')
00335       else:
00336         self.header.frame_id = str[start:end]
00337       _x = self
00338       start = end
00339       end += 8
00340       (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00341       start = end
00342       end += 4
00343       (length,) = _struct_I.unpack(str[start:end])
00344       start = end
00345       end += length
00346       if python3:
00347         self.status.goal_id.id = str[start:end].decode('utf-8')
00348       else:
00349         self.status.goal_id.id = str[start:end]
00350       start = end
00351       end += 1
00352       (self.status.status,) = _struct_B.unpack(str[start:end])
00353       start = end
00354       end += 4
00355       (length,) = _struct_I.unpack(str[start:end])
00356       start = end
00357       end += length
00358       if python3:
00359         self.status.text = str[start:end].decode('utf-8')
00360       else:
00361         self.status.text = str[start:end]
00362       _x = self
00363       start = end
00364       end += 12
00365       (_x.feedback.base_position.header.seq, _x.feedback.base_position.header.stamp.secs, _x.feedback.base_position.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00366       start = end
00367       end += 4
00368       (length,) = _struct_I.unpack(str[start:end])
00369       start = end
00370       end += length
00371       if python3:
00372         self.feedback.base_position.header.frame_id = str[start:end].decode('utf-8')
00373       else:
00374         self.feedback.base_position.header.frame_id = str[start:end]
00375       _x = self
00376       start = end
00377       end += 56
00378       (_x.feedback.base_position.pose.position.x, _x.feedback.base_position.pose.position.y, _x.feedback.base_position.pose.position.z, _x.feedback.base_position.pose.orientation.x, _x.feedback.base_position.pose.orientation.y, _x.feedback.base_position.pose.orientation.z, _x.feedback.base_position.pose.orientation.w,) = _struct_7d.unpack(str[start:end])
00379       return self
00380     except struct.error as e:
00381       raise genpy.DeserializationError(e) #most likely buffer underfill
00382 
00383 _struct_I = genpy.struct_I
00384 _struct_3I = struct.Struct("<3I")
00385 _struct_B = struct.Struct("<B")
00386 _struct_7d = struct.Struct("<7d")
00387 _struct_2I = struct.Struct("<2I")


move_base_msgs
Author(s): Eitan Marder-Eppstein
autogenerated on Mon Oct 6 2014 02:46:01