_GetGraspingPointResult.py
Go to the documentation of this file.
00001 """autogenerated by genpy from iri_bow_object_detector/GetGraspingPointResult.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 
00009 class GetGraspingPointResult(genpy.Message):
00010   _md5sum = "ccca7dacc2e664861c71b5c4c3c35d53"
00011   _type = "iri_bow_object_detector/GetGraspingPointResult"
00012   _has_header = False #flag to mark the presence of a Header object
00013   _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00014 # Define the result
00015 geometry_msgs/Point grasping_point
00016 
00017 ================================================================================
00018 MSG: geometry_msgs/Point
00019 # This contains the position of a point in free space
00020 float64 x
00021 float64 y
00022 float64 z
00023 
00024 """
00025   __slots__ = ['grasping_point']
00026   _slot_types = ['geometry_msgs/Point']
00027 
00028   def __init__(self, *args, **kwds):
00029     """
00030     Constructor. Any message fields that are implicitly/explicitly
00031     set to None will be assigned a default value. The recommend
00032     use is keyword arguments as this is more robust to future message
00033     changes.  You cannot mix in-order arguments and keyword arguments.
00034 
00035     The available fields are:
00036        grasping_point
00037 
00038     :param args: complete set of field values, in .msg order
00039     :param kwds: use keyword arguments corresponding to message field names
00040     to set specific fields.
00041     """
00042     if args or kwds:
00043       super(GetGraspingPointResult, self).__init__(*args, **kwds)
00044       #message fields cannot be None, assign default values for those that are
00045       if self.grasping_point is None:
00046         self.grasping_point = geometry_msgs.msg.Point()
00047     else:
00048       self.grasping_point = geometry_msgs.msg.Point()
00049 
00050   def _get_types(self):
00051     """
00052     internal API method
00053     """
00054     return self._slot_types
00055 
00056   def serialize(self, buff):
00057     """
00058     serialize message into buffer
00059     :param buff: buffer, ``StringIO``
00060     """
00061     try:
00062       _x = self
00063       buff.write(_struct_3d.pack(_x.grasping_point.x, _x.grasping_point.y, _x.grasping_point.z))
00064     except struct.error as se: self._check_types(se)
00065     except TypeError as te: self._check_types(te)
00066 
00067   def deserialize(self, str):
00068     """
00069     unpack serialized message in str into this message instance
00070     :param str: byte array of serialized message, ``str``
00071     """
00072     try:
00073       if self.grasping_point is None:
00074         self.grasping_point = geometry_msgs.msg.Point()
00075       end = 0
00076       _x = self
00077       start = end
00078       end += 24
00079       (_x.grasping_point.x, _x.grasping_point.y, _x.grasping_point.z,) = _struct_3d.unpack(str[start:end])
00080       return self
00081     except struct.error as e:
00082       raise genpy.DeserializationError(e) #most likely buffer underfill
00083 
00084 
00085   def serialize_numpy(self, buff, numpy):
00086     """
00087     serialize message with numpy array types into buffer
00088     :param buff: buffer, ``StringIO``
00089     :param numpy: numpy python module
00090     """
00091     try:
00092       _x = self
00093       buff.write(_struct_3d.pack(_x.grasping_point.x, _x.grasping_point.y, _x.grasping_point.z))
00094     except struct.error as se: self._check_types(se)
00095     except TypeError as te: self._check_types(te)
00096 
00097   def deserialize_numpy(self, str, numpy):
00098     """
00099     unpack serialized message in str into this message instance using numpy for array types
00100     :param str: byte array of serialized message, ``str``
00101     :param numpy: numpy python module
00102     """
00103     try:
00104       if self.grasping_point is None:
00105         self.grasping_point = geometry_msgs.msg.Point()
00106       end = 0
00107       _x = self
00108       start = end
00109       end += 24
00110       (_x.grasping_point.x, _x.grasping_point.y, _x.grasping_point.z,) = _struct_3d.unpack(str[start:end])
00111       return self
00112     except struct.error as e:
00113       raise genpy.DeserializationError(e) #most likely buffer underfill
00114 
00115 _struct_I = genpy.struct_I
00116 _struct_3d = struct.Struct("<3d")


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