There is a "kind of" solution, which is implemented in elliptical trainer machines. The idea is based on the prior knowledge of leverages at particular point, so if leverage is small, we need less torque and vs versa. I believe that similar thing is used in human joints.
===
robotics.snowcron.com