A deliberative architecture for AUV control