Text this: Singularity avoidance of a six degree of freedom three dimensional redundant planar manipulator