00001 """autogenerated by genpy from vrep_common/simRosSetSphericalJointMatrixRequest.msg. Do not edit."""
00002 import sys
00003 python3 = True if sys.hexversion > 0x03000000 else False
00004 import genpy
00005 import struct
00006
00007 import geometry_msgs.msg
00008
00009 class simRosSetSphericalJointMatrixRequest(genpy.Message):
00010 _md5sum = "b50ec6d9c510b5022a5f97f224455526"
00011 _type = "vrep_common/simRosSetSphericalJointMatrixRequest"
00012 _has_header = False
00013 _full_text = """
00014
00015
00016
00017 int32 handle
00018 geometry_msgs/Quaternion quaternion
00019
00020 ================================================================================
00021 MSG: geometry_msgs/Quaternion
00022 # This represents an orientation in free space in quaternion form.
00023
00024 float64 x
00025 float64 y
00026 float64 z
00027 float64 w
00028
00029 """
00030 __slots__ = ['handle','quaternion']
00031 _slot_types = ['int32','geometry_msgs/Quaternion']
00032
00033 def __init__(self, *args, **kwds):
00034 """
00035 Constructor. Any message fields that are implicitly/explicitly
00036 set to None will be assigned a default value. The recommend
00037 use is keyword arguments as this is more robust to future message
00038 changes. You cannot mix in-order arguments and keyword arguments.
00039
00040 The available fields are:
00041 handle,quaternion
00042
00043 :param args: complete set of field values, in .msg order
00044 :param kwds: use keyword arguments corresponding to message field names
00045 to set specific fields.
00046 """
00047 if args or kwds:
00048 super(simRosSetSphericalJointMatrixRequest, self).__init__(*args, **kwds)
00049
00050 if self.handle is None:
00051 self.handle = 0
00052 if self.quaternion is None:
00053 self.quaternion = geometry_msgs.msg.Quaternion()
00054 else:
00055 self.handle = 0
00056 self.quaternion = geometry_msgs.msg.Quaternion()
00057
00058 def _get_types(self):
00059 """
00060 internal API method
00061 """
00062 return self._slot_types
00063
00064 def serialize(self, buff):
00065 """
00066 serialize message into buffer
00067 :param buff: buffer, ``StringIO``
00068 """
00069 try:
00070 _x = self
00071 buff.write(_struct_i4d.pack(_x.handle, _x.quaternion.x, _x.quaternion.y, _x.quaternion.z, _x.quaternion.w))
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 if self.quaternion is None:
00082 self.quaternion = geometry_msgs.msg.Quaternion()
00083 end = 0
00084 _x = self
00085 start = end
00086 end += 36
00087 (_x.handle, _x.quaternion.x, _x.quaternion.y, _x.quaternion.z, _x.quaternion.w,) = _struct_i4d.unpack(str[start:end])
00088 return self
00089 except struct.error as e:
00090 raise genpy.DeserializationError(e)
00091
00092
00093 def serialize_numpy(self, buff, numpy):
00094 """
00095 serialize message with numpy array types into buffer
00096 :param buff: buffer, ``StringIO``
00097 :param numpy: numpy python module
00098 """
00099 try:
00100 _x = self
00101 buff.write(_struct_i4d.pack(_x.handle, _x.quaternion.x, _x.quaternion.y, _x.quaternion.z, _x.quaternion.w))
00102 except struct.error as se: self._check_types(se)
00103 except TypeError as te: self._check_types(te)
00104
00105 def deserialize_numpy(self, str, numpy):
00106 """
00107 unpack serialized message in str into this message instance using numpy for array types
00108 :param str: byte array of serialized message, ``str``
00109 :param numpy: numpy python module
00110 """
00111 try:
00112 if self.quaternion is None:
00113 self.quaternion = geometry_msgs.msg.Quaternion()
00114 end = 0
00115 _x = self
00116 start = end
00117 end += 36
00118 (_x.handle, _x.quaternion.x, _x.quaternion.y, _x.quaternion.z, _x.quaternion.w,) = _struct_i4d.unpack(str[start:end])
00119 return self
00120 except struct.error as e:
00121 raise genpy.DeserializationError(e)
00122
00123 _struct_I = genpy.struct_I
00124 _struct_i4d = struct.Struct("<i4d")
00125 """autogenerated by genpy from vrep_common/simRosSetSphericalJointMatrixResponse.msg. Do not edit."""
00126 import sys
00127 python3 = True if sys.hexversion > 0x03000000 else False
00128 import genpy
00129 import struct
00130
00131
00132 class simRosSetSphericalJointMatrixResponse(genpy.Message):
00133 _md5sum = "034a8e20d6a306665e3a5b340fab3f09"
00134 _type = "vrep_common/simRosSetSphericalJointMatrixResponse"
00135 _has_header = False
00136 _full_text = """int32 result
00137
00138
00139 """
00140 __slots__ = ['result']
00141 _slot_types = ['int32']
00142
00143 def __init__(self, *args, **kwds):
00144 """
00145 Constructor. Any message fields that are implicitly/explicitly
00146 set to None will be assigned a default value. The recommend
00147 use is keyword arguments as this is more robust to future message
00148 changes. You cannot mix in-order arguments and keyword arguments.
00149
00150 The available fields are:
00151 result
00152
00153 :param args: complete set of field values, in .msg order
00154 :param kwds: use keyword arguments corresponding to message field names
00155 to set specific fields.
00156 """
00157 if args or kwds:
00158 super(simRosSetSphericalJointMatrixResponse, self).__init__(*args, **kwds)
00159
00160 if self.result is None:
00161 self.result = 0
00162 else:
00163 self.result = 0
00164
00165 def _get_types(self):
00166 """
00167 internal API method
00168 """
00169 return self._slot_types
00170
00171 def serialize(self, buff):
00172 """
00173 serialize message into buffer
00174 :param buff: buffer, ``StringIO``
00175 """
00176 try:
00177 buff.write(_struct_i.pack(self.result))
00178 except struct.error as se: self._check_types(se)
00179 except TypeError as te: self._check_types(te)
00180
00181 def deserialize(self, str):
00182 """
00183 unpack serialized message in str into this message instance
00184 :param str: byte array of serialized message, ``str``
00185 """
00186 try:
00187 end = 0
00188 start = end
00189 end += 4
00190 (self.result,) = _struct_i.unpack(str[start:end])
00191 return self
00192 except struct.error as e:
00193 raise genpy.DeserializationError(e)
00194
00195
00196 def serialize_numpy(self, buff, numpy):
00197 """
00198 serialize message with numpy array types into buffer
00199 :param buff: buffer, ``StringIO``
00200 :param numpy: numpy python module
00201 """
00202 try:
00203 buff.write(_struct_i.pack(self.result))
00204 except struct.error as se: self._check_types(se)
00205 except TypeError as te: self._check_types(te)
00206
00207 def deserialize_numpy(self, str, numpy):
00208 """
00209 unpack serialized message in str into this message instance using numpy for array types
00210 :param str: byte array of serialized message, ``str``
00211 :param numpy: numpy python module
00212 """
00213 try:
00214 end = 0
00215 start = end
00216 end += 4
00217 (self.result,) = _struct_i.unpack(str[start:end])
00218 return self
00219 except struct.error as e:
00220 raise genpy.DeserializationError(e)
00221
00222 _struct_I = genpy.struct_I
00223 _struct_i = struct.Struct("<i")
00224 class simRosSetSphericalJointMatrix(object):
00225 _type = 'vrep_common/simRosSetSphericalJointMatrix'
00226 _md5sum = 'ff6022ac5ed35d4a73c1ed756bc036db'
00227 _request_class = simRosSetSphericalJointMatrixRequest
00228 _response_class = simRosSetSphericalJointMatrixResponse