Text this: A Neural Network Solution to Singular Configuration in Trajectory Tracking of a Serial Robot