Teaching robots how to move objects