Building a Smart Factory With AI and Robotics