A robotic system for apple harvesting