Text this: A Self-learning Nonlinear Variable Gain Proportional Derivative (PD) Controller in Robot Manipulators