Control of Manipulator in its Singular Configurations for Human-Robot Coordination