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