_GetGripperPoseActionFeedback.py
Go to the documentation of this file.
00001 """autogenerated by genpy from pr2_object_manipulation_msgs/GetGripperPoseActionFeedback.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 GetGripperPoseActionFeedback(genpy.Message):
00014   _md5sum = "827a28d3cc9d535aa16d3748d83a6d58"
00015   _type = "pr2_object_manipulation_msgs/GetGripperPoseActionFeedback"
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 GetGripperPoseFeedback 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: pr2_object_manipulation_msgs/GetGripperPoseFeedback
00082 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00083 
00084 # the feedback gripper pose, which is basically raw and unfiltered but may be useful
00085 geometry_msgs/PoseStamped gripper_pose
00086 float32 gripper_opening
00087 
00088 
00089 ================================================================================
00090 MSG: geometry_msgs/PoseStamped
00091 # A Pose with reference coordinate frame and timestamp
00092 Header header
00093 Pose pose
00094 
00095 ================================================================================
00096 MSG: geometry_msgs/Pose
00097 # A representation of pose in free space, composed of postion and orientation. 
00098 Point position
00099 Quaternion orientation
00100 
00101 ================================================================================
00102 MSG: geometry_msgs/Point
00103 # This contains the position of a point in free space
00104 float64 x
00105 float64 y
00106 float64 z
00107 
00108 ================================================================================
00109 MSG: geometry_msgs/Quaternion
00110 # This represents an orientation in free space in quaternion form.
00111 
00112 float64 x
00113 float64 y
00114 float64 z
00115 float64 w
00116 
00117 """
00118   __slots__ = ['header','status','feedback']
00119   _slot_types = ['std_msgs/Header','actionlib_msgs/GoalStatus','pr2_object_manipulation_msgs/GetGripperPoseFeedback']
00120 
00121   def __init__(self, *args, **kwds):
00122     """
00123     Constructor. Any message fields that are implicitly/explicitly
00124     set to None will be assigned a default value. The recommend
00125     use is keyword arguments as this is more robust to future message
00126     changes.  You cannot mix in-order arguments and keyword arguments.
00127 
00128     The available fields are:
00129        header,status,feedback
00130 
00131     :param args: complete set of field values, in .msg order
00132     :param kwds: use keyword arguments corresponding to message field names
00133     to set specific fields.
00134     """
00135     if args or kwds:
00136       super(GetGripperPoseActionFeedback, self).__init__(*args, **kwds)
00137       #message fields cannot be None, assign default values for those that are
00138       if self.header is None:
00139         self.header = std_msgs.msg.Header()
00140       if self.status is None:
00141         self.status = actionlib_msgs.msg.GoalStatus()
00142       if self.feedback is None:
00143         self.feedback = pr2_object_manipulation_msgs.msg.GetGripperPoseFeedback()
00144     else:
00145       self.header = std_msgs.msg.Header()
00146       self.status = actionlib_msgs.msg.GoalStatus()
00147       self.feedback = pr2_object_manipulation_msgs.msg.GetGripperPoseFeedback()
00148 
00149   def _get_types(self):
00150     """
00151     internal API method
00152     """
00153     return self._slot_types
00154 
00155   def serialize(self, buff):
00156     """
00157     serialize message into buffer
00158     :param buff: buffer, ``StringIO``
00159     """
00160     try:
00161       _x = self
00162       buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00163       _x = self.header.frame_id
00164       length = len(_x)
00165       if python3 or type(_x) == unicode:
00166         _x = _x.encode('utf-8')
00167         length = len(_x)
00168       buff.write(struct.pack('<I%ss'%length, length, _x))
00169       _x = self
00170       buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs))
00171       _x = self.status.goal_id.id
00172       length = len(_x)
00173       if python3 or type(_x) == unicode:
00174         _x = _x.encode('utf-8')
00175         length = len(_x)
00176       buff.write(struct.pack('<I%ss'%length, length, _x))
00177       buff.write(_struct_B.pack(self.status.status))
00178       _x = self.status.text
00179       length = len(_x)
00180       if python3 or type(_x) == unicode:
00181         _x = _x.encode('utf-8')
00182         length = len(_x)
00183       buff.write(struct.pack('<I%ss'%length, length, _x))
00184       _x = self
00185       buff.write(_struct_3I.pack(_x.feedback.gripper_pose.header.seq, _x.feedback.gripper_pose.header.stamp.secs, _x.feedback.gripper_pose.header.stamp.nsecs))
00186       _x = self.feedback.gripper_pose.header.frame_id
00187       length = len(_x)
00188       if python3 or type(_x) == unicode:
00189         _x = _x.encode('utf-8')
00190         length = len(_x)
00191       buff.write(struct.pack('<I%ss'%length, length, _x))
00192       _x = self
00193       buff.write(_struct_7df.pack(_x.feedback.gripper_pose.pose.position.x, _x.feedback.gripper_pose.pose.position.y, _x.feedback.gripper_pose.pose.position.z, _x.feedback.gripper_pose.pose.orientation.x, _x.feedback.gripper_pose.pose.orientation.y, _x.feedback.gripper_pose.pose.orientation.z, _x.feedback.gripper_pose.pose.orientation.w, _x.feedback.gripper_opening))
00194     except struct.error as se: self._check_types(se)
00195     except TypeError as te: self._check_types(te)
00196 
00197   def deserialize(self, str):
00198     """
00199     unpack serialized message in str into this message instance
00200     :param str: byte array of serialized message, ``str``
00201     """
00202     try:
00203       if self.header is None:
00204         self.header = std_msgs.msg.Header()
00205       if self.status is None:
00206         self.status = actionlib_msgs.msg.GoalStatus()
00207       if self.feedback is None:
00208         self.feedback = pr2_object_manipulation_msgs.msg.GetGripperPoseFeedback()
00209       end = 0
00210       _x = self
00211       start = end
00212       end += 12
00213       (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00214       start = end
00215       end += 4
00216       (length,) = _struct_I.unpack(str[start:end])
00217       start = end
00218       end += length
00219       if python3:
00220         self.header.frame_id = str[start:end].decode('utf-8')
00221       else:
00222         self.header.frame_id = str[start:end]
00223       _x = self
00224       start = end
00225       end += 8
00226       (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00227       start = end
00228       end += 4
00229       (length,) = _struct_I.unpack(str[start:end])
00230       start = end
00231       end += length
00232       if python3:
00233         self.status.goal_id.id = str[start:end].decode('utf-8')
00234       else:
00235         self.status.goal_id.id = str[start:end]
00236       start = end
00237       end += 1
00238       (self.status.status,) = _struct_B.unpack(str[start:end])
00239       start = end
00240       end += 4
00241       (length,) = _struct_I.unpack(str[start:end])
00242       start = end
00243       end += length
00244       if python3:
00245         self.status.text = str[start:end].decode('utf-8')
00246       else:
00247         self.status.text = str[start:end]
00248       _x = self
00249       start = end
00250       end += 12
00251       (_x.feedback.gripper_pose.header.seq, _x.feedback.gripper_pose.header.stamp.secs, _x.feedback.gripper_pose.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00252       start = end
00253       end += 4
00254       (length,) = _struct_I.unpack(str[start:end])
00255       start = end
00256       end += length
00257       if python3:
00258         self.feedback.gripper_pose.header.frame_id = str[start:end].decode('utf-8')
00259       else:
00260         self.feedback.gripper_pose.header.frame_id = str[start:end]
00261       _x = self
00262       start = end
00263       end += 60
00264       (_x.feedback.gripper_pose.pose.position.x, _x.feedback.gripper_pose.pose.position.y, _x.feedback.gripper_pose.pose.position.z, _x.feedback.gripper_pose.pose.orientation.x, _x.feedback.gripper_pose.pose.orientation.y, _x.feedback.gripper_pose.pose.orientation.z, _x.feedback.gripper_pose.pose.orientation.w, _x.feedback.gripper_opening,) = _struct_7df.unpack(str[start:end])
00265       return self
00266     except struct.error as e:
00267       raise genpy.DeserializationError(e) #most likely buffer underfill
00268 
00269 
00270   def serialize_numpy(self, buff, numpy):
00271     """
00272     serialize message with numpy array types into buffer
00273     :param buff: buffer, ``StringIO``
00274     :param numpy: numpy python module
00275     """
00276     try:
00277       _x = self
00278       buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00279       _x = self.header.frame_id
00280       length = len(_x)
00281       if python3 or type(_x) == unicode:
00282         _x = _x.encode('utf-8')
00283         length = len(_x)
00284       buff.write(struct.pack('<I%ss'%length, length, _x))
00285       _x = self
00286       buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs))
00287       _x = self.status.goal_id.id
00288       length = len(_x)
00289       if python3 or type(_x) == unicode:
00290         _x = _x.encode('utf-8')
00291         length = len(_x)
00292       buff.write(struct.pack('<I%ss'%length, length, _x))
00293       buff.write(_struct_B.pack(self.status.status))
00294       _x = self.status.text
00295       length = len(_x)
00296       if python3 or type(_x) == unicode:
00297         _x = _x.encode('utf-8')
00298         length = len(_x)
00299       buff.write(struct.pack('<I%ss'%length, length, _x))
00300       _x = self
00301       buff.write(_struct_3I.pack(_x.feedback.gripper_pose.header.seq, _x.feedback.gripper_pose.header.stamp.secs, _x.feedback.gripper_pose.header.stamp.nsecs))
00302       _x = self.feedback.gripper_pose.header.frame_id
00303       length = len(_x)
00304       if python3 or type(_x) == unicode:
00305         _x = _x.encode('utf-8')
00306         length = len(_x)
00307       buff.write(struct.pack('<I%ss'%length, length, _x))
00308       _x = self
00309       buff.write(_struct_7df.pack(_x.feedback.gripper_pose.pose.position.x, _x.feedback.gripper_pose.pose.position.y, _x.feedback.gripper_pose.pose.position.z, _x.feedback.gripper_pose.pose.orientation.x, _x.feedback.gripper_pose.pose.orientation.y, _x.feedback.gripper_pose.pose.orientation.z, _x.feedback.gripper_pose.pose.orientation.w, _x.feedback.gripper_opening))
00310     except struct.error as se: self._check_types(se)
00311     except TypeError as te: self._check_types(te)
00312 
00313   def deserialize_numpy(self, str, numpy):
00314     """
00315     unpack serialized message in str into this message instance using numpy for array types
00316     :param str: byte array of serialized message, ``str``
00317     :param numpy: numpy python module
00318     """
00319     try:
00320       if self.header is None:
00321         self.header = std_msgs.msg.Header()
00322       if self.status is None:
00323         self.status = actionlib_msgs.msg.GoalStatus()
00324       if self.feedback is None:
00325         self.feedback = pr2_object_manipulation_msgs.msg.GetGripperPoseFeedback()
00326       end = 0
00327       _x = self
00328       start = end
00329       end += 12
00330       (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.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.header.frame_id = str[start:end].decode('utf-8')
00338       else:
00339         self.header.frame_id = str[start:end]
00340       _x = self
00341       start = end
00342       end += 8
00343       (_x.status.goal_id.stamp.secs, _x.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.status.goal_id.id = str[start:end].decode('utf-8')
00351       else:
00352         self.status.goal_id.id = str[start:end]
00353       start = end
00354       end += 1
00355       (self.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.status.text = str[start:end].decode('utf-8')
00363       else:
00364         self.status.text = str[start:end]
00365       _x = self
00366       start = end
00367       end += 12
00368       (_x.feedback.gripper_pose.header.seq, _x.feedback.gripper_pose.header.stamp.secs, _x.feedback.gripper_pose.header.stamp.nsecs,) = _struct_3I.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.feedback.gripper_pose.header.frame_id = str[start:end].decode('utf-8')
00376       else:
00377         self.feedback.gripper_pose.header.frame_id = str[start:end]
00378       _x = self
00379       start = end
00380       end += 60
00381       (_x.feedback.gripper_pose.pose.position.x, _x.feedback.gripper_pose.pose.position.y, _x.feedback.gripper_pose.pose.position.z, _x.feedback.gripper_pose.pose.orientation.x, _x.feedback.gripper_pose.pose.orientation.y, _x.feedback.gripper_pose.pose.orientation.z, _x.feedback.gripper_pose.pose.orientation.w, _x.feedback.gripper_opening,) = _struct_7df.unpack(str[start:end])
00382       return self
00383     except struct.error as e:
00384       raise genpy.DeserializationError(e) #most likely buffer underfill
00385 
00386 _struct_I = genpy.struct_I
00387 _struct_3I = struct.Struct("<3I")
00388 _struct_B = struct.Struct("<B")
00389 _struct_2I = struct.Struct("<2I")
00390 _struct_7df = struct.Struct("<7df")


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