_MoveBaseActionGoal.py
Go to the documentation of this file.
00001 """autogenerated by genpy from move_base_msgs/MoveBaseActionGoal.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 MoveBaseActionGoal(genpy.Message):
00014   _md5sum = "660d6895a1b9a16dce51fbdd9a64a56b"
00015   _type = "move_base_msgs/MoveBaseActionGoal"
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/GoalID goal_id
00021 MoveBaseGoal goal
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/GoalID
00043 # The stamp should store the time at which this goal was requested.
00044 # It is used by an action server when it tries to preempt all
00045 # goals that were requested before a certain time
00046 time stamp
00047 
00048 # The id provides a way to associate feedback and
00049 # result message with specific goal requests. The id
00050 # specified must be unique.
00051 string id
00052 
00053 
00054 ================================================================================
00055 MSG: move_base_msgs/MoveBaseGoal
00056 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00057 geometry_msgs/PoseStamped target_pose
00058 
00059 ================================================================================
00060 MSG: geometry_msgs/PoseStamped
00061 # A Pose with reference coordinate frame and timestamp
00062 Header header
00063 Pose pose
00064 
00065 ================================================================================
00066 MSG: geometry_msgs/Pose
00067 # A representation of pose in free space, composed of postion and orientation. 
00068 Point position
00069 Quaternion orientation
00070 
00071 ================================================================================
00072 MSG: geometry_msgs/Point
00073 # This contains the position of a point in free space
00074 float64 x
00075 float64 y
00076 float64 z
00077 
00078 ================================================================================
00079 MSG: geometry_msgs/Quaternion
00080 # This represents an orientation in free space in quaternion form.
00081 
00082 float64 x
00083 float64 y
00084 float64 z
00085 float64 w
00086 
00087 """
00088   __slots__ = ['header','goal_id','goal']
00089   _slot_types = ['std_msgs/Header','actionlib_msgs/GoalID','move_base_msgs/MoveBaseGoal']
00090 
00091   def __init__(self, *args, **kwds):
00092     """
00093     Constructor. Any message fields that are implicitly/explicitly
00094     set to None will be assigned a default value. The recommend
00095     use is keyword arguments as this is more robust to future message
00096     changes.  You cannot mix in-order arguments and keyword arguments.
00097 
00098     The available fields are:
00099        header,goal_id,goal
00100 
00101     :param args: complete set of field values, in .msg order
00102     :param kwds: use keyword arguments corresponding to message field names
00103     to set specific fields.
00104     """
00105     if args or kwds:
00106       super(MoveBaseActionGoal, self).__init__(*args, **kwds)
00107       #message fields cannot be None, assign default values for those that are
00108       if self.header is None:
00109         self.header = std_msgs.msg.Header()
00110       if self.goal_id is None:
00111         self.goal_id = actionlib_msgs.msg.GoalID()
00112       if self.goal is None:
00113         self.goal = move_base_msgs.msg.MoveBaseGoal()
00114     else:
00115       self.header = std_msgs.msg.Header()
00116       self.goal_id = actionlib_msgs.msg.GoalID()
00117       self.goal = move_base_msgs.msg.MoveBaseGoal()
00118 
00119   def _get_types(self):
00120     """
00121     internal API method
00122     """
00123     return self._slot_types
00124 
00125   def serialize(self, buff):
00126     """
00127     serialize message into buffer
00128     :param buff: buffer, ``StringIO``
00129     """
00130     try:
00131       _x = self
00132       buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00133       _x = self.header.frame_id
00134       length = len(_x)
00135       if python3 or type(_x) == unicode:
00136         _x = _x.encode('utf-8')
00137         length = len(_x)
00138       buff.write(struct.pack('<I%ss'%length, length, _x))
00139       _x = self
00140       buff.write(_struct_2I.pack(_x.goal_id.stamp.secs, _x.goal_id.stamp.nsecs))
00141       _x = self.goal_id.id
00142       length = len(_x)
00143       if python3 or type(_x) == unicode:
00144         _x = _x.encode('utf-8')
00145         length = len(_x)
00146       buff.write(struct.pack('<I%ss'%length, length, _x))
00147       _x = self
00148       buff.write(_struct_3I.pack(_x.goal.target_pose.header.seq, _x.goal.target_pose.header.stamp.secs, _x.goal.target_pose.header.stamp.nsecs))
00149       _x = self.goal.target_pose.header.frame_id
00150       length = len(_x)
00151       if python3 or type(_x) == unicode:
00152         _x = _x.encode('utf-8')
00153         length = len(_x)
00154       buff.write(struct.pack('<I%ss'%length, length, _x))
00155       _x = self
00156       buff.write(_struct_7d.pack(_x.goal.target_pose.pose.position.x, _x.goal.target_pose.pose.position.y, _x.goal.target_pose.pose.position.z, _x.goal.target_pose.pose.orientation.x, _x.goal.target_pose.pose.orientation.y, _x.goal.target_pose.pose.orientation.z, _x.goal.target_pose.pose.orientation.w))
00157     except struct.error as se: self._check_types(se)
00158     except TypeError as te: self._check_types(te)
00159 
00160   def deserialize(self, str):
00161     """
00162     unpack serialized message in str into this message instance
00163     :param str: byte array of serialized message, ``str``
00164     """
00165     try:
00166       if self.header is None:
00167         self.header = std_msgs.msg.Header()
00168       if self.goal_id is None:
00169         self.goal_id = actionlib_msgs.msg.GoalID()
00170       if self.goal is None:
00171         self.goal = move_base_msgs.msg.MoveBaseGoal()
00172       end = 0
00173       _x = self
00174       start = end
00175       end += 12
00176       (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00177       start = end
00178       end += 4
00179       (length,) = _struct_I.unpack(str[start:end])
00180       start = end
00181       end += length
00182       if python3:
00183         self.header.frame_id = str[start:end].decode('utf-8')
00184       else:
00185         self.header.frame_id = str[start:end]
00186       _x = self
00187       start = end
00188       end += 8
00189       (_x.goal_id.stamp.secs, _x.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00190       start = end
00191       end += 4
00192       (length,) = _struct_I.unpack(str[start:end])
00193       start = end
00194       end += length
00195       if python3:
00196         self.goal_id.id = str[start:end].decode('utf-8')
00197       else:
00198         self.goal_id.id = str[start:end]
00199       _x = self
00200       start = end
00201       end += 12
00202       (_x.goal.target_pose.header.seq, _x.goal.target_pose.header.stamp.secs, _x.goal.target_pose.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00203       start = end
00204       end += 4
00205       (length,) = _struct_I.unpack(str[start:end])
00206       start = end
00207       end += length
00208       if python3:
00209         self.goal.target_pose.header.frame_id = str[start:end].decode('utf-8')
00210       else:
00211         self.goal.target_pose.header.frame_id = str[start:end]
00212       _x = self
00213       start = end
00214       end += 56
00215       (_x.goal.target_pose.pose.position.x, _x.goal.target_pose.pose.position.y, _x.goal.target_pose.pose.position.z, _x.goal.target_pose.pose.orientation.x, _x.goal.target_pose.pose.orientation.y, _x.goal.target_pose.pose.orientation.z, _x.goal.target_pose.pose.orientation.w,) = _struct_7d.unpack(str[start:end])
00216       return self
00217     except struct.error as e:
00218       raise genpy.DeserializationError(e) #most likely buffer underfill
00219 
00220 
00221   def serialize_numpy(self, buff, numpy):
00222     """
00223     serialize message with numpy array types into buffer
00224     :param buff: buffer, ``StringIO``
00225     :param numpy: numpy python module
00226     """
00227     try:
00228       _x = self
00229       buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00230       _x = self.header.frame_id
00231       length = len(_x)
00232       if python3 or type(_x) == unicode:
00233         _x = _x.encode('utf-8')
00234         length = len(_x)
00235       buff.write(struct.pack('<I%ss'%length, length, _x))
00236       _x = self
00237       buff.write(_struct_2I.pack(_x.goal_id.stamp.secs, _x.goal_id.stamp.nsecs))
00238       _x = self.goal_id.id
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_3I.pack(_x.goal.target_pose.header.seq, _x.goal.target_pose.header.stamp.secs, _x.goal.target_pose.header.stamp.nsecs))
00246       _x = self.goal.target_pose.header.frame_id
00247       length = len(_x)
00248       if python3 or type(_x) == unicode:
00249         _x = _x.encode('utf-8')
00250         length = len(_x)
00251       buff.write(struct.pack('<I%ss'%length, length, _x))
00252       _x = self
00253       buff.write(_struct_7d.pack(_x.goal.target_pose.pose.position.x, _x.goal.target_pose.pose.position.y, _x.goal.target_pose.pose.position.z, _x.goal.target_pose.pose.orientation.x, _x.goal.target_pose.pose.orientation.y, _x.goal.target_pose.pose.orientation.z, _x.goal.target_pose.pose.orientation.w))
00254     except struct.error as se: self._check_types(se)
00255     except TypeError as te: self._check_types(te)
00256 
00257   def deserialize_numpy(self, str, numpy):
00258     """
00259     unpack serialized message in str into this message instance using numpy for array types
00260     :param str: byte array of serialized message, ``str``
00261     :param numpy: numpy python module
00262     """
00263     try:
00264       if self.header is None:
00265         self.header = std_msgs.msg.Header()
00266       if self.goal_id is None:
00267         self.goal_id = actionlib_msgs.msg.GoalID()
00268       if self.goal is None:
00269         self.goal = move_base_msgs.msg.MoveBaseGoal()
00270       end = 0
00271       _x = self
00272       start = end
00273       end += 12
00274       (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00275       start = end
00276       end += 4
00277       (length,) = _struct_I.unpack(str[start:end])
00278       start = end
00279       end += length
00280       if python3:
00281         self.header.frame_id = str[start:end].decode('utf-8')
00282       else:
00283         self.header.frame_id = str[start:end]
00284       _x = self
00285       start = end
00286       end += 8
00287       (_x.goal_id.stamp.secs, _x.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00288       start = end
00289       end += 4
00290       (length,) = _struct_I.unpack(str[start:end])
00291       start = end
00292       end += length
00293       if python3:
00294         self.goal_id.id = str[start:end].decode('utf-8')
00295       else:
00296         self.goal_id.id = str[start:end]
00297       _x = self
00298       start = end
00299       end += 12
00300       (_x.goal.target_pose.header.seq, _x.goal.target_pose.header.stamp.secs, _x.goal.target_pose.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00301       start = end
00302       end += 4
00303       (length,) = _struct_I.unpack(str[start:end])
00304       start = end
00305       end += length
00306       if python3:
00307         self.goal.target_pose.header.frame_id = str[start:end].decode('utf-8')
00308       else:
00309         self.goal.target_pose.header.frame_id = str[start:end]
00310       _x = self
00311       start = end
00312       end += 56
00313       (_x.goal.target_pose.pose.position.x, _x.goal.target_pose.pose.position.y, _x.goal.target_pose.pose.position.z, _x.goal.target_pose.pose.orientation.x, _x.goal.target_pose.pose.orientation.y, _x.goal.target_pose.pose.orientation.z, _x.goal.target_pose.pose.orientation.w,) = _struct_7d.unpack(str[start:end])
00314       return self
00315     except struct.error as e:
00316       raise genpy.DeserializationError(e) #most likely buffer underfill
00317 
00318 _struct_I = genpy.struct_I
00319 _struct_3I = struct.Struct("<3I")
00320 _struct_7d = struct.Struct("<7d")
00321 _struct_2I = struct.Struct("<2I")


move_base_msgs
Author(s): Eitan Marder-Eppstein
autogenerated on Sat Dec 28 2013 17:13:58