$search
00001 """autogenerated by genmsg_py from ResetPlanesRequest.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 00006 class ResetPlanesRequest(roslib.message.Message): 00007 _md5sum = "d41d8cd98f00b204e9800998ecf8427e" 00008 _type = "srs_env_model_percp/ResetPlanesRequest" 00009 _has_header = False #flag to mark the presence of a Header object 00010 _full_text = """ 00011 00012 00013 00014 """ 00015 __slots__ = [] 00016 _slot_types = [] 00017 00018 def __init__(self, *args, **kwds): 00019 """ 00020 Constructor. Any message fields that are implicitly/explicitly 00021 set to None will be assigned a default value. The recommend 00022 use is keyword arguments as this is more robust to future message 00023 changes. You cannot mix in-order arguments and keyword arguments. 00024 00025 The available fields are: 00026 00027 00028 @param args: complete set of field values, in .msg order 00029 @param kwds: use keyword arguments corresponding to message field names 00030 to set specific fields. 00031 """ 00032 if args or kwds: 00033 super(ResetPlanesRequest, self).__init__(*args, **kwds) 00034 00035 def _get_types(self): 00036 """ 00037 internal API method 00038 """ 00039 return self._slot_types 00040 00041 def serialize(self, buff): 00042 """ 00043 serialize message into buffer 00044 @param buff: buffer 00045 @type buff: StringIO 00046 """ 00047 try: 00048 pass 00049 except struct.error as se: self._check_types(se) 00050 except TypeError as te: self._check_types(te) 00051 00052 def deserialize(self, str): 00053 """ 00054 unpack serialized message in str into this message instance 00055 @param str: byte array of serialized message 00056 @type str: str 00057 """ 00058 try: 00059 end = 0 00060 return self 00061 except struct.error as e: 00062 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00063 00064 00065 def serialize_numpy(self, buff, numpy): 00066 """ 00067 serialize message with numpy array types into buffer 00068 @param buff: buffer 00069 @type buff: StringIO 00070 @param numpy: numpy python module 00071 @type numpy module 00072 """ 00073 try: 00074 pass 00075 except struct.error as se: self._check_types(se) 00076 except TypeError as te: self._check_types(te) 00077 00078 def deserialize_numpy(self, str, numpy): 00079 """ 00080 unpack serialized message in str into this message instance using numpy for array types 00081 @param str: byte array of serialized message 00082 @type str: str 00083 @param numpy: numpy python module 00084 @type numpy: module 00085 """ 00086 try: 00087 end = 0 00088 return self 00089 except struct.error as e: 00090 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00091 00092 _struct_I = roslib.message.struct_I 00093 """autogenerated by genmsg_py from ResetPlanesResponse.msg. Do not edit.""" 00094 import roslib.message 00095 import struct 00096 00097 00098 class ResetPlanesResponse(roslib.message.Message): 00099 _md5sum = "5f003d6bcc824cbd51361d66d8e4f76c" 00100 _type = "srs_env_model_percp/ResetPlanesResponse" 00101 _has_header = False #flag to mark the presence of a Header object 00102 _full_text = """ 00103 00104 00105 string message 00106 00107 """ 00108 __slots__ = ['message'] 00109 _slot_types = ['string'] 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 message 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(ResetPlanesResponse, self).__init__(*args, **kwds) 00127 #message fields cannot be None, assign default values for those that are 00128 if self.message is None: 00129 self.message = '' 00130 else: 00131 self.message = '' 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 _x = self.message 00147 length = len(_x) 00148 buff.write(struct.pack('<I%ss'%length, length, _x)) 00149 except struct.error as se: self._check_types(se) 00150 except TypeError as te: self._check_types(te) 00151 00152 def deserialize(self, str): 00153 """ 00154 unpack serialized message in str into this message instance 00155 @param str: byte array of serialized message 00156 @type str: str 00157 """ 00158 try: 00159 end = 0 00160 start = end 00161 end += 4 00162 (length,) = _struct_I.unpack(str[start:end]) 00163 start = end 00164 end += length 00165 self.message = str[start:end] 00166 return self 00167 except struct.error as e: 00168 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00169 00170 00171 def serialize_numpy(self, buff, numpy): 00172 """ 00173 serialize message with numpy array types into buffer 00174 @param buff: buffer 00175 @type buff: StringIO 00176 @param numpy: numpy python module 00177 @type numpy module 00178 """ 00179 try: 00180 _x = self.message 00181 length = len(_x) 00182 buff.write(struct.pack('<I%ss'%length, length, _x)) 00183 except struct.error as se: self._check_types(se) 00184 except TypeError as te: self._check_types(te) 00185 00186 def deserialize_numpy(self, str, numpy): 00187 """ 00188 unpack serialized message in str into this message instance using numpy for array types 00189 @param str: byte array of serialized message 00190 @type str: str 00191 @param numpy: numpy python module 00192 @type numpy: module 00193 """ 00194 try: 00195 end = 0 00196 start = end 00197 end += 4 00198 (length,) = _struct_I.unpack(str[start:end]) 00199 start = end 00200 end += length 00201 self.message = str[start:end] 00202 return self 00203 except struct.error as e: 00204 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00205 00206 _struct_I = roslib.message.struct_I 00207 class ResetPlanes(roslib.message.ServiceDefinition): 00208 _type = 'srs_env_model_percp/ResetPlanes' 00209 _md5sum = '5f003d6bcc824cbd51361d66d8e4f76c' 00210 _request_class = ResetPlanesRequest 00211 _response_class = ResetPlanesResponse