Modeling and Prototype Implementation of an Automated Guided Vehicle for Smart Factories