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