Return null if the robot is already at the end point