_ConfigActionGoal.py
Go to the documentation of this file.
00001 """autogenerated by genpy from image_cb_detector/ConfigActionGoal.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 image_cb_detector.msg
00008 import genpy
00009 import actionlib_msgs.msg
00010 import std_msgs.msg
00011 
00012 class ConfigActionGoal(genpy.Message):
00013   _md5sum = "47438deb496822a5e3dc575b6081de23"
00014   _type = "image_cb_detector/ConfigActionGoal"
00015   _has_header = True #flag to mark the presence of a Header object
00016   _full_text = """
00017 Header header
00018 actionlib_msgs/GoalID goal_id
00019 ConfigGoal goal
00020 
00021 ================================================================================
00022 MSG: std_msgs/Header
00023 # Standard metadata for higher-level stamped data types.
00024 # This is generally used to communicate timestamped data 
00025 # in a particular coordinate frame.
00026 # 
00027 # sequence ID: consecutively increasing ID 
00028 uint32 seq
00029 #Two-integer timestamp that is expressed as:
00030 # * stamp.secs: seconds (stamp_secs) since epoch
00031 # * stamp.nsecs: nanoseconds since stamp_secs
00032 # time-handling sugar is provided by the client library
00033 time stamp
00034 #Frame this data is associated with
00035 # 0: no frame
00036 # 1: global frame
00037 string frame_id
00038 
00039 ================================================================================
00040 MSG: actionlib_msgs/GoalID
00041 # The stamp should store the time at which this goal was requested.
00042 # It is used by an action server when it tries to preempt all
00043 # goals that were requested before a certain time
00044 time stamp
00045 
00046 # The id provides a way to associate feedback and
00047 # result message with specific goal requests. The id
00048 # specified must be unique.
00049 string id
00050 
00051 
00052 ================================================================================
00053 MSG: image_cb_detector/ConfigGoal
00054 uint32 num_x     # Number of checkerboard corners in the X direction
00055 uint32 num_y     # Number of corners in the Y direction
00056 float32 spacing_x  # Spacing between corners in the X direction (meters)
00057 float32 spacing_y  # Spacing between corners in the Y direction (meters)
00058 
00059 # Specify how many times we want to upsample the image.
00060 #  This is often useful for detecting small checkerboards far away
00061 float32 width_scaling
00062 float32 height_scaling
00063 
00064 # Configure openCV's subpixel corner detector
00065 uint32 subpixel_window
00066 int32  subpixel_zero_zone
00067 
00068 
00069 """
00070   __slots__ = ['header','goal_id','goal']
00071   _slot_types = ['std_msgs/Header','actionlib_msgs/GoalID','image_cb_detector/ConfigGoal']
00072 
00073   def __init__(self, *args, **kwds):
00074     """
00075     Constructor. Any message fields that are implicitly/explicitly
00076     set to None will be assigned a default value. The recommend
00077     use is keyword arguments as this is more robust to future message
00078     changes.  You cannot mix in-order arguments and keyword arguments.
00079 
00080     The available fields are:
00081        header,goal_id,goal
00082 
00083     :param args: complete set of field values, in .msg order
00084     :param kwds: use keyword arguments corresponding to message field names
00085     to set specific fields.
00086     """
00087     if args or kwds:
00088       super(ConfigActionGoal, self).__init__(*args, **kwds)
00089       #message fields cannot be None, assign default values for those that are
00090       if self.header is None:
00091         self.header = std_msgs.msg.Header()
00092       if self.goal_id is None:
00093         self.goal_id = actionlib_msgs.msg.GoalID()
00094       if self.goal is None:
00095         self.goal = image_cb_detector.msg.ConfigGoal()
00096     else:
00097       self.header = std_msgs.msg.Header()
00098       self.goal_id = actionlib_msgs.msg.GoalID()
00099       self.goal = image_cb_detector.msg.ConfigGoal()
00100 
00101   def _get_types(self):
00102     """
00103     internal API method
00104     """
00105     return self._slot_types
00106 
00107   def serialize(self, buff):
00108     """
00109     serialize message into buffer
00110     :param buff: buffer, ``StringIO``
00111     """
00112     try:
00113       _x = self
00114       buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00115       _x = self.header.frame_id
00116       length = len(_x)
00117       if python3 or type(_x) == unicode:
00118         _x = _x.encode('utf-8')
00119         length = len(_x)
00120       buff.write(struct.pack('<I%ss'%length, length, _x))
00121       _x = self
00122       buff.write(_struct_2I.pack(_x.goal_id.stamp.secs, _x.goal_id.stamp.nsecs))
00123       _x = self.goal_id.id
00124       length = len(_x)
00125       if python3 or type(_x) == unicode:
00126         _x = _x.encode('utf-8')
00127         length = len(_x)
00128       buff.write(struct.pack('<I%ss'%length, length, _x))
00129       _x = self
00130       buff.write(_struct_2I4fIi.pack(_x.goal.num_x, _x.goal.num_y, _x.goal.spacing_x, _x.goal.spacing_y, _x.goal.width_scaling, _x.goal.height_scaling, _x.goal.subpixel_window, _x.goal.subpixel_zero_zone))
00131     except struct.error as se: self._check_types(se)
00132     except TypeError as te: self._check_types(te)
00133 
00134   def deserialize(self, str):
00135     """
00136     unpack serialized message in str into this message instance
00137     :param str: byte array of serialized message, ``str``
00138     """
00139     try:
00140       if self.header is None:
00141         self.header = std_msgs.msg.Header()
00142       if self.goal_id is None:
00143         self.goal_id = actionlib_msgs.msg.GoalID()
00144       if self.goal is None:
00145         self.goal = image_cb_detector.msg.ConfigGoal()
00146       end = 0
00147       _x = self
00148       start = end
00149       end += 12
00150       (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00151       start = end
00152       end += 4
00153       (length,) = _struct_I.unpack(str[start:end])
00154       start = end
00155       end += length
00156       if python3:
00157         self.header.frame_id = str[start:end].decode('utf-8')
00158       else:
00159         self.header.frame_id = str[start:end]
00160       _x = self
00161       start = end
00162       end += 8
00163       (_x.goal_id.stamp.secs, _x.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00164       start = end
00165       end += 4
00166       (length,) = _struct_I.unpack(str[start:end])
00167       start = end
00168       end += length
00169       if python3:
00170         self.goal_id.id = str[start:end].decode('utf-8')
00171       else:
00172         self.goal_id.id = str[start:end]
00173       _x = self
00174       start = end
00175       end += 32
00176       (_x.goal.num_x, _x.goal.num_y, _x.goal.spacing_x, _x.goal.spacing_y, _x.goal.width_scaling, _x.goal.height_scaling, _x.goal.subpixel_window, _x.goal.subpixel_zero_zone,) = _struct_2I4fIi.unpack(str[start:end])
00177       return self
00178     except struct.error as e:
00179       raise genpy.DeserializationError(e) #most likely buffer underfill
00180 
00181 
00182   def serialize_numpy(self, buff, numpy):
00183     """
00184     serialize message with numpy array types into buffer
00185     :param buff: buffer, ``StringIO``
00186     :param numpy: numpy python module
00187     """
00188     try:
00189       _x = self
00190       buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00191       _x = self.header.frame_id
00192       length = len(_x)
00193       if python3 or type(_x) == unicode:
00194         _x = _x.encode('utf-8')
00195         length = len(_x)
00196       buff.write(struct.pack('<I%ss'%length, length, _x))
00197       _x = self
00198       buff.write(_struct_2I.pack(_x.goal_id.stamp.secs, _x.goal_id.stamp.nsecs))
00199       _x = self.goal_id.id
00200       length = len(_x)
00201       if python3 or type(_x) == unicode:
00202         _x = _x.encode('utf-8')
00203         length = len(_x)
00204       buff.write(struct.pack('<I%ss'%length, length, _x))
00205       _x = self
00206       buff.write(_struct_2I4fIi.pack(_x.goal.num_x, _x.goal.num_y, _x.goal.spacing_x, _x.goal.spacing_y, _x.goal.width_scaling, _x.goal.height_scaling, _x.goal.subpixel_window, _x.goal.subpixel_zero_zone))
00207     except struct.error as se: self._check_types(se)
00208     except TypeError as te: self._check_types(te)
00209 
00210   def deserialize_numpy(self, str, numpy):
00211     """
00212     unpack serialized message in str into this message instance using numpy for array types
00213     :param str: byte array of serialized message, ``str``
00214     :param numpy: numpy python module
00215     """
00216     try:
00217       if self.header is None:
00218         self.header = std_msgs.msg.Header()
00219       if self.goal_id is None:
00220         self.goal_id = actionlib_msgs.msg.GoalID()
00221       if self.goal is None:
00222         self.goal = image_cb_detector.msg.ConfigGoal()
00223       end = 0
00224       _x = self
00225       start = end
00226       end += 12
00227       (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00228       start = end
00229       end += 4
00230       (length,) = _struct_I.unpack(str[start:end])
00231       start = end
00232       end += length
00233       if python3:
00234         self.header.frame_id = str[start:end].decode('utf-8')
00235       else:
00236         self.header.frame_id = str[start:end]
00237       _x = self
00238       start = end
00239       end += 8
00240       (_x.goal_id.stamp.secs, _x.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00241       start = end
00242       end += 4
00243       (length,) = _struct_I.unpack(str[start:end])
00244       start = end
00245       end += length
00246       if python3:
00247         self.goal_id.id = str[start:end].decode('utf-8')
00248       else:
00249         self.goal_id.id = str[start:end]
00250       _x = self
00251       start = end
00252       end += 32
00253       (_x.goal.num_x, _x.goal.num_y, _x.goal.spacing_x, _x.goal.spacing_y, _x.goal.width_scaling, _x.goal.height_scaling, _x.goal.subpixel_window, _x.goal.subpixel_zero_zone,) = _struct_2I4fIi.unpack(str[start:end])
00254       return self
00255     except struct.error as e:
00256       raise genpy.DeserializationError(e) #most likely buffer underfill
00257 
00258 _struct_I = genpy.struct_I
00259 _struct_3I = struct.Struct("<3I")
00260 _struct_2I = struct.Struct("<2I")
00261 _struct_2I4fIi = struct.Struct("<2I4fIi")
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


image_cb_detector
Author(s): Vijay Pradeep and Eitan Marder-Eppstein
autogenerated on Thu Aug 15 2013 10:15:24