Simulation for robot ball-catching algorithm