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