Energy-based control of a passive haptic device