User Tools

Site Tools


Writing /var/lib/dokuwiki/data/meta/tutorials/installing_yarp_in_debian.meta failed
tutorials:installing_yarp_in_debian

This is an old revision of the document!


Installing YARP in debian

Install dependencies

First follow Using xstow for local installations

  • Add this line to .bashrc
export YARP_DATA_DIRS=${HOME}/local/share/yarp
  • Dependencies:
sudo apt-get install git libace-dev libreadline6-dev libgtkmm-2.4-dev swig libopencv-highgui3.2 libopencv-core3.2 libopencv-dev cmake-curses-gui python-dev qt5-default qtmultimedia5-dev qtdeclarative5-dev qml-module-qtquick-dialogs qml-module-qt-labs-settings qml-module-qtmultimedia libopenmpi-dev qml-module-qt-labs-folderlistmodel qml-module-qt-labs-settings

Compilation

cd ~/local/src/
git clone git://github.com/robotology/yarp.git
cd yarp
mkdir build
cd build
ccmake ../
  • Press “c” to configure for the first time. If you get any errors, correct them all now!
  • Set the CMAKE_INSTALL_PREFIX to /home/user/local/DIR/yarp, activate CREATE_DEVICE_LIBRARY_MODULES, CREATE_GUIS, and YARP_COMPILE_BINDINGS
  • Press “c” to reconfigure. If you get any errors, correct them all now! Then press “c” again.
  • Set CREATE_PYTHON, and ENABLE_YARPMOD_OPENCV_GRABBER
  • Unset YARP_COMPILE_TESTS
  • Press “c” and then “g”
  • Compile:
make -j10

Installation

cd ~/local/src/yarp/build
make install
cd ~/local/DIR
xstow yarp
  • If you have trouble compiling try to checkout to a previous commit around September 17 2015
  • In case you had ROS (ignore if you don't know what ROS is):
xstow swig-wx
xstow opencv2

Test the installation

  • In one console run yarpserver3
  • Connect a webcam to one of the usb ports of the computer
  • In another console run:
yarpdev --verbose --device opencv_grabber
  • In another console run: yarpview
  • In another console run: yarp connect /grabber /yarpview/img:i
  • To test yarp in python:
  • Open ipython and then:
import yarp
buffer=yarp.BufferedPortBottle()
  • You should not get any errors in the last two commands

Update YARP

We try to use the latest yarp version. So some programs may present issues if you stay with old versions. Here are the instructions to updar with the same cmake options.

cd ~/local/DIR
xstow -D yarp
cd ~/local/src/yarp
git pull
cd build
make -j10
make install
cd ~/local/DIR
xstow yarp
tutorials/installing_yarp_in_debian.1556058958.txt.gz · Last modified: 2022/09/20 00:08 (external edit)