ROBOT CONTROLLERS: ONLINE AND OFFLINE ADAPTION, AND AUTOMATIC CODE TRANSFER