Difference between revisions of "R2D2 Tutorial"

From GcatWiki
Jump to: navigation, search
(Guide)
(Guide)
Line 24: Line 24:
 
*Other Terminal Setup
 
*Other Terminal Setup
 
#Install pkill command to terminal via MacPorts <pre>sudo port install proctools</pre>
 
#Install pkill command to terminal via MacPorts <pre>sudo port install proctools</pre>
 +
 +
====Set up Robot====

Revision as of 20:06, 8 May 2012

Introduction

Our project was motivated by people leaving windows open inside chambers.

Requirements

  • MacOS X computer
    • Needs bluetooth
    • Needs MatLab and Python 2.7.3
  • iRobot Create
  • BAM iRobot bluetooth adaptor
  • Wifi webcam that you can power
    • We used Foscam FI8918W because it ran off 5 volt power, allowing us to wire it to the iRobot for power.

Guide

Install software/packages/scripts on Mac

  • MatLab Setup
  • Python Setup
  1. Download and Install MacPorts
  2. Open terminal and type the following commands.
  3. Install open cv for python 2.7
    sudo port -v install opencv +python27
  4. Install pil for python 2.7
    sudo port install py27-pil
  5. Optional: Install selenium for python 2.7 (use this option if you want to control the webcam via a browser)
    sudo port install py27-selenium
  6. Set this MacPorts installed python as the default python interpreter:
    sudo port select --set python python27
  7. Download webcam.py to control the wifi webcam
  • Other Terminal Setup
  1. Install pkill command to terminal via MacPorts
    sudo port install proctools

Set up Robot