https://123dok.net/document/yevn0om4-globally-optimal-solution-inverse-kinematics-dof-serial-manipulator.html