Collaborative robots have taken off in recent years as artificial intelligence makes them useful for a wider variety of applications.