No internet vs no shared link
Coordinating robots without a network can mean one of two situations. In the first, there is no internet or cloud connection, but the robots still share a local network such as site Wi-Fi or a wired backbone. In the second, there is no shared link at all between some of the robots, because one has driven out of range or the access point has failed.
The first case is the one robot middleware is designed for. The second is a network partition, and no middleware can deliver a message across it. It can only help each side notice, keep working, and catch up later.
ROS 2 node discovery with DDS
ROS 2 robots find each other through DDS, the middleware ROS 2 is built on, without a central registry. DDS is a standard from the Object Management Group that defines a data-centric publish-subscribe model: producers publish data, and the middleware delivers it to matching consumers. Several vendors implement it, and the ROS 2 documentation lists implementations from eProsima, Eclipse and RTI among the supported options.
The ROS 2 documentation describes the discovery process:
- When a node starts, it advertises its presence to other nodes on the network with the same ROS domain.
- Other nodes reply with information about themselves so connections can be made.
- Nodes keep advertising periodically, so they can find nodes that appear later, and they announce when they go offline.
- Nodes only connect if their Quality of Service settings are compatible.
The domain is set with the ROS_DOMAIN_ID environment variable. Nodes on the same domain can discover and message each other; nodes on different domains cannot. Every node uses domain 0 by default, so two robot teams on one network should use different IDs. The documentation suggests choosing a value between 0 and 101 inclusive to stay clear of port conflicts.
By default ROS 2 tries to find all nodes on all hosts on the same subnet, which for DDS means anything reachable by multicast. The ROS_AUTOMATIC_DISCOVERY_RANGE variable can narrow this to the local machine or turn it off, and ROS_STATIC_PEERS lists specific addresses to try, which helps where multicast is not available.
ROS 2 QoS on lossy links
ROS 2 exposes DDS Quality of Service policies that let each stream choose how to behave, and its documentation names lossy wireless networks as one reason it does:
- Reliability. Best effort may lose samples; reliable retries until they arrive. The documentation’s sensor data profile uses best effort, because timely readings matter more there than receiving every one.
- Durability. Transient local makes the publisher keep samples for subscriptions that join late.
- Liveliness. A publisher must show it is alive within a set period, or the system treats it as lost, which is one way to detect that a teammate has gone quiet.
These settings shape behaviour on a degraded link. They do not create a path where none exists.
Zenoh scouting and rmw_zenoh routers
Plain Eclipse Zenoh applications run in peer mode by default and talk directly to each other on the local network. They find each other by multicast scouting, or by gossip scouting from a configured entry point when multicast is unavailable. Zenoh is another option for robots, and ROS 2 can use it through the rmw_zenoh middleware. Client mode keeps a single session to another node, and router mode can route data for others in a mesh of routers that are configured with each other’s addresses.
The ROS 2 integration makes a different default choice. In rmw_zenoh, multicast scouting is disabled in the node’s session configuration, so nodes discover each other through a Zenoh router. Without the router they cannot find each other unless multicast scouting is enabled. A design that relies on that router has a coordination point to keep running on each host, and teams should plan for it.
Robot coordination with no shared link
Coordination has to become local when a robot leaves coverage, because discovery protocols assume the robots share some network:
- Each robot needs rules it can follow alone, such as stopping at a boundary or holding a task until it can confirm it.
- Records made while apart need the robot’s own timestamps and sequence numbers, so they can be ordered when devices reconnect.
- Exclusive decisions, such as which robot takes a narrow aisle or a charger, need an explicit owner or a reservation that expires. Merging data after the fact cannot undo two robots acting on the same claim.
Device-to-device software can narrow the gap by carrying short coordination messages over any link two machines still share, including Bluetooth LE between a robot and a nearby phone, and relaying through other devices. Offline Protocol’s Python package, installed from PyPI, runs a peer on a Linux host over a local IP network and keeps its identity and held messages across restarts. It sits beside the robot middleware, not in place of it. On WendyOS, an operating system for robots and edge AI devices, Wendy Labs runs one such app on a Jetson Orin Nano, a Raspberry Pi 5 and a Dragonwing IQ9 with no internet: the boards hold messages for a board that is unplugged and relay through the board in the middle, as Offline Protocol on WendyOS shows.