Online human walking imitation in task and joint space based on quadratic programming | Synapse