Derived piecewise continuous controller: application to nonlinear mechanical robot's trajectory tracking