On Debian-like systems (e.g. Ubuntu), robotpkg packages are provided in binary, pre-compiled form. This type of installation saves time and energy, as you don’t have to compile the source code. On the other hand, it does not allow fine tuning of compilation options and is limited to the installation of released packages.
The apt
repository is setup as explained in the
robotpkg documentation.
In summary:
$ codename=`lsb_release -sc`
$ sudo tee /etc/apt/sources.list.d/robotpkg.list <<EOF
deb [arch=amd64] http://robotpkg.openrobots.org/packages/debian/pub $codename robotpkg
EOF
$ curl http://robotpkg.openrobots.org/packages/debian/robotpkg.key | sudo apt-key add -
$ sudo apt update
Packages are always installed in /opt/openrobots
. For convenience, you
probably need to setup your shell to look for programs there:
$ export PATH=$PATH:/opt/openrobots/bin:/opt/openrobots/sbin
In order to make this change permanent, you must edit your shell startup
file and add the above command in that file. For instance, if you use the
bash
shell, the file to be edited would be .bashrc
. See your shell
documentation for details.
The package(s) name(s) to install with apt install
are all prefixed with
robotpkg-
. Packages are compiled with a set of predefined default options,
that are appended to the package name to distinguish between different options
for the same package. For instance, genom3
components are compiled with the
pocolibs
and ros
middlewares separately.
You can search for available packages by using apt search
:
$ sudo apt search robotpkg-rotorcraft
Sorting... Done
Full Text Search... Done
robotpkg-rotorcraft-genom3+codels+openprs+pocolibs-client-c+pocolibs-server/focal 3.4r1 amd64
Low level controller for tk3 quadrotors
robotpkg-rotorcraft-genom3+codels+openprs+ros-client-c+ros-client-ros+ros-server/focal 3.4r1 amd64
Low level controller for tk3 quadrotors
A good starting point when using telekyb3
is to install the following
packages:
$ sudo xargs apt install -y <<EOF
robotpkg-pom-genom3+codels+openprs+pocolibs-client-c+pocolibs-server
robotpkg-rotorcraft-genom3+codels+openprs+pocolibs-client-c+pocolibs-server
robotpkg-optitrack-genom3+codels+openprs+pocolibs-client-c+pocolibs-server
robotpkg-nhfc-genom3+codels+openprs+pocolibs-client-c+pocolibs-server
robotpkg-uavatt-genom3+codels+openprs+pocolibs-client-c+pocolibs-server
robotpkg-uavpos-genom3+codels+openprs+pocolibs-client-c+pocolibs-server
robotpkg-maneuver-genom3+codels+openprs+pocolibs-client-c+pocolibs-server
robotpkg-tk3-paparazzi
robotpkg-tk3-flash
EOF