Fundamental dynamics based adaptive energy control for cooperative swinging of complex pendulum-like objects