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