Flexible production systems based on integrated tools for rapid reconfiguration of machinery and robots