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