Archived legacy site - a preserved snapshot of robobus before the site overhaul, no longer maintained. Go to the current site →

Architecture

1. Isolation model (no disruption)

Everything lives in an isolated Miniforge (conda) prefix.

2. The bus (robobus.shm_ring)

A single-producer / multi-consumer ring buffer over an mmap'd file.

Frame format and slot layout are documented in robobus/shm_ring.py.

3. Why the bus is the cross-runtime bridge

There is no prebuilt ros1_bridge for Noetic↔Kilted (it's rarely built for newer ROS 2 distros, and never for this pairing on RoboStack). Rather than fight that, each runtime gets a thin adapter that maps its topics/streams onto bus channels:

Proven end-to-end by scripts/e2e_demo.sh: ROS1→bus→ROS2 topic and ROS2→bus→live LSL stream, all delivering at ~27 µs (dominated by ROS serialization + thread poll, not the bus).

Beyond ROS/LSL, robobus.transports.* bridges the bus to the wider streaming world, MQTT, Apache Kafka, AMQP/RabbitMQ, Eclipse Zenoh, DDS, CAN/CAN-FD, ZeroCM, raw TCP, UDP (unicast/multicast) and serial/radio. Each maps a protocol's topics onto bus channels, and any bridge accepts --security <suite> --keyfile, so CNSA 2.0 post-quantum crypto (ML-KEM key agreement, AES-256-GCM, ML-DSA identity) wraps that link even when the wire protocol has no security of its own. The same PQC-hardened frames carry across five native language implementations (Python, C, Rust, JS/Node, Java, bidirectionally conformance-tested) plus schema codegen for fourteen more.

4. Latency engineering

Three transports, each tuned for localhost:

For the lowest possible latency, use the bus with put_raw/recv_raw (skip the codec) and busy-spin readers (spin_us=0).

5. Codec

robobus.codec, a compact self-describing frame [type][stamp_ns][payload] carrying float64/int32 arrays, strings, JSON, or raw bytes, with a monotonic_ns send timestamp (one host-wide clock, so any reader computes true one-way latency). JSON is the generic path for arbitrary ROS messages; bytes is the opaque path for already-serialized data.

6. Security (optional, layered below the codec)

robobus.crypto adds authenticated encryption without touching the hot path's design: PQC math runs once per session; every message is just AEAD.

The same encrypted bytes ride the bus, ROS topics, and LSL string streams unchanged, so encryption is uniform across all three runtimes, and entirely opt-in.