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