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