modified scripts

modified calcTrajectory script and tested with emulator;
modified connectToRobot script and tested with emulator;
changed names for handle from t to conRobot