Robot arm identifies object during movement