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