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


dynamic_tf_publisher
Author(s): Manabu Saito
autogenerated on Sat Mar 23 2013 16:00:56