+++++++++++                           AAS                               +++++++++++

+++++++++++++++++++++++++++++++++++++++++++++++++++++

+++++++++++     THIS IS A WORK IN PROGRESS     +++++++++++

+++++++++++++++++++++++++++++++++++++++++++++++++++++

+++++++++++       PLEASE DO NOT USE YET (Lächeln)       +++++++++++

+++++++++++++++++++++++++++++++++++++++++++++++++++++

+++++++++++++++++++++++++++++++++++++++++++++++++++++



When installing the robotpkg for the first time.

What is robotpkg?

robotpkg is a compilation framework and packaging system for installing robotics software developed by the robotic community.

It also contains packages for some general, third-party open-source software that the robotics software depends on and that is not commonly packaged by major unix distributions.

Each package in robotpkg has its own version control system and build system and robotpkg acts merely as an automated wrapper to build and install software and its dependencies.

The packaged software does not depend in any way on robotpkg, so that manual installation (without robotpkg) is always possible. 

robotpkg itself is lightweight, in the sense that only the packages you are interested in will be downloaded and installed.

Source 

Installation steps for Ubuntu 18.04.5

Setting up the robotpkg compilation framework and packaging system. [quick installation guide.]

  1. Required packages

$ sudo apt-get install autoconf
$ sudo apt-get install autogen libtool shtool
$ sudo apt-get install binutils gcc-avr avr-libc

2. Clone the repository

$ git clone git://git.openrobots.org/robots/robotpkg

3. Install gnu-make sw and compilers

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install build-essential

4. create a directory /opt/openrobots

$ cd /opt/
$ sudo mkdir openrobots
$ sudo chmod a+rw openrobots/

5. Bootsrapping

$cd ~/robotpkg/bootstrap
$ ./bootstrap

6.For you convenience, setup the PATH variable to easily run robotpkg and man commands (setting up binaries)

$ cd
$ export PATH=${PATH:+$PATH:}/opt/openrobots/bin:/opt/openrobots/sbin
$ export MANPATH=${MANPATH:+$MANPATH:}/opt/openrobots/man


Configuring the required packages

As you are building the packages you will bump into errors, since some other required packages are missing.

e.g. openssl>=0.9.6 (Ubuntu package libssl-dev)

$ sudo apt install libssl-dev
$ make build

Repeat ($ sudo apt install <package_name> ; $ make build) till no errors show up. 

Then continue with following command.

Overview page for all packages available. You can use the index to spot the directory of the packages if you need to.

  1.  genomix

$ cd ~/robotpkg/net/genomix
$ make build 

If you see pkg-config>=0.22
$ sudo apt install pkg-config

$ make update
$ make install

2. genom3

$ cd ~/robotpkg/architecture/genom3
$ make build
$ make update
$ make build
$ make install

3. pocolibs

$ cd ~/robotpkg/middleware/pocolibs
$ make build
$ make update
$ make build
$ make install

4. matlab-genomix

$ cd ~/robotpkg/supervision/matlab-genomix
$ make build

If ERROR: matlab
$ gedit /opt/openrobots/etc/robotpgk.conf
Find the line # SYSTEM_PREFIX?= /usr /usr/local /opt ...
add /usr/local/MATLAB/R2020a (or your matlab version)
uncomment the line by deleting the #
save the file

$ make update
$ make build
$ make install

5. tk3-flash

$ cd ~/robotpkg/sysutils/tk3-flash/
$ make build
$ make update
$ make build
$ make install

6. tk3-mikrokopter

$ cd ~/robotpkg/robots/tk3-mikrokopter/
$ make build
$ make update
$ make build
$ make install

Edit the .bashrc

  1. $ cd
  2. $ gedit .bashrc
  3. go to the last line and add the following:

export PATH="/opt/ros/melodic/bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/openrobots/bin/"
export ROBOPKG_BASE="/home/<here you should type in your user name>/robotpkg"

Adding the path to MATLAB

  1. $ matlab
  2. find Set Path
  3. select Add with Subfolders...
  4. type in /opt/openrobots/lib/matlab
  5. Click save