Generic implementatin of a control layer for AUVs