Sabaton Middleware

Application developers use the Sabaton middleware to develop executables that run on the Sabaton platform. The middleware standardizes how topics and services are accessed by applications and also how data types and interfaces are defined.

Building your first Sabaton Application

Sabaton applications are called nodes. The quickest way to build your own node is by using cargo generate template.

cargo generate --git https://github.com/sabaton-rs/node-template.git

user@COMPUTERNAME:~/playground$ cargo generate --git https://github.com/sabaton-rs/node-template.git
⚠️   Unable to load config file: /home/user/.cargo/cargo-generate.toml
🤷   Project Name : MyFirstNode
⚠️   Renaming project called `MyFirstNode` to `my-first-node`...
🔧   Generating template ...
[1/7]   Done: .gitignore
[2/7]   Done: Cargo.toml
[3/7]   Done: README.md
[4/7]   Done: src/bin/example-node.rs
[5/7]   Done: src/bin
[6/7]   Done: src/lib.rs
[7/7]   Done: src
🔧   Moving generated files into: `/home/user/playground/my-first-node`...
💡   Initializing a fresh Git repository
   Done! New project created /home/user/playground/my-first-node

And thats it! This component will build fine when cross compiling in the NDK environment. However in case you want to develop on the host machine, as most people do, you can just build using cargo build. Ensure that the dependencies of Iceoryx and CycloneDDS are installed. See the end of this page for instructions.

The Node structure is the primary interface to the middlware.

Trying out the middleware on Ubuntu

You can build your applications on your development machine and connect seamlessly to the development target if you have network connectivity to the target.

You need to install the following software components on your development machine to build applications for the host.

  1. Eclipse Iceoryx
  2. Eclipse Cyclone DDS