Star-Convex Constrained Optimization for Visibility Planning with Application to Aerial Inspection