Attitude coordinated control for multiple rigid bodies