Real-time modification method of position and force teaching information in a human-robot cooperative system