A framework for human–robot collaboration enhanced by preference learning and ergonomics | Synapse