DEV Community

thun-res
thun-res

Posted on

"Try VLink: a C++17 messaging layer for one robotics data path"

I maintain VLink, an Apache-2.0 C++17 middleware project for vehicle and robotics software. I started with a practical integration problem: a component might publish to another process on the same machine today and to a network peer tomorrow. I wanted the application-facing publish and receive code to stay familiar while selecting the transport separately.

VLink exposes pub/sub, request/reply and state synchronization. A URL selects the transport. If you connect to an existing peer, the message type, wire format and QoS still have to match. I’d start by evaluating a single data path alongside the existing stack, without changing the rest of the robot software.

Try the smallest path first. Download the v2.4.0 Linux x86-64 archive. Extract it and run this from the extracted vlink directory:

source ./setup_runtime.sh
./bin/vlink-bench run --preset quick \
  --url 'intra://bench/portable_smoke' --suite throughput \
  --mode local-direct --topology 1:1 --payload bytes \
  --pattern fixed --size 1024 --rate 100 --warmup 1000 \
  --duration 2000 --report json --output /tmp/vlink-portable-smoke
Enter fullscreen mode Exit fullscreen mode

The package smoke check received 200 of 200 messages on Ubuntu 22.04 x86-64. This is an in-process sanity check, not a DDS interoperability result or a comparison with ROS 2. For the API itself, see the tagged C++ pub/sub example.

If you try this on a real sensor stream, I’d like to hear which message type and transport you started with, and what made the swap hard. Please share reproducible details in GitHub Issues.

This article was drafted with AI assistance.

Top comments (0)