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