A software system for controlling a haptic Phantom haptic robot