Integrating Visual Learning and Hierarchical Planning for Autonomy in Human-Robot Collaboration