_ConfigActionFeedback.py
Go to the documentation of this file.
00001 """autogenerated by genpy from interval_intersection/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 interval_intersection.msg
00008 import genpy
00009 import actionlib_msgs.msg
00010 import std_msgs.msg
00011 
00012 class ConfigActionFeedback(genpy.Message):
00013   _md5sum = "aae20e09065c3809e8a8e87c4c8953fd"
00014   _type = "interval_intersection/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: interval_intersection/ConfigFeedback
00080 
00081 """
00082   __slots__ = ['header','status','feedback']
00083   _slot_types = ['std_msgs/Header','actionlib_msgs/GoalStatus','interval_intersection/ConfigFeedback']
00084 
00085   def __init__(self, *args, **kwds):
00086     """
00087     Constructor. Any message fields that are implicitly/explicitly
00088     set to None will be assigned a default value. The recommend
00089     use is keyword arguments as this is more robust to future message
00090     changes.  You cannot mix in-order arguments and keyword arguments.
00091 
00092     The available fields are:
00093        header,status,feedback
00094 
00095     :param args: complete set of field values, in .msg order
00096     :param kwds: use keyword arguments corresponding to message field names
00097     to set specific fields.
00098     """
00099     if args or kwds:
00100       super(ConfigActionFeedback, self).__init__(*args, **kwds)
00101       #message fields cannot be None, assign default values for those that are
00102       if self.header is None:
00103         self.header = std_msgs.msg.Header()
00104       if self.status is None:
00105         self.status = actionlib_msgs.msg.GoalStatus()
00106       if self.feedback is None:
00107         self.feedback = interval_intersection.msg.ConfigFeedback()
00108     else:
00109       self.header = std_msgs.msg.Header()
00110       self.status = actionlib_msgs.msg.GoalStatus()
00111       self.feedback = interval_intersection.msg.ConfigFeedback()
00112 
00113   def _get_types(self):
00114     """
00115     internal API method
00116     """
00117     return self._slot_types
00118 
00119   def serialize(self, buff):
00120     """
00121     serialize message into buffer
00122     :param buff: buffer, ``StringIO``
00123     """
00124     try:
00125       _x = self
00126       buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00127       _x = self.header.frame_id
00128       length = len(_x)
00129       if python3 or type(_x) == unicode:
00130         _x = _x.encode('utf-8')
00131         length = len(_x)
00132       buff.write(struct.pack('<I%ss'%length, length, _x))
00133       _x = self
00134       buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs))
00135       _x = self.status.goal_id.id
00136       length = len(_x)
00137       if python3 or type(_x) == unicode:
00138         _x = _x.encode('utf-8')
00139         length = len(_x)
00140       buff.write(struct.pack('<I%ss'%length, length, _x))
00141       buff.write(_struct_B.pack(self.status.status))
00142       _x = self.status.text
00143       length = len(_x)
00144       if python3 or type(_x) == unicode:
00145         _x = _x.encode('utf-8')
00146         length = len(_x)
00147       buff.write(struct.pack('<I%ss'%length, length, _x))
00148     except struct.error as se: self._check_types(se)
00149     except TypeError as te: self._check_types(te)
00150 
00151   def deserialize(self, str):
00152     """
00153     unpack serialized message in str into this message instance
00154     :param str: byte array of serialized message, ``str``
00155     """
00156     try:
00157       if self.header is None:
00158         self.header = std_msgs.msg.Header()
00159       if self.status is None:
00160         self.status = actionlib_msgs.msg.GoalStatus()
00161       if self.feedback is None:
00162         self.feedback = interval_intersection.msg.ConfigFeedback()
00163       end = 0
00164       _x = self
00165       start = end
00166       end += 12
00167       (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00168       start = end
00169       end += 4
00170       (length,) = _struct_I.unpack(str[start:end])
00171       start = end
00172       end += length
00173       if python3:
00174         self.header.frame_id = str[start:end].decode('utf-8')
00175       else:
00176         self.header.frame_id = str[start:end]
00177       _x = self
00178       start = end
00179       end += 8
00180       (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00181       start = end
00182       end += 4
00183       (length,) = _struct_I.unpack(str[start:end])
00184       start = end
00185       end += length
00186       if python3:
00187         self.status.goal_id.id = str[start:end].decode('utf-8')
00188       else:
00189         self.status.goal_id.id = str[start:end]
00190       start = end
00191       end += 1
00192       (self.status.status,) = _struct_B.unpack(str[start:end])
00193       start = end
00194       end += 4
00195       (length,) = _struct_I.unpack(str[start:end])
00196       start = end
00197       end += length
00198       if python3:
00199         self.status.text = str[start:end].decode('utf-8')
00200       else:
00201         self.status.text = str[start:end]
00202       return self
00203     except struct.error as e:
00204       raise genpy.DeserializationError(e) #most likely buffer underfill
00205 
00206 
00207   def serialize_numpy(self, buff, numpy):
00208     """
00209     serialize message with numpy array types into buffer
00210     :param buff: buffer, ``StringIO``
00211     :param numpy: numpy python module
00212     """
00213     try:
00214       _x = self
00215       buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00216       _x = self.header.frame_id
00217       length = len(_x)
00218       if python3 or type(_x) == unicode:
00219         _x = _x.encode('utf-8')
00220         length = len(_x)
00221       buff.write(struct.pack('<I%ss'%length, length, _x))
00222       _x = self
00223       buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs))
00224       _x = self.status.goal_id.id
00225       length = len(_x)
00226       if python3 or type(_x) == unicode:
00227         _x = _x.encode('utf-8')
00228         length = len(_x)
00229       buff.write(struct.pack('<I%ss'%length, length, _x))
00230       buff.write(_struct_B.pack(self.status.status))
00231       _x = self.status.text
00232       length = len(_x)
00233       if python3 or type(_x) == unicode:
00234         _x = _x.encode('utf-8')
00235         length = len(_x)
00236       buff.write(struct.pack('<I%ss'%length, length, _x))
00237     except struct.error as se: self._check_types(se)
00238     except TypeError as te: self._check_types(te)
00239 
00240   def deserialize_numpy(self, str, numpy):
00241     """
00242     unpack serialized message in str into this message instance using numpy for array types
00243     :param str: byte array of serialized message, ``str``
00244     :param numpy: numpy python module
00245     """
00246     try:
00247       if self.header is None:
00248         self.header = std_msgs.msg.Header()
00249       if self.status is None:
00250         self.status = actionlib_msgs.msg.GoalStatus()
00251       if self.feedback is None:
00252         self.feedback = interval_intersection.msg.ConfigFeedback()
00253       end = 0
00254       _x = self
00255       start = end
00256       end += 12
00257       (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00258       start = end
00259       end += 4
00260       (length,) = _struct_I.unpack(str[start:end])
00261       start = end
00262       end += length
00263       if python3:
00264         self.header.frame_id = str[start:end].decode('utf-8')
00265       else:
00266         self.header.frame_id = str[start:end]
00267       _x = self
00268       start = end
00269       end += 8
00270       (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00271       start = end
00272       end += 4
00273       (length,) = _struct_I.unpack(str[start:end])
00274       start = end
00275       end += length
00276       if python3:
00277         self.status.goal_id.id = str[start:end].decode('utf-8')
00278       else:
00279         self.status.goal_id.id = str[start:end]
00280       start = end
00281       end += 1
00282       (self.status.status,) = _struct_B.unpack(str[start:end])
00283       start = end
00284       end += 4
00285       (length,) = _struct_I.unpack(str[start:end])
00286       start = end
00287       end += length
00288       if python3:
00289         self.status.text = str[start:end].decode('utf-8')
00290       else:
00291         self.status.text = str[start:end]
00292       return self
00293     except struct.error as e:
00294       raise genpy.DeserializationError(e) #most likely buffer underfill
00295 
00296 _struct_I = genpy.struct_I
00297 _struct_3I = struct.Struct("<3I")
00298 _struct_B = struct.Struct("<B")
00299 _struct_2I = struct.Struct("<2I")
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


interval_intersection
Author(s): Romain Thibaux
autogenerated on Thu Aug 15 2013 10:15:57