robot control script