Skip to content

Latest commit

 

History

History
165 lines (102 loc) · 3.35 KB

ubuntu_istall.rst

File metadata and controls

165 lines (102 loc) · 3.35 KB

Installing pyapi and pyapps on Ubuntu/debian/raspbian Linux

Prerequisites

During the installation of prerequisites some extra packages will be installed, too.

Serial test

Optional for testing serial connection to the instrument. With graphical user interface use cutecom.

sudo apt-get install cutecom

or with command line use setserial and minicom.

sudo apt-get install setserial
sudo apt-get install minicom

Python 3.x & pip

sudo apt-get install python3 python3-pip python3-dev
sudo pip3 install setuptools

PySerial (Serial communication to sensor)

sudo pip3 install pyserial

Note

You can remove sudo before pip3 if you want install packages for the actual user only. Using sudo all user can access them.

On Linux the serial ports are protected. The root user and those are in the dialout group are able to read/write serial ports. To add yourself to the dialout group use the following command

sudo usermod -a -G dialout $USER

PyBluez (Bluetooth communication to sensor)

sudo apt-get install bluetooth libbluetooth-dev
sudo pip3 install pybluez

PyYaml (to read camera calibration data)

sudo pip3 install pyyaml

numpy (for camera applications)

sudo pip3 install numpy

Matplotlib (to display camera/image ddata)

sudo apt install python3-matplotlib

GNU GaMa

Optional used only by robotplus.py and freestation.py GNU GaMa is built from sources

sudo apt-get install autoconf automake
git clone https://git.savannah.gnu.org/git/gama.git
cd gama
./autogen.sh
./configure
make
sudo make install

OpenCV

Optional used by WebCam class. opencv-contrib-python contains code to identify ArUco codes in images which is used by the applications in camera folder.

sudo apt-get install libopencv-dev
sudo pip3 install opencv-python
sudo pip3 install opencv-contrib-python

Wifi

Optional used by WifiCollector class.

sudo pip3 install wifi

I2C interface

Optional available only on Raspberry Pi. See http://www.instructables.com/id/Raspberry-Pi-I2C-Python/step2/Enable-I2C/

SpatiaLite/SqLite

Optional used by robotplus if SqLiteWriter selected.

sudo apt-get install sqlite3
sudo apt-get install spatialite-bin

Ulyxes

Install only the latest version from GitHub:

cd ~
wget https://github.com/zsiki/ulyxes/zipball/master/ -O ulyxes.zip
unzip ulyxes.zip

Or make a local copy of the git repository:

cd ~
git clone https://github.com/zsiki/ulyxes.git

You can move the whole ulyxes install directory to any other place in your file system and you can also rename the ulyxes install directory. You had better not to change directory and file names under the install directory.

Set PYTHONPATH variable in your .profile to start ulyxes applications from any folder

export PYTHONPATH=$HOME/ulyxes/pyapi:$HOME/ulyxes/camera:$HOME/ulyxes/pyapps