ON THE COLLISION DETECTION PROBLEM FOR ROBOT MANIPULATORS