A real-time motion planning scheme for collaborative robots using HRI-based cost function. (19th March 2021)