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


static_transform_broadcaster
Author(s): Matei Ciocarlie
autogenerated on Thu Jan 2 2014 11:40:55