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