Algorithms that can make a collaborative robot arm react to moving objects within milliseconds could mean a future where robots and humans work closer together on production lines. Jim Drury reports