_ClickImage.py
Go to the documentation of this file.
00001 """autogenerated by genpy from hrl_clickable_world/ClickImageRequest.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 std_msgs.msg
00009 
00010 class ClickImageRequest(genpy.Message):
00011   _md5sum = "cd68fce8d20623d6a5e924d245c43bfe"
00012   _type = "hrl_clickable_world/ClickImageRequest"
00013   _has_header = False #flag to mark the presence of a Header object
00014   _full_text = """geometry_msgs/PointStamped image_click
00015 
00016 ================================================================================
00017 MSG: geometry_msgs/PointStamped
00018 # This represents a Point with reference coordinate frame and timestamp
00019 Header header
00020 Point point
00021 
00022 ================================================================================
00023 MSG: std_msgs/Header
00024 # Standard metadata for higher-level stamped data types.
00025 # This is generally used to communicate timestamped data 
00026 # in a particular coordinate frame.
00027 # 
00028 # sequence ID: consecutively increasing ID 
00029 uint32 seq
00030 #Two-integer timestamp that is expressed as:
00031 # * stamp.secs: seconds (stamp_secs) since epoch
00032 # * stamp.nsecs: nanoseconds since stamp_secs
00033 # time-handling sugar is provided by the client library
00034 time stamp
00035 #Frame this data is associated with
00036 # 0: no frame
00037 # 1: global frame
00038 string frame_id
00039 
00040 ================================================================================
00041 MSG: geometry_msgs/Point
00042 # This contains the position of a point in free space
00043 float64 x
00044 float64 y
00045 float64 z
00046 
00047 """
00048   __slots__ = ['image_click']
00049   _slot_types = ['geometry_msgs/PointStamped']
00050 
00051   def __init__(self, *args, **kwds):
00052     """
00053     Constructor. Any message fields that are implicitly/explicitly
00054     set to None will be assigned a default value. The recommend
00055     use is keyword arguments as this is more robust to future message
00056     changes.  You cannot mix in-order arguments and keyword arguments.
00057 
00058     The available fields are:
00059        image_click
00060 
00061     :param args: complete set of field values, in .msg order
00062     :param kwds: use keyword arguments corresponding to message field names
00063     to set specific fields.
00064     """
00065     if args or kwds:
00066       super(ClickImageRequest, self).__init__(*args, **kwds)
00067       #message fields cannot be None, assign default values for those that are
00068       if self.image_click is None:
00069         self.image_click = geometry_msgs.msg.PointStamped()
00070     else:
00071       self.image_click = geometry_msgs.msg.PointStamped()
00072 
00073   def _get_types(self):
00074     """
00075     internal API method
00076     """
00077     return self._slot_types
00078 
00079   def serialize(self, buff):
00080     """
00081     serialize message into buffer
00082     :param buff: buffer, ``StringIO``
00083     """
00084     try:
00085       _x = self
00086       buff.write(_struct_3I.pack(_x.image_click.header.seq, _x.image_click.header.stamp.secs, _x.image_click.header.stamp.nsecs))
00087       _x = self.image_click.header.frame_id
00088       length = len(_x)
00089       if python3 or type(_x) == unicode:
00090         _x = _x.encode('utf-8')
00091         length = len(_x)
00092       buff.write(struct.pack('<I%ss'%length, length, _x))
00093       _x = self
00094       buff.write(_struct_3d.pack(_x.image_click.point.x, _x.image_click.point.y, _x.image_click.point.z))
00095     except struct.error as se: self._check_types(se)
00096     except TypeError as te: self._check_types(te)
00097 
00098   def deserialize(self, str):
00099     """
00100     unpack serialized message in str into this message instance
00101     :param str: byte array of serialized message, ``str``
00102     """
00103     try:
00104       if self.image_click is None:
00105         self.image_click = geometry_msgs.msg.PointStamped()
00106       end = 0
00107       _x = self
00108       start = end
00109       end += 12
00110       (_x.image_click.header.seq, _x.image_click.header.stamp.secs, _x.image_click.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00111       start = end
00112       end += 4
00113       (length,) = _struct_I.unpack(str[start:end])
00114       start = end
00115       end += length
00116       if python3:
00117         self.image_click.header.frame_id = str[start:end].decode('utf-8')
00118       else:
00119         self.image_click.header.frame_id = str[start:end]
00120       _x = self
00121       start = end
00122       end += 24
00123       (_x.image_click.point.x, _x.image_click.point.y, _x.image_click.point.z,) = _struct_3d.unpack(str[start:end])
00124       return self
00125     except struct.error as e:
00126       raise genpy.DeserializationError(e) #most likely buffer underfill
00127 
00128 
00129   def serialize_numpy(self, buff, numpy):
00130     """
00131     serialize message with numpy array types into buffer
00132     :param buff: buffer, ``StringIO``
00133     :param numpy: numpy python module
00134     """
00135     try:
00136       _x = self
00137       buff.write(_struct_3I.pack(_x.image_click.header.seq, _x.image_click.header.stamp.secs, _x.image_click.header.stamp.nsecs))
00138       _x = self.image_click.header.frame_id
00139       length = len(_x)
00140       if python3 or type(_x) == unicode:
00141         _x = _x.encode('utf-8')
00142         length = len(_x)
00143       buff.write(struct.pack('<I%ss'%length, length, _x))
00144       _x = self
00145       buff.write(_struct_3d.pack(_x.image_click.point.x, _x.image_click.point.y, _x.image_click.point.z))
00146     except struct.error as se: self._check_types(se)
00147     except TypeError as te: self._check_types(te)
00148 
00149   def deserialize_numpy(self, str, numpy):
00150     """
00151     unpack serialized message in str into this message instance using numpy for array types
00152     :param str: byte array of serialized message, ``str``
00153     :param numpy: numpy python module
00154     """
00155     try:
00156       if self.image_click is None:
00157         self.image_click = geometry_msgs.msg.PointStamped()
00158       end = 0
00159       _x = self
00160       start = end
00161       end += 12
00162       (_x.image_click.header.seq, _x.image_click.header.stamp.secs, _x.image_click.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00163       start = end
00164       end += 4
00165       (length,) = _struct_I.unpack(str[start:end])
00166       start = end
00167       end += length
00168       if python3:
00169         self.image_click.header.frame_id = str[start:end].decode('utf-8')
00170       else:
00171         self.image_click.header.frame_id = str[start:end]
00172       _x = self
00173       start = end
00174       end += 24
00175       (_x.image_click.point.x, _x.image_click.point.y, _x.image_click.point.z,) = _struct_3d.unpack(str[start:end])
00176       return self
00177     except struct.error as e:
00178       raise genpy.DeserializationError(e) #most likely buffer underfill
00179 
00180 _struct_I = genpy.struct_I
00181 _struct_3I = struct.Struct("<3I")
00182 _struct_3d = struct.Struct("<3d")
00183 """autogenerated by genpy from hrl_clickable_world/ClickImageResponse.msg. Do not edit."""
00184 import sys
00185 python3 = True if sys.hexversion > 0x03000000 else False
00186 import genpy
00187 import struct
00188 
00189 
00190 class ClickImageResponse(genpy.Message):
00191   _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
00192   _type = "hrl_clickable_world/ClickImageResponse"
00193   _has_header = False #flag to mark the presence of a Header object
00194   _full_text = """
00195 
00196 
00197 """
00198   __slots__ = []
00199   _slot_types = []
00200 
00201   def __init__(self, *args, **kwds):
00202     """
00203     Constructor. Any message fields that are implicitly/explicitly
00204     set to None will be assigned a default value. The recommend
00205     use is keyword arguments as this is more robust to future message
00206     changes.  You cannot mix in-order arguments and keyword arguments.
00207 
00208     The available fields are:
00209        
00210 
00211     :param args: complete set of field values, in .msg order
00212     :param kwds: use keyword arguments corresponding to message field names
00213     to set specific fields.
00214     """
00215     if args or kwds:
00216       super(ClickImageResponse, self).__init__(*args, **kwds)
00217 
00218   def _get_types(self):
00219     """
00220     internal API method
00221     """
00222     return self._slot_types
00223 
00224   def serialize(self, buff):
00225     """
00226     serialize message into buffer
00227     :param buff: buffer, ``StringIO``
00228     """
00229     try:
00230       pass
00231     except struct.error as se: self._check_types(se)
00232     except TypeError as te: self._check_types(te)
00233 
00234   def deserialize(self, str):
00235     """
00236     unpack serialized message in str into this message instance
00237     :param str: byte array of serialized message, ``str``
00238     """
00239     try:
00240       end = 0
00241       return self
00242     except struct.error as e:
00243       raise genpy.DeserializationError(e) #most likely buffer underfill
00244 
00245 
00246   def serialize_numpy(self, buff, numpy):
00247     """
00248     serialize message with numpy array types into buffer
00249     :param buff: buffer, ``StringIO``
00250     :param numpy: numpy python module
00251     """
00252     try:
00253       pass
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       end = 0
00265       return self
00266     except struct.error as e:
00267       raise genpy.DeserializationError(e) #most likely buffer underfill
00268 
00269 _struct_I = genpy.struct_I
00270 class ClickImage(object):
00271   _type          = 'hrl_clickable_world/ClickImage'
00272   _md5sum = 'cd68fce8d20623d6a5e924d245c43bfe'
00273   _request_class  = ClickImageRequest
00274   _response_class = ClickImageResponse


hrl_clickable_world
Author(s): Kelsey Hawkins, Advisor: Prof. Charlie Kemp (Healthcare Robotics Lab at Georgia Tech)
autogenerated on Wed Nov 27 2013 11:54:28