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