Phase estimation for fast action recognition and trajectory generation in human–robot collaboration. (December 2017)