00001 """autogenerated by genpy from vrep_common/simRosGetInfoRequest.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 simRosGetInfoRequest(genpy.Message):
00009 _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
00010 _type = "vrep_common/simRosGetInfoRequest"
00011 _has_header = False
00012 _full_text = """
00013
00014
00015
00016
00017
00018 """
00019 __slots__ = []
00020 _slot_types = []
00021
00022 def __init__(self, *args, **kwds):
00023 """
00024 Constructor. Any message fields that are implicitly/explicitly
00025 set to None will be assigned a default value. The recommend
00026 use is keyword arguments as this is more robust to future message
00027 changes. You cannot mix in-order arguments and keyword arguments.
00028
00029 The available fields are:
00030
00031
00032 :param args: complete set of field values, in .msg order
00033 :param kwds: use keyword arguments corresponding to message field names
00034 to set specific fields.
00035 """
00036 if args or kwds:
00037 super(simRosGetInfoRequest, self).__init__(*args, **kwds)
00038
00039 def _get_types(self):
00040 """
00041 internal API method
00042 """
00043 return self._slot_types
00044
00045 def serialize(self, buff):
00046 """
00047 serialize message into buffer
00048 :param buff: buffer, ``StringIO``
00049 """
00050 try:
00051 pass
00052 except struct.error as se: self._check_types(se)
00053 except TypeError as te: self._check_types(te)
00054
00055 def deserialize(self, str):
00056 """
00057 unpack serialized message in str into this message instance
00058 :param str: byte array of serialized message, ``str``
00059 """
00060 try:
00061 end = 0
00062 return self
00063 except struct.error as e:
00064 raise genpy.DeserializationError(e)
00065
00066
00067 def serialize_numpy(self, buff, numpy):
00068 """
00069 serialize message with numpy array types into buffer
00070 :param buff: buffer, ``StringIO``
00071 :param numpy: numpy python module
00072 """
00073 try:
00074 pass
00075 except struct.error as se: self._check_types(se)
00076 except TypeError as te: self._check_types(te)
00077
00078 def deserialize_numpy(self, str, numpy):
00079 """
00080 unpack serialized message in str into this message instance using numpy for array types
00081 :param str: byte array of serialized message, ``str``
00082 :param numpy: numpy python module
00083 """
00084 try:
00085 end = 0
00086 return self
00087 except struct.error as e:
00088 raise genpy.DeserializationError(e)
00089
00090 _struct_I = genpy.struct_I
00091 """autogenerated by genpy from vrep_common/simRosGetInfoResponse.msg. Do not edit."""
00092 import sys
00093 python3 = True if sys.hexversion > 0x03000000 else False
00094 import genpy
00095 import struct
00096
00097 import std_msgs.msg
00098
00099 class simRosGetInfoResponse(genpy.Message):
00100 _md5sum = "2ab24cc264f8f17af7e013147c57dbc0"
00101 _type = "vrep_common/simRosGetInfoResponse"
00102 _has_header = False
00103 _full_text = """Header headerInfo
00104 int32 simulatorState
00105 float32 simulationTime
00106 float32 timeStep
00107
00108
00109 ================================================================================
00110 MSG: std_msgs/Header
00111 # Standard metadata for higher-level stamped data types.
00112 # This is generally used to communicate timestamped data
00113 # in a particular coordinate frame.
00114 #
00115 # sequence ID: consecutively increasing ID
00116 uint32 seq
00117 #Two-integer timestamp that is expressed as:
00118 # * stamp.secs: seconds (stamp_secs) since epoch
00119 # * stamp.nsecs: nanoseconds since stamp_secs
00120 # time-handling sugar is provided by the client library
00121 time stamp
00122 #Frame this data is associated with
00123 # 0: no frame
00124 # 1: global frame
00125 string frame_id
00126
00127 """
00128 __slots__ = ['headerInfo','simulatorState','simulationTime','timeStep']
00129 _slot_types = ['std_msgs/Header','int32','float32','float32']
00130
00131 def __init__(self, *args, **kwds):
00132 """
00133 Constructor. Any message fields that are implicitly/explicitly
00134 set to None will be assigned a default value. The recommend
00135 use is keyword arguments as this is more robust to future message
00136 changes. You cannot mix in-order arguments and keyword arguments.
00137
00138 The available fields are:
00139 headerInfo,simulatorState,simulationTime,timeStep
00140
00141 :param args: complete set of field values, in .msg order
00142 :param kwds: use keyword arguments corresponding to message field names
00143 to set specific fields.
00144 """
00145 if args or kwds:
00146 super(simRosGetInfoResponse, self).__init__(*args, **kwds)
00147
00148 if self.headerInfo is None:
00149 self.headerInfo = std_msgs.msg.Header()
00150 if self.simulatorState is None:
00151 self.simulatorState = 0
00152 if self.simulationTime is None:
00153 self.simulationTime = 0.
00154 if self.timeStep is None:
00155 self.timeStep = 0.
00156 else:
00157 self.headerInfo = std_msgs.msg.Header()
00158 self.simulatorState = 0
00159 self.simulationTime = 0.
00160 self.timeStep = 0.
00161
00162 def _get_types(self):
00163 """
00164 internal API method
00165 """
00166 return self._slot_types
00167
00168 def serialize(self, buff):
00169 """
00170 serialize message into buffer
00171 :param buff: buffer, ``StringIO``
00172 """
00173 try:
00174 _x = self
00175 buff.write(_struct_3I.pack(_x.headerInfo.seq, _x.headerInfo.stamp.secs, _x.headerInfo.stamp.nsecs))
00176 _x = self.headerInfo.frame_id
00177 length = len(_x)
00178 if python3 or type(_x) == unicode:
00179 _x = _x.encode('utf-8')
00180 length = len(_x)
00181 buff.write(struct.pack('<I%ss'%length, length, _x))
00182 _x = self
00183 buff.write(_struct_i2f.pack(_x.simulatorState, _x.simulationTime, _x.timeStep))
00184 except struct.error as se: self._check_types(se)
00185 except TypeError as te: self._check_types(te)
00186
00187 def deserialize(self, str):
00188 """
00189 unpack serialized message in str into this message instance
00190 :param str: byte array of serialized message, ``str``
00191 """
00192 try:
00193 if self.headerInfo is None:
00194 self.headerInfo = std_msgs.msg.Header()
00195 end = 0
00196 _x = self
00197 start = end
00198 end += 12
00199 (_x.headerInfo.seq, _x.headerInfo.stamp.secs, _x.headerInfo.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00200 start = end
00201 end += 4
00202 (length,) = _struct_I.unpack(str[start:end])
00203 start = end
00204 end += length
00205 if python3:
00206 self.headerInfo.frame_id = str[start:end].decode('utf-8')
00207 else:
00208 self.headerInfo.frame_id = str[start:end]
00209 _x = self
00210 start = end
00211 end += 12
00212 (_x.simulatorState, _x.simulationTime, _x.timeStep,) = _struct_i2f.unpack(str[start:end])
00213 return self
00214 except struct.error as e:
00215 raise genpy.DeserializationError(e)
00216
00217
00218 def serialize_numpy(self, buff, numpy):
00219 """
00220 serialize message with numpy array types into buffer
00221 :param buff: buffer, ``StringIO``
00222 :param numpy: numpy python module
00223 """
00224 try:
00225 _x = self
00226 buff.write(_struct_3I.pack(_x.headerInfo.seq, _x.headerInfo.stamp.secs, _x.headerInfo.stamp.nsecs))
00227 _x = self.headerInfo.frame_id
00228 length = len(_x)
00229 if python3 or type(_x) == unicode:
00230 _x = _x.encode('utf-8')
00231 length = len(_x)
00232 buff.write(struct.pack('<I%ss'%length, length, _x))
00233 _x = self
00234 buff.write(_struct_i2f.pack(_x.simulatorState, _x.simulationTime, _x.timeStep))
00235 except struct.error as se: self._check_types(se)
00236 except TypeError as te: self._check_types(te)
00237
00238 def deserialize_numpy(self, str, numpy):
00239 """
00240 unpack serialized message in str into this message instance using numpy for array types
00241 :param str: byte array of serialized message, ``str``
00242 :param numpy: numpy python module
00243 """
00244 try:
00245 if self.headerInfo is None:
00246 self.headerInfo = std_msgs.msg.Header()
00247 end = 0
00248 _x = self
00249 start = end
00250 end += 12
00251 (_x.headerInfo.seq, _x.headerInfo.stamp.secs, _x.headerInfo.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00252 start = end
00253 end += 4
00254 (length,) = _struct_I.unpack(str[start:end])
00255 start = end
00256 end += length
00257 if python3:
00258 self.headerInfo.frame_id = str[start:end].decode('utf-8')
00259 else:
00260 self.headerInfo.frame_id = str[start:end]
00261 _x = self
00262 start = end
00263 end += 12
00264 (_x.simulatorState, _x.simulationTime, _x.timeStep,) = _struct_i2f.unpack(str[start:end])
00265 return self
00266 except struct.error as e:
00267 raise genpy.DeserializationError(e)
00268
00269 _struct_I = genpy.struct_I
00270 _struct_3I = struct.Struct("<3I")
00271 _struct_i2f = struct.Struct("<i2f")
00272 class simRosGetInfo(object):
00273 _type = 'vrep_common/simRosGetInfo'
00274 _md5sum = '2ab24cc264f8f17af7e013147c57dbc0'
00275 _request_class = simRosGetInfoRequest
00276 _response_class = simRosGetInfoResponse