Using ultrasonic to control robot arm positioning