Flexible human–robot cooperation models for assisted shop-floor tasks