Collison Control of the Robot Manipulator by a Learning Control Using the Weighted Least-Squares Method