56 |63 | 64 | | 65 | 66 | e. Within the VM, open xterm. Once xterm is open, run the following commands in order. Please wait for each command to finish before entering the next one. This step may take several minutes. :: 67 | 68 | /vagrant/setup-vm.sh 69 | 70 | .. important:: Be sure to accept the Android SDK license prompt before continuing. 71 | .. important:: If using an Android device, the device will will prompt with *"Allow USB Debugging?"*. Tap **OK** to allow this option. 72 | 73 | .. code-block:: python 74 | 75 | cd /vagrant/cozmo_sdk_examples_*** 76 | 77 | .. 78 | 79 | 6. For **macOS/Linux**: 80 | 81 | a. Download :verlink:`vagrant_bundle_0.0.0.tar.gz57 |62 |Note
58 |The Virtual Machine is set up with the following credentials: 59 |
61 |
user - vagrant 60 |
password - vagrant
101 |108 | 109 | | 110 | 111 | e. Within the VM, open xterm. Once xterm is open, run the following commands in order. Please wait for each command to finish before entering the next one. This step may take several minutes. :: 112 | 113 | /vagrant/setup-vm.sh 114 | 115 | .. important:: Be sure to accept the Android SDK license prompt before continuing. 116 | 117 | .. important:: If using an Android device, the device will will prompt with *"Allow USB Debugging?"*. Tap **OK** to allow this option. 118 | 119 | .. code-block:: python 120 | 121 | cd /vagrant/cozmo_sdk_examples_*** 122 | 123 | 7. Make sure Cozmo is powered on and charged. Connect to the Cozmo robot's WiFi from the mobile device and then connect to the Cozmo robot within the app. 124 | 8. Enter SDK mode on the app. 125 | 126 | a. On the Cozmo app, tap the gear icon at the top right corner to open the Settings menu. 127 | b. Swipe left to show the Cozmo SDK option and tap the **Enable SDK** button. 128 | 129 | 9. To run a program enter the following into the virtual machine's Terminal prompt:: 130 | 131 | ./program_name.py 132 | 133 | For example, to run the Hello World example program, you would type ``./hello_world.py``. 134 | 135 | .. important:: You must either relaunch with "vagrant up" or save your virtual machine's state when shutting down. Otherwise the /vagrant/ folder on the virtual machine will be empty on subsequent runs. 136 | 137 | ---- 138 | 139 | `Terms and Conditions102 |107 |Note
103 |The Virtual Machine is set up with the following credentials: 104 |
106 |
user - vagrant 105 |
password - vagrant