A Hierarchical Architecture for Human-Robot Cooperation Processes