A robo picker would pick up a cucumber and not notice it's rotten on one side though, unless we assume that the robots will scan the entire item and somehow figure out what is good and what is not using AI - but I think that would prove to be an extremely difficult problem and ultimately not worth the effort.
I believe it would though. It's already happening higher up the supply chain where conveyor belts of produce are graded using computer vision (and other techniques, I'm sure).
This is about moving these techniques further down the chain. A robot picker arm with a few cameras attached that can tell whether something is rotten is well within our grasp. (Awful pun intended!)