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