Control angular position of joint by length of linear actuator