Software architecture for manufacturing and space robotics