Autonomous Target Recognition and Localization for Manipulator Sampling Tasks