Linux Setup

From IPRE Wiki

Jump to: navigation, search
  1. You will need Python installed. On many Linux distributions, Python is already installed. We will use Python 2.4 from python.org.
  2. Download, unzip, and run "python setup.py" on the latest Myro - select myro-x.y.z.zip with the largest x.y.z.
  3. Copy Start Python.pyw to your desktop, or wherever you would like.
  4. Copy these two files to your idlelib subdirectory
  5. Download and run pyserial (pyserial-2.2)
  6. If you would like to use the Chat features, you'll need xmpppy
  7. If you would like to view camera and other images, you will need the Python Image Library at least version 1.1.6
  8. You'll need numpy if you will be working with images from the camera
  9. 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:
    1. need tk-devel and tcl-devel packages
    2. download latest source release from http://www.speech.kth.se/snack/download.html
    3. tar xfz snack2.2.10.tar.gz
    4. cd snack2.2.10/unix
    5. ./configure --with-tcl=/usr/lib/ --with-tk=/usr/lib/ --enable-alsa
    6. edit Makefile and change SNACK_INSTALL_PATH = /usr/lib (couldn't figure out what flag to send configure)
    7. make; make install
    8. cd ../python
    9. python setup.py install
  10. 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".

Personal tools