Code to train robot without changing code