A general framework for solving inverse dynamics problems in multi-axis motion control. (December 2019)