A matlab-based robot controller as well as image processor using android smartphone