A dexterous anthropomorphic hand for robotic and prosthetic applications