Gravar-mail: UAVs Task and Motion Planning in the Presence of Obstacles and Prioritized Targets