A Framework for Human-robot Interaction in Collaborative manufacturing Environments