updated example script

updated connectToRobot example script