Attitude control for free-flying space robot using gravity gradient torque and manipulator posture