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


rosapi
Author(s): Jon
autogenerated on Thu Jan 2 2014 11:53:39