I think this is a much better idea, because it decomposes the problem into easier things for robots. People are talking about stems, but hold up! You can just make a second robot that picks up raspberries from a bucket and removes the stems. This sounds much easier to me.
This would only work for autumn fruiting varieties. Summer fruiting varieties fruit on 1 year old stems, so unless you identified the new stems and left them...