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