Crossing singularities with a six-axis industrial robot arm