Skip to content

Commit

Permalink
Merge branch 'master' of git@github.com:SWiT/RobotFightClubArena.git …
Browse files Browse the repository at this point in the history
…into serial

Conflicts:
	arena.py
  • Loading branch information
SWiT committed Jun 25, 2014
2 parents f10bf6b + c8ad3d5 commit 23507a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README
Expand Up @@ -14,17 +14,18 @@ You will need:
the printed datamatrices

Install the following packages (Ubuntu):
sudo apt-get install git v4l2ucp git gcc-avr avr-libc openjdk-7-jre build-essential checkinstall cmake pkg-config yasm libtiff4-dev libjpeg-dev libjasper-dev libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev libxine-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libv4l-dev python-dev python-numpy libtbb-dev libqt4-dev libgtk2.0-dev libdmtx-utils blueman
sudo apt-get install git v4l2ucp git gcc-avr avr-libc openjdk-7-jre build-essential checkinstall cmake pkg-config yasm libtiff4-dev libjpeg-dev libjasper-dev libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev libxine-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libv4l-dev python-dev python-numpy libtbb-dev libqt4-dev libgtk2.0-dev libdmtx-utils libdmtx-dev blueman

Install pydmtx:
cd ~
git clone https://github.com/dmtx/dmtx-wrappers.git
cd dmtx-wrappers/python
sudo python setup.py install

Install the lastest opencv package (2.4.8+):
mkdir opencv
cd opencv
cd ~
git clone https://github.com/Itseez/opencv.git
cd opencv
git checkout -b 2.4 origin/2.4
mkdir release
cd release
Expand Down
2 changes: 2 additions & 0 deletions arena.py
Expand Up @@ -27,6 +27,8 @@ def __init__(self):
match = serial_pattern.match(dev)
if match:
self.serialdevices.append('/dev/'+dev)
if len(self.videodevices) == 0:
raise SystemExit('No video device found. (/dev/video#)')
self.videodevices.sort()
self.serialdevices.sort()
print serialdevices
Expand Down

0 comments on commit 23507a2

Please sign in to comment.