Abstract
Real-time visual target tracking with unmanned aerial vehicle (UAV) camera gimbals requires accurate target centering while suppressing oscillatory responses, abrupt visual-error variations, and transient overshoot. Conventional proportional–derivative (PD) tuning and single-error optimization do not explicitly balance these competing objectives. This paper presents Hawkeye, a simulation-based visual tracking framework integrating YOLO26n–ByteTrack target observation, image-based angular feedback, and observer-based state-space proportional–derivative (SS-PD) control within Gazebo and ROS 2. A novel particle swarm optimization (NPSO) method is employed to jointly tune the proportional gain, derivative gain, and observer bandwidth using a weighted scalar objective comprising mean radial tracking error, visual-error volatility, second-order visual-error variation, and image-center zero crossings. The framework is evaluated under prescribed carrier motion and large-offset transient recovery. Compared with conventional PD control using the same proportional and derivative gains, the observer-based realization reduces mean settling time from to s ( ), with a modest increase in peak overshoot. Among the NPSO-tuned configurations, the MAE-plus-volatility objective achieves the lowest normalized radial error ( ), while equal weighting of all four objectives yields the lowest second-order variation ( ), zero-crossing metric ( ), and transient overshoot, reducing the latter by relative to MAE-only optimization. Ten repeated trials of the equal-weight configuration yield a radial MAE of pixels. The results demonstrate how weighted multi-criteria tuning changes the balance between tracking accuracy, visual-error variation, and transient behavior under the investigated simulation conditions.