_GetGraspingPointActionResult.py
Go to the documentation of this file.
00001 """autogenerated by genpy from iri_bow_object_detector/GetGraspingPointActionResult.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 iri_bow_object_detector.msg
00008 import geometry_msgs.msg
00009 import genpy
00010 import actionlib_msgs.msg
00011 import std_msgs.msg
00012 
00013 class GetGraspingPointActionResult(genpy.Message):
00014   _md5sum = "b2485d0e398b37e96632bbb7eac58280"
00015   _type = "iri_bow_object_detector/GetGraspingPointActionResult"
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 GetGraspingPointResult result
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: iri_bow_object_detector/GetGraspingPointResult
00082 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00083 # Define the result
00084 geometry_msgs/Point grasping_point
00085 
00086 ================================================================================
00087 MSG: geometry_msgs/Point
00088 # This contains the position of a point in free space
00089 float64 x
00090 float64 y
00091 float64 z
00092 
00093 """
00094   __slots__ = ['header','status','result']
00095   _slot_types = ['std_msgs/Header','actionlib_msgs/GoalStatus','iri_bow_object_detector/GetGraspingPointResult']
00096 
00097   def __init__(self, *args, **kwds):
00098     """
00099     Constructor. Any message fields that are implicitly/explicitly
00100     set to None will be assigned a default value. The recommend
00101     use is keyword arguments as this is more robust to future message
00102     changes.  You cannot mix in-order arguments and keyword arguments.
00103 
00104     The available fields are:
00105        header,status,result
00106 
00107     :param args: complete set of field values, in .msg order
00108     :param kwds: use keyword arguments corresponding to message field names
00109     to set specific fields.
00110     """
00111     if args or kwds:
00112       super(GetGraspingPointActionResult, self).__init__(*args, **kwds)
00113       #message fields cannot be None, assign default values for those that are
00114       if self.header is None:
00115         self.header = std_msgs.msg.Header()
00116       if self.status is None:
00117         self.status = actionlib_msgs.msg.GoalStatus()
00118       if self.result is None:
00119         self.result = iri_bow_object_detector.msg.GetGraspingPointResult()
00120     else:
00121       self.header = std_msgs.msg.Header()
00122       self.status = actionlib_msgs.msg.GoalStatus()
00123       self.result = iri_bow_object_detector.msg.GetGraspingPointResult()
00124 
00125   def _get_types(self):
00126     """
00127     internal API method
00128     """
00129     return self._slot_types
00130 
00131   def serialize(self, buff):
00132     """
00133     serialize message into buffer
00134     :param buff: buffer, ``StringIO``
00135     """
00136     try:
00137       _x = self
00138       buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00139       _x = self.header.frame_id
00140       length = len(_x)
00141       if python3 or type(_x) == unicode:
00142         _x = _x.encode('utf-8')
00143         length = len(_x)
00144       buff.write(struct.pack('<I%ss'%length, length, _x))
00145       _x = self
00146       buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs))
00147       _x = self.status.goal_id.id
00148       length = len(_x)
00149       if python3 or type(_x) == unicode:
00150         _x = _x.encode('utf-8')
00151         length = len(_x)
00152       buff.write(struct.pack('<I%ss'%length, length, _x))
00153       buff.write(_struct_B.pack(self.status.status))
00154       _x = self.status.text
00155       length = len(_x)
00156       if python3 or type(_x) == unicode:
00157         _x = _x.encode('utf-8')
00158         length = len(_x)
00159       buff.write(struct.pack('<I%ss'%length, length, _x))
00160       _x = self
00161       buff.write(_struct_3d.pack(_x.result.grasping_point.x, _x.result.grasping_point.y, _x.result.grasping_point.z))
00162     except struct.error as se: self._check_types(se)
00163     except TypeError as te: self._check_types(te)
00164 
00165   def deserialize(self, str):
00166     """
00167     unpack serialized message in str into this message instance
00168     :param str: byte array of serialized message, ``str``
00169     """
00170     try:
00171       if self.header is None:
00172         self.header = std_msgs.msg.Header()
00173       if self.status is None:
00174         self.status = actionlib_msgs.msg.GoalStatus()
00175       if self.result is None:
00176         self.result = iri_bow_object_detector.msg.GetGraspingPointResult()
00177       end = 0
00178       _x = self
00179       start = end
00180       end += 12
00181       (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00182       start = end
00183       end += 4
00184       (length,) = _struct_I.unpack(str[start:end])
00185       start = end
00186       end += length
00187       if python3:
00188         self.header.frame_id = str[start:end].decode('utf-8')
00189       else:
00190         self.header.frame_id = str[start:end]
00191       _x = self
00192       start = end
00193       end += 8
00194       (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00195       start = end
00196       end += 4
00197       (length,) = _struct_I.unpack(str[start:end])
00198       start = end
00199       end += length
00200       if python3:
00201         self.status.goal_id.id = str[start:end].decode('utf-8')
00202       else:
00203         self.status.goal_id.id = str[start:end]
00204       start = end
00205       end += 1
00206       (self.status.status,) = _struct_B.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.status.text = str[start:end].decode('utf-8')
00214       else:
00215         self.status.text = str[start:end]
00216       _x = self
00217       start = end
00218       end += 24
00219       (_x.result.grasping_point.x, _x.result.grasping_point.y, _x.result.grasping_point.z,) = _struct_3d.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.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs))
00242       _x = self.status.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       buff.write(_struct_B.pack(self.status.status))
00249       _x = self.status.text
00250       length = len(_x)
00251       if python3 or type(_x) == unicode:
00252         _x = _x.encode('utf-8')
00253         length = len(_x)
00254       buff.write(struct.pack('<I%ss'%length, length, _x))
00255       _x = self
00256       buff.write(_struct_3d.pack(_x.result.grasping_point.x, _x.result.grasping_point.y, _x.result.grasping_point.z))
00257     except struct.error as se: self._check_types(se)
00258     except TypeError as te: self._check_types(te)
00259 
00260   def deserialize_numpy(self, str, numpy):
00261     """
00262     unpack serialized message in str into this message instance using numpy for array types
00263     :param str: byte array of serialized message, ``str``
00264     :param numpy: numpy python module
00265     """
00266     try:
00267       if self.header is None:
00268         self.header = std_msgs.msg.Header()
00269       if self.status is None:
00270         self.status = actionlib_msgs.msg.GoalStatus()
00271       if self.result is None:
00272         self.result = iri_bow_object_detector.msg.GetGraspingPointResult()
00273       end = 0
00274       _x = self
00275       start = end
00276       end += 12
00277       (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00278       start = end
00279       end += 4
00280       (length,) = _struct_I.unpack(str[start:end])
00281       start = end
00282       end += length
00283       if python3:
00284         self.header.frame_id = str[start:end].decode('utf-8')
00285       else:
00286         self.header.frame_id = str[start:end]
00287       _x = self
00288       start = end
00289       end += 8
00290       (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00291       start = end
00292       end += 4
00293       (length,) = _struct_I.unpack(str[start:end])
00294       start = end
00295       end += length
00296       if python3:
00297         self.status.goal_id.id = str[start:end].decode('utf-8')
00298       else:
00299         self.status.goal_id.id = str[start:end]
00300       start = end
00301       end += 1
00302       (self.status.status,) = _struct_B.unpack(str[start:end])
00303       start = end
00304       end += 4
00305       (length,) = _struct_I.unpack(str[start:end])
00306       start = end
00307       end += length
00308       if python3:
00309         self.status.text = str[start:end].decode('utf-8')
00310       else:
00311         self.status.text = str[start:end]
00312       _x = self
00313       start = end
00314       end += 24
00315       (_x.result.grasping_point.x, _x.result.grasping_point.y, _x.result.grasping_point.z,) = _struct_3d.unpack(str[start:end])
00316       return self
00317     except struct.error as e:
00318       raise genpy.DeserializationError(e) #most likely buffer underfill
00319 
00320 _struct_I = genpy.struct_I
00321 _struct_3I = struct.Struct("<3I")
00322 _struct_B = struct.Struct("<B")
00323 _struct_2I = struct.Struct("<2I")
00324 _struct_3d = struct.Struct("<3d")


iri_bow_object_detector
Author(s): dmartinez
autogenerated on Fri Dec 6 2013 22:45:45