Kinematic analysis and synthesis of the beat-up mechanism for handmade carpet looms