Conversion of angle between links to linear displacement of actuator