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