Human-like variable-impedance control for life-cycle testing