A rotating joint works like an elbow; a sliding joint works like a drawer. Each joint usually has its own motor.