Universal robot controller