SVPTO: Safe Visibility-Guided Perception-Aware Trajectory Optimization for Aerial Tracking