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