Skip to content

The Initial Files, to be included in the Software component of the CSRbot

Notifications You must be signed in to change notification settings

teamRobotTSU/CSRbot

Repository files navigation

CSRbot setup instructions


  1. Gather the required parts.
  2. Complete the assembly and setup guide.
  3. reboot
  4. login in and enable wi-fi
  5. open a terminal and type: pwd (print working directory) you should see something like /home/pi or /home/yourUserName
  6. Next type: ls (lowercase L, list) you should see an output listing the contents of the current working directory
  7. type: git clone https://github.com/teamrobottsu/csrbot.git and then type ls again you should now see a folder "csrbot" in your directory.
  8. type: cd csrbot (change directory). See what pwd and ls commands show now.
  9. type: cd pi (then press tab before pressing enter) remember tab completion!!!
  10. We need to run the piSetup.sh, any file that ends with .sh means it is a "shell" file, and can be executed from the shell. This is equivelant to double clicking on a program in Windows.
  11. First, make it executable by typing: sudo chmod +x piSetup.sh if prompted for your password, enter it. "sudo" in linux is equivalent to running something as an administrator, or Super User in linux terms. to find out what chmod does (or anything else for the matter) type: man chmod (man = manual)
  12. Now to execute this file, or any other executable file from the shell, type: ./piSetup.sh and wait for the script to finish. (do not execute as sudo) This script installs the following: - package 1 - package 2 - package 3 - package n
  13. Reboot your pi.
  14. With a correctly assembled robot, open a terminal, navigate to the robot-api folder in the csrbot directory, and type: sudo python3 robot.py to verify complete functionality (see keymap.txt for the list of controls).

The non-pi-setup-scripts are tested for linux ubuntu 14.X and 16.X

To verify opencv was properly built, open a terminal and run python3, after the >>> type import cv2, then type print(cv2.version) and you should get 3.1.0 returned

To verify tensorflow was properly built, in the same python3 terminal type import tensorflow as tf and then type print(tf.version) and you should get 0.12.1 or similar