A Task Teaching Method for Pan-flipping to Collaborative Robot