A generalized approach to anti-sway control for shipboard cranes. (1st February 2021)