Human-in-the loop paradigm for assistive robotics