Linux Setup
From IPRE Wiki
- You will need Python installed. On many Linux distributions, Python is already installed. We will use Python 2.4 from python.org.
- Download, unzip, and run "python setup.py" on the latest Myro - select myro-x.y.z.zip with the largest x.y.z.
- Copy Start Python.pyw to your desktop, or wherever you would like.
- Copy these two files to your idlelib subdirectory
- Download and run pyserial (pyserial-2.2)
- If you would like to use the Chat features, you'll need xmpppy
- If you would like to view camera and other images, you will need the Python Image Library at least version 1.1.6
- You'll need numpy if you will be working with images from the camera
- If you would like to have sound output on the host computer, you will need Snack Sound Extension. This is handy so the simulator can beep(). To install:
- need tk-devel and tcl-devel packages
- download latest source release from http://www.speech.kth.se/snack/download.html
- tar xfz snack2.2.10.tar.gz
- cd snack2.2.10/unix
- ./configure --with-tcl=/usr/lib/ --with-tk=/usr/lib/ --enable-alsa
- edit Makefile and change SNACK_INSTALL_PATH = /usr/lib (couldn't figure out what flag to send configure)
- make; make install
- cd ../python
- python setup.py install
- If you would like text-to-speech, then install festival
The last piece of the puzzle is to add a Bluetooth interface. If you have a fairly modern Linux setup, then you need only do the following. If you need to manually add and configure Bluetooth, see the notes here: http://pyrorobotics.org/?page=Using_20the_20Hemisson_20Robot
First, find out the Bluetooth address of the device. To do this, as root, enter hciconfig like so:
% hciconfig
hci0: Type: USB
BD Address: 00:11:22:33:44:43 ACL MTU: 384:8 SCO MTU: 64:8
UP RUNNING PSCAN
RX bytes:941 acl:0 sco:0 events:23 errors:0
TX bytes:332 acl:0 sco:0 commands:22 errors:0
Then, add an entry in /etc/bluetooth/rfcomm.conf:
rfcomm0 {
# Automatically bind the device at startup
bind yes;
# Bluetooth address of the device
device 11:22:33:44:55:66;
#BorgDongle
# RFCOMM channel for the connection
channel 1;
# Description of the connection
comment "IPRE Scribbler Dongle";
}
Lastly, run rfcomm bind all like so:
% rfcomm bind all
You can then refer to your Scribbler via the comport named "/dev/rfcomm0".
