_ConfigActionFeedback.py
Go to the documentation of this file.
00001 """autogenerated by genpy from monocam_settler/ConfigActionFeedback.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 genpy
00008 import actionlib_msgs.msg
00009 import monocam_settler.msg
00010 import std_msgs.msg
00011 
00012 class ConfigActionFeedback(genpy.Message):
00013   _md5sum = "aae20e09065c3809e8a8e87c4c8953fd"
00014   _type = "monocam_settler/ConfigActionFeedback"
00015   _has_header = True #flag to mark the presence of a Header object
00016   _full_text = """
00017 Header header
00018 actionlib_msgs/GoalStatus status
00019 ConfigFeedback feedback
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/GoalStatus
00041 GoalID goal_id
00042 uint8 status
00043 uint8 PENDING         = 0   # The goal has yet to be processed by the action server
00044 uint8 ACTIVE          = 1   # The goal is currently being processed by the action server
00045 uint8 PREEMPTED       = 2   # The goal received a cancel request after it started executing
00046                             #   and has since completed its execution (Terminal State)
00047 uint8 SUCCEEDED       = 3   # The goal was achieved successfully by the action server (Terminal State)
00048 uint8 ABORTED         = 4   # The goal was aborted during execution by the action server due
00049                             #    to some failure (Terminal State)
00050 uint8 REJECTED        = 5   # The goal was rejected by the action server without being processed,
00051                             #    because the goal was unattainable or invalid (Terminal State)
00052 uint8 PREEMPTING      = 6   # The goal received a cancel request after it started executing
00053                             #    and has not yet completed execution
00054 uint8 RECALLING       = 7   # The goal received a cancel request before it started executing,
00055                             #    but the action server has not yet confirmed that the goal is canceled
00056 uint8 RECALLED        = 8   # The goal received a cancel request before it started executing
00057                             #    and was successfully cancelled (Terminal State)
00058 uint8 LOST            = 9   # An action client can determine that a goal is LOST. This should not be
00059                             #    sent over the wire by an action server
00060 
00061 #Allow for the user to associate a string with GoalStatus for debugging
00062 string text
00063 
00064 
00065 ================================================================================
00066 MSG: actionlib_msgs/GoalID
00067 # The stamp should store the time at which this goal was requested.
00068 # It is used by an action server when it tries to preempt all
00069 # goals that were requested before a certain time
00070 time stamp
00071 
00072 # The id provides a way to associate feedback and
00073 # result message with specific goal requests. The id
00074 # specified must be unique.
00075 string id
00076 
00077 
00078 ================================================================================
00079 MSG: monocam_settler/ConfigFeedback
00080 
00081 
00082 """
00083   __slots__ = ['header','status','feedback']
00084   _slot_types = ['std_msgs/Header','actionlib_msgs/GoalStatus','monocam_settler/ConfigFeedback']
00085 
00086   def __init__(self, *args, **kwds):
00087     """
00088     Constructor. Any message fields that are implicitly/explicitly
00089     set to None will be assigned a default value. The recommend
00090     use is keyword arguments as this is more robust to future message
00091     changes.  You cannot mix in-order arguments and keyword arguments.
00092 
00093     The available fields are:
00094        header,status,feedback
00095 
00096     :param args: complete set of field values, in .msg order
00097     :param kwds: use keyword arguments corresponding to message field names
00098     to set specific fields.
00099     """
00100     if args or kwds:
00101       super(ConfigActionFeedback, self).__init__(*args, **kwds)
00102       #message fields cannot be None, assign default values for those that are
00103       if self.header is None:
00104         self.header = std_msgs.msg.Header()
00105       if self.status is None:
00106         self.status = actionlib_msgs.msg.GoalStatus()
00107       if self.feedback is None:
00108         self.feedback = monocam_settler.msg.ConfigFeedback()
00109     else:
00110       self.header = std_msgs.msg.Header()
00111       self.status = actionlib_msgs.msg.GoalStatus()
00112       self.feedback = monocam_settler.msg.ConfigFeedback()
00113 
00114   def _get_types(self):
00115     """
00116     internal API method
00117     """
00118     return self._slot_types
00119 
00120   def serialize(self, buff):
00121     """
00122     serialize message into buffer
00123     :param buff: buffer, ``StringIO``
00124     """
00125     try:
00126       _x = self
00127       buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00128       _x = self.header.frame_id
00129       length = len(_x)
00130       if python3 or type(_x) == unicode:
00131         _x = _x.encode('utf-8')
00132         length = len(_x)
00133       buff.write(struct.pack('<I%ss'%length, length, _x))
00134       _x = self
00135       buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs))
00136       _x = self.status.goal_id.id
00137       length = len(_x)
00138       if python3 or type(_x) == unicode:
00139         _x = _x.encode('utf-8')
00140         length = len(_x)
00141       buff.write(struct.pack('<I%ss'%length, length, _x))
00142       buff.write(_struct_B.pack(self.status.status))
00143       _x = self.status.text
00144       length = len(_x)
00145       if python3 or type(_x) == unicode:
00146         _x = _x.encode('utf-8')
00147         length = len(_x)
00148       buff.write(struct.pack('<I%ss'%length, length, _x))
00149     except struct.error as se: self._check_types(se)
00150     except TypeError as te: self._check_types(te)
00151 
00152   def deserialize(self, str):
00153     """
00154     unpack serialized message in str into this message instance
00155     :param str: byte array of serialized message, ``str``
00156     """
00157     try:
00158       if self.header is None:
00159         self.header = std_msgs.msg.Header()
00160       if self.status is None:
00161         self.status = actionlib_msgs.msg.GoalStatus()
00162       if self.feedback is None:
00163         self.feedback = monocam_settler.msg.ConfigFeedback()
00164       end = 0
00165       _x = self
00166       start = end
00167       end += 12
00168       (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00169       start = end
00170       end += 4
00171       (length,) = _struct_I.unpack(str[start:end])
00172       start = end
00173       end += length
00174       if python3:
00175         self.header.frame_id = str[start:end].decode('utf-8')
00176       else:
00177         self.header.frame_id = str[start:end]
00178       _x = self
00179       start = end
00180       end += 8
00181       (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.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.status.goal_id.id = str[start:end].decode('utf-8')
00189       else:
00190         self.status.goal_id.id = str[start:end]
00191       start = end
00192       end += 1
00193       (self.status.status,) = _struct_B.unpack(str[start:end])
00194       start = end
00195       end += 4
00196       (length,) = _struct_I.unpack(str[start:end])
00197       start = end
00198       end += length
00199       if python3:
00200         self.status.text = str[start:end].decode('utf-8')
00201       else:
00202         self.status.text = str[start:end]
00203       return self
00204     except struct.error as e:
00205       raise genpy.DeserializationError(e) #most likely buffer underfill
00206 
00207 
00208   def serialize_numpy(self, buff, numpy):
00209     """
00210     serialize message with numpy array types into buffer
00211     :param buff: buffer, ``StringIO``
00212     :param numpy: numpy python module
00213     """
00214     try:
00215       _x = self
00216       buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00217       _x = self.header.frame_id
00218       length = len(_x)
00219       if python3 or type(_x) == unicode:
00220         _x = _x.encode('utf-8')
00221         length = len(_x)
00222       buff.write(struct.pack('<I%ss'%length, length, _x))
00223       _x = self
00224       buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs))
00225       _x = self.status.goal_id.id
00226       length = len(_x)
00227       if python3 or type(_x) == unicode:
00228         _x = _x.encode('utf-8')
00229         length = len(_x)
00230       buff.write(struct.pack('<I%ss'%length, length, _x))
00231       buff.write(_struct_B.pack(self.status.status))
00232       _x = self.status.text
00233       length = len(_x)
00234       if python3 or type(_x) == unicode:
00235         _x = _x.encode('utf-8')
00236         length = len(_x)
00237       buff.write(struct.pack('<I%ss'%length, length, _x))
00238     except struct.error as se: self._check_types(se)
00239     except TypeError as te: self._check_types(te)
00240 
00241   def deserialize_numpy(self, str, numpy):
00242     """
00243     unpack serialized message in str into this message instance using numpy for array types
00244     :param str: byte array of serialized message, ``str``
00245     :param numpy: numpy python module
00246     """
00247     try:
00248       if self.header is None:
00249         self.header = std_msgs.msg.Header()
00250       if self.status is None:
00251         self.status = actionlib_msgs.msg.GoalStatus()
00252       if self.feedback is None:
00253         self.feedback = monocam_settler.msg.ConfigFeedback()
00254       end = 0
00255       _x = self
00256       start = end
00257       end += 12
00258       (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00259       start = end
00260       end += 4
00261       (length,) = _struct_I.unpack(str[start:end])
00262       start = end
00263       end += length
00264       if python3:
00265         self.header.frame_id = str[start:end].decode('utf-8')
00266       else:
00267         self.header.frame_id = str[start:end]
00268       _x = self
00269       start = end
00270       end += 8
00271       (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00272       start = end
00273       end += 4
00274       (length,) = _struct_I.unpack(str[start:end])
00275       start = end
00276       end += length
00277       if python3:
00278         self.status.goal_id.id = str[start:end].decode('utf-8')
00279       else:
00280         self.status.goal_id.id = str[start:end]
00281       start = end
00282       end += 1
00283       (self.status.status,) = _struct_B.unpack(str[start:end])
00284       start = end
00285       end += 4
00286       (length,) = _struct_I.unpack(str[start:end])
00287       start = end
00288       end += length
00289       if python3:
00290         self.status.text = str[start:end].decode('utf-8')
00291       else:
00292         self.status.text = str[start:end]
00293       return self
00294     except struct.error as e:
00295       raise genpy.DeserializationError(e) #most likely buffer underfill
00296 
00297 _struct_I = genpy.struct_I
00298 _struct_3I = struct.Struct("<3I")
00299 _struct_B = struct.Struct("<B")
00300 _struct_2I = struct.Struct("<2I")
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


monocam_settler
Author(s): Vijay Pradeep
autogenerated on Thu Aug 15 2013 10:15:50