Skip to content

Latest commit

 

History

History
110 lines (81 loc) · 2.1 KB

README.md

File metadata and controls

110 lines (81 loc) · 2.1 KB

the-flash-sudo

CMU Spring Carnival Mobot Racing 2016

We won first place with $1000 prize money! Check us out at: https://youtu.be/ja-ICS9NzA0?t=255

Team Members

Haowen (Harvey) Shi, Zixu (Elias) Lu, Yixiu (Matthew) Zhao

Installation Instructions

Make sure you have the correct paths in your environment. For example, sometimes you have pip2 directing to a python2 pip and use python2 instead of python.

Deploying dependencies on your RaspberryPi:

You need to install BrickPi and have the module BrickPi ready and connected to your raspberrypi to run the mobot controller.

List of dependencies:

  1. OpenCV
  2. python2
  3. numpy
  4. pyserial
  5. BrickPi
  6. rpyc
  7. picamera

For Mac Users: First Step

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Install python2 in homebrew
$ brew install python
$ brew link --overwrite python
  • Install opencv3 for python2
$ brew tap homebrew/science
$ brew install opencv
  • Add /usr/local/bin into your path

Add the following line at the end of your .bash_profile

PATH="/usr/local/bin:${PATH}"

For Windows Users: First Step

Choose correct version for your system (x64/x86)

  • Install OpenCV for python2
$ conda install opencv

Install rpyc for remote object sharing

Make sure you have pip for brew python in PATH (not the system default one)

You can check this by using "which" command (UNIX only)

$ which python

You should see:

/usr/local/bin/python

$ pip install rpyc

Install PIL (Python Imaging Library)

  • For Mac Users:

(Sometimes this package is already included when installing OpenCV with brew)

$ sudo -H pip install Pillow
  • For Windows Users:

You need to install image library for PIL. Do this in Administrator Command Prompt:

$ pip uninstall Pillow
$ pip install image

Clone repo to your computer

$ git clone https://github.com/harveybia/the-flash-sudo.git

You are good to go.