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