Python 3 software for obtaining centre of pressure data from the Nintendo Wii board. Works on linux computers only. Also obtains subject code and experiment factors such as group (case/control), acquisition time etc. This is used by students and researchers at the British School of Osteopathy, London website.
##INSTALL INSTRUCTIONS
-
Go to here to download the zip file containing the xwiimote software and unzip it in a suitable directory. Or clone using git.
-
Go to here to download the zip file containing the xwiimote bindings and unzip it another directory. Or clone using git.
-
Install the following dependencies (ubuntu based distributions) via:
sudo apt-get install libudev-dev libncurses5-dev libncursesw5-dev autoconf autogen libtool swig python3-dev python3-tk python3-pip
-
Install python modules:
sudo pip3 install pyudev pandas matplotlib
-
Compile and install xwiimote library. Change (cd) to xwiimote directory (xwiimote-master), then run:
sudo ./autogen.sh
sudo ./configure
sudo make
sudo make install
-
Create the xwiimote configure file in /etc/ld.so.comf.d:
cd /etc/ld.so.conf.d
sudo nano xwiimote.conf
And add the following line to this file:
/usr/local/lib
and save: Ctrl O, Ctrl X. Next, reload library cache using the following:
sudo ldconfig
-
Test xwiimote libraries are installed and can connect Wiiboard by connecting Wiiboard via Bluetooth and running:
sudo xwiishow
and follow instructions.
-
Compile and install xwiimote python bindings. Change (cd) to xwiimote-bindings directory and run following:
sudo ./autogen.sh
sudo ./configure PYTHON=/usr/bin/python3
sudo make
sudo make install
-
Add user to input group to allow user (‘usersname’) to run xwiimote software:
sudo usermod -a -G input usersname
then log out and log back in again
-
Create a directory to put the wiiboard software into, e.g. ~/Wiiboard. Copy wiicop.py and WiiCopFunctions.py into this directory. Then add this directory to your python path by adding this line to your ~/.bashrc file:
export PYTHONPATH="$PYTHONPATH:home/yourusername/path/to/wiicopdir"
-
In same directory create a directory called config_files to put study configuration files for each study. These need to be amended – see below.
-
Create a study directory and a sub directory for each study. Amend config file for each study to point to the right directory
NOTES: In Linux Mint 18 Cinnamon edition the default bluetooth (Blueberry) tool doesn't seem to work. Uninstalling it and installing Blueman seems to work:
sudo apt-get remove --purge blueberry
sudo apt-get install blueman
Then reboot