Dynamic task classification and assignment for the management of human-robot collaborative teams in workcells