Text this: Intelligent control and impedance adjustment for efficient human-robot cooperation