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


pr2_object_manipulation_msgs
Author(s): Matei Ciocarlie
autogenerated on Fri Jan 3 2014 11:59:13