Future factories in digitized industries will require highly versatile automation systems. Seamless human-robot collaboration, utilizing the strengths of both, combined with advanced machine perception and automated planning are key factors for success in a world of “mass customized” products and increasingly faster product changes. Two examples, in welding and assembly, show advanced planning, sensing and human-robot collaboration technologies and discuss their benefits.