added code to send commands to robot