Design and control of a haptic arm exoskeleton