swarmros repository

Repository Summary

Checkout URI https://github.com/amilankovich-slab/swarmros.git
VCS Type git
VCS Version master
Last Updated 2020-04-01
CI status No Continuous Integration
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)


Name Version
swarmros 0.3.6


CPSwarm Communication Library

GitHub tag (latest SemVer)

The CPSwarm Communication Library provides a unified interface that tools and swarm members can use to interact with each other.

Getting started

For more information, see the WIKI.


Packages are built continuously with Bamboo.


Building on Linux

Build should work on any Linux distribution, but packaging and architecture detection will only work on Debian and Ubuntu. By default, everything is compiled for the host architecture, but cross-compilation is available. Currently armhf and arm64 are supported if the required tools are available. The default compiler is clang, but GCC can also be used. Builds were tested with Ubuntu 16.04 and 18.04, with all the latest updates installed.

There are three build modes you can choose from:

 - DEVELOPMENT (default)

Development mode will build and install all components into one subdirectory under the build directory. Useful when an IDE needs a full include path and for debugging. By default, products are installed into the "devtree-" subdirectory.


Package mode will build .deb packages for each target - and set /opt/swarmio as the install prefix. Find the packages under the "packages" subdirectory.


Install will install all outputs onto the local machine, by default under /opt/swarmio.

To build, create a new directory outside the source tree, and issue the following commands inside it:

 cmake <PATH TO SOURCE> [optional parameters]
 cmake --build .

Optional parameters:


Specifies build mode (see above). DEVELOPMENT build will generate debug executables, while PACKAGE and INSTALL builds will compile with release flags (and debug symbols).

 -DCMAKE_BUILD_TYPE=<TYPE> (Debug, Release, RelWithDebInfo)

Override build type derrived from build mode. See CMake docs for more info.


Overrides the installation directory. For DEVELOPMENT and INSTALL build, this will override the output directory. For PACKAGE builds, it will override the installation prefix of the generated packages.


Enables cross-compilation - required tools must already be installed. On Ubuntu systems, crossbuild-essential- packages should do the trick.


If turned on, swarmros will be built.


If configured, a full multistrap sysroot will be initialized before cross-compilation. Requires multistrap and a bunch of other tools to be installed. Currently supported configurations: - xenial (Ubuntu 16.04) - xenial-ros (Ubuntu 16.04 with ROS Kinetic Kame) - bionic (Ubuntu 18.04) - bionic-ros (Ubuntu 18.04 with ROS Melodic Morenia)


If multistrap is not used, a sysroot needs to be manually set for cross-compilation to work. Ensure that the system image contains no absolute symbolic links before using it.


If multistrap is not used, this should be set to indicate the GCC version present in the manually specified sysroot in order to help compilers find the correct libraries to link against.


Specifies the location of the ROS installation to use when building the ROS node. If not specified, the script will try to automatically detect it - by looking for the default installation directory of Kinetic Kame and Melodic Morenia.


If specified, GCC will be used instead of clang. Please note that cross-compilation will most likely only work if the same operating system (with a different architecture) is used on the host machine. Requires GCC 6 or later.

Building on Windows

On Windows, only DEVELOPMENT mode is supported. Building the ROS node and multistrap environments are not supported. Basic build command is the same as on Linux:

 cmake <PATH TO SOURCE> [optional parameters]
 cmake --build .

Optional parameters:

 -DCMAKE_BUILD_TYPE=<TYPE> (Debug, Release, RelWithDebInfo)

Overrides the default build mode (Debug).


Overrides the output directory.


Specifies whether to generate 32 or 64 bit builds.

Quick example

If you want to generate packages for an armhf target, with ROS support turned on, targeting Ubuntu Xenial:

cmake --build .

All output packages will be placed into the packages subdirectory.


Contributions are welcome.

Please fork, make your changes, and submit a pull request. For major changes, please open an issue first and discuss it with the other authors.


This work is supported by the European Commission through the CPSwarm H2020 project under grant no. 731946.