00001 """autogenerated by genpy from vrep_common/simRosStartSimulationRequest.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 simRosStartSimulationRequest(genpy.Message):
00009 _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
00010 _type = "vrep_common/simRosStartSimulationRequest"
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(simRosStartSimulationRequest, 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/simRosStartSimulationResponse.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 simRosStartSimulationResponse(genpy.Message):
00098 _md5sum = "034a8e20d6a306665e3a5b340fab3f09"
00099 _type = "vrep_common/simRosStartSimulationResponse"
00100 _has_header = False
00101 _full_text = """int32 result
00102
00103
00104 """
00105 __slots__ = ['result']
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 result
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(simRosStartSimulationResponse, self).__init__(*args, **kwds)
00124
00125 if self.result is None:
00126 self.result = 0
00127 else:
00128 self.result = 0
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 buff.write(_struct_i.pack(self.result))
00143 except struct.error as se: self._check_types(se)
00144 except TypeError as te: self._check_types(te)
00145
00146 def deserialize(self, str):
00147 """
00148 unpack serialized message in str into this message instance
00149 :param str: byte array of serialized message, ``str``
00150 """
00151 try:
00152 end = 0
00153 start = end
00154 end += 4
00155 (self.result,) = _struct_i.unpack(str[start:end])
00156 return self
00157 except struct.error as e:
00158 raise genpy.DeserializationError(e)
00159
00160
00161 def serialize_numpy(self, buff, numpy):
00162 """
00163 serialize message with numpy array types into buffer
00164 :param buff: buffer, ``StringIO``
00165 :param numpy: numpy python module
00166 """
00167 try:
00168 buff.write(_struct_i.pack(self.result))
00169 except struct.error as se: self._check_types(se)
00170 except TypeError as te: self._check_types(te)
00171
00172 def deserialize_numpy(self, str, numpy):
00173 """
00174 unpack serialized message in str into this message instance using numpy for array types
00175 :param str: byte array of serialized message, ``str``
00176 :param numpy: numpy python module
00177 """
00178 try:
00179 end = 0
00180 start = end
00181 end += 4
00182 (self.result,) = _struct_i.unpack(str[start:end])
00183 return self
00184 except struct.error as e:
00185 raise genpy.DeserializationError(e)
00186
00187 _struct_I = genpy.struct_I
00188 _struct_i = struct.Struct("<i")
00189 class simRosStartSimulation(object):
00190 _type = 'vrep_common/simRosStartSimulation'
00191 _md5sum = '034a8e20d6a306665e3a5b340fab3f09'
00192 _request_class = simRosStartSimulationRequest
00193 _response_class = simRosStartSimulationResponse