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