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