A framework to write supervision process for autonomous robots