00001 """autogenerated by genpy from vrep_common/simRosAuxiliaryConsoleShowRequest.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 simRosAuxiliaryConsoleShowRequest(genpy.Message):
00009 _md5sum = "33c6dd3e6b401d1a7bd21ef7d25dc9e5"
00010 _type = "vrep_common/simRosAuxiliaryConsoleShowRequest"
00011 _has_header = False
00012 _full_text = """
00013
00014
00015
00016 int32 consoleHandle
00017 uint8 showState
00018
00019 """
00020 __slots__ = ['consoleHandle','showState']
00021 _slot_types = ['int32','uint8']
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 consoleHandle,showState
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(simRosAuxiliaryConsoleShowRequest, self).__init__(*args, **kwds)
00039
00040 if self.consoleHandle is None:
00041 self.consoleHandle = 0
00042 if self.showState is None:
00043 self.showState = 0
00044 else:
00045 self.consoleHandle = 0
00046 self.showState = 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_iB.pack(_x.consoleHandle, _x.showState))
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 += 5
00075 (_x.consoleHandle, _x.showState,) = _struct_iB.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_iB.pack(_x.consoleHandle, _x.showState))
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 += 5
00104 (_x.consoleHandle, _x.showState,) = _struct_iB.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_iB = struct.Struct("<iB")
00111 """autogenerated by genpy from vrep_common/simRosAuxiliaryConsoleShowResponse.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 simRosAuxiliaryConsoleShowResponse(genpy.Message):
00119 _md5sum = "034a8e20d6a306665e3a5b340fab3f09"
00120 _type = "vrep_common/simRosAuxiliaryConsoleShowResponse"
00121 _has_header = False
00122 _full_text = """int32 result
00123
00124
00125
00126 """
00127 __slots__ = ['result']
00128 _slot_types = ['int32']
00129
00130 def __init__(self, *args, **kwds):
00131 """
00132 Constructor. Any message fields that are implicitly/explicitly
00133 set to None will be assigned a default value. The recommend
00134 use is keyword arguments as this is more robust to future message
00135 changes. You cannot mix in-order arguments and keyword arguments.
00136
00137 The available fields are:
00138 result
00139
00140 :param args: complete set of field values, in .msg order
00141 :param kwds: use keyword arguments corresponding to message field names
00142 to set specific fields.
00143 """
00144 if args or kwds:
00145 super(simRosAuxiliaryConsoleShowResponse, self).__init__(*args, **kwds)
00146
00147 if self.result is None:
00148 self.result = 0
00149 else:
00150 self.result = 0
00151
00152 def _get_types(self):
00153 """
00154 internal API method
00155 """
00156 return self._slot_types
00157
00158 def serialize(self, buff):
00159 """
00160 serialize message into buffer
00161 :param buff: buffer, ``StringIO``
00162 """
00163 try:
00164 buff.write(_struct_i.pack(self.result))
00165 except struct.error as se: self._check_types(se)
00166 except TypeError as te: self._check_types(te)
00167
00168 def deserialize(self, str):
00169 """
00170 unpack serialized message in str into this message instance
00171 :param str: byte array of serialized message, ``str``
00172 """
00173 try:
00174 end = 0
00175 start = end
00176 end += 4
00177 (self.result,) = _struct_i.unpack(str[start:end])
00178 return self
00179 except struct.error as e:
00180 raise genpy.DeserializationError(e)
00181
00182
00183 def serialize_numpy(self, buff, numpy):
00184 """
00185 serialize message with numpy array types into buffer
00186 :param buff: buffer, ``StringIO``
00187 :param numpy: numpy python module
00188 """
00189 try:
00190 buff.write(_struct_i.pack(self.result))
00191 except struct.error as se: self._check_types(se)
00192 except TypeError as te: self._check_types(te)
00193
00194 def deserialize_numpy(self, str, numpy):
00195 """
00196 unpack serialized message in str into this message instance using numpy for array types
00197 :param str: byte array of serialized message, ``str``
00198 :param numpy: numpy python module
00199 """
00200 try:
00201 end = 0
00202 start = end
00203 end += 4
00204 (self.result,) = _struct_i.unpack(str[start:end])
00205 return self
00206 except struct.error as e:
00207 raise genpy.DeserializationError(e)
00208
00209 _struct_I = genpy.struct_I
00210 _struct_i = struct.Struct("<i")
00211 class simRosAuxiliaryConsoleShow(object):
00212 _type = 'vrep_common/simRosAuxiliaryConsoleShow'
00213 _md5sum = '0441070f5e93cc5cd766aa59d6093443'
00214 _request_class = simRosAuxiliaryConsoleShowRequest
00215 _response_class = simRosAuxiliaryConsoleShowResponse