Quasi-Harmonic Function Approach to Human-Following Robots