Massachusetts, which has a cluster of more than 400 robotics companies, is shaping a new, more automated workforce.