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