- You will need Python installed. On many Linux distributions, Python is already installed. We will use Python 2.4 from python.org. (If you are using Ubuntu 8.10, see the bottom of this page for a complete walk through.)
- 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
- 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 myro directory, or elsewhere. NOTE: If you do not place the myro directory into your python interpreter’s sys.path the “from myro import *” command will fail unless you run the Start Python.pyw file from the same directory as the myro source files directory.
- Copy these two files to your idlelib subdirectory
- 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 your IPRE fluke device. To do this, as root, enter hcitool scan like so:
% hcitool scan
0F:22:13:48:45:0A Pams Laptop
Then, add an entry in /etc/bluetooth/rfcomm.conf file using that Bluetooth address:
# Automatically bind the device at startup
# Bluetooth address of the device
# RFCOMM channel for the connection
# 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” in the init() function call.
- If you are getting “Permission Denied” error messages when attempting to access the bluetooth serial port, you may need to set up the default permissions on your rfcomm devices following these directions by Henry Walker.
- There is a conflict between the Modem Manager and the Fluke that can cause problems connecting. Typically the symptoms involve failing to connect on the first attempt, but success on subsequent attempts. Follow these directions to address this issue.
Ubuntu 8.10 detailed instructions
Andrea Castellani has provided the following detailed instructions for setting up Myro on Ubuntu verson 8.10. Media:Myro_setup_LINUX_Ubuntu.txt