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