English | 日本語
Documentation site: https://atinfinity.github.io/fastdds_transport_viz/
Shows which Fast DDS transport each ROS 2 topic is communicated over — UDPv4, UDPv6, TCP, shared memory (SHM) or zero-copy data-sharing — and why.
The web viewer: an arrow per pair of nodes and transport, and what is right or wrong with the selected one (above: the detailed view).
- Is this topic really on shared memory? The transport of every writer → reader pair.
- Why not? Reason codes for every verdict.
- What do I change? The remedy of each code, and the configuration that applies it.
A talker and a listener on one machine, the listener left on UDP by FASTDDS_BUILTIN_TRANSPORTS.
The table names the cause and the fix; restarted without that variable, the pair is on SHM:
$ ros2 run demo_nodes_cpp talker &> /dev/null &
$ FASTDDS_BUILTIN_TRANSPORTS=UDPv4 ros2 run demo_nodes_cpp listener &> /dev/null &
$ ros2 transport list --topic '^/chatter$'
TOPIC PUBS SUBS TRANSPORT VERDICT
/chatter 1 1 UDPv4 x1 warning
! /talker@local -> /listener@local: same host, but the reader has no shared
memory transport (reader-no-shm-locator)
fix: Enable SHM on the reader's participant: unset
FASTDDS_BUILTIN_TRANSPORTS or set it to DEFAULT / LARGE_DATA …
…
$ pkill listener
$ ros2 run demo_nodes_cpp listener &> /dev/null &
$ ros2 transport list --topic '^/chatter$'
TOPIC PUBS SUBS TRANSPORT VERDICT
/chatter 1 1 SHM x1 ok: shared memory
…
A run on Jazzy without other nodes, shortened: … is what was left out. This simple view is newer
than the image of the quick start; -v shows the details,
doctor a report by problem. Terms, one line each:
glossary. More output.
With Docker, in a container with two demo nodes of its own (one line at a time):
docker run --rm -it ghcr.io/atinfinity/fastdds_transport_viz:jazzy bash
ros2 run demo_nodes_cpp talker &> /dev/null & ros2 run demo_nodes_cpp listener &> /dev/null &
ros2 transport list -v --explain --topic '^/chatter$'
The pair is SHM, with the reason codes explained below the table. For your own nodes, on the
Linux host they run on and with the tag of their distribution (:humble, :jazzy, :lyrical):
docker run --rm --net host --ipc host ghcr.io/atinfinity/fastdds_transport_viz:jazzy \
ros2 transport list -v
Pass on with -e what the nodes set (details).
The image is the newest release, 2.1.0: what the CHANGELOG
lists under Forthcoming (doctor, check, advise, whatif, the kernel counters, the discovery load and more)
needs a native build or the
development image.
- Prediction per pair from discovery data alone; the observed nodes need no change.
- Measurement with
--stats: the transport that carried packets, latency, rate, loss. - Remedies:
--explain,--advise, adoctorreport,advisefor the configuration itself,whatifto predict a setting. - For CI:
checkagainst a policy,diffof two runs,--jsonwith a schema,--csv. - Live:
--watchin the terminal, a web viewer with recordings, Prometheus/metrics, an rqt panel. - For assistants:
ros2 transport mcp, a Model Context Protocol server. - The environment: shared memory, kernel counters, discovery load.
| ROS 2 distro | Fast DDS | Notes |
|---|---|---|
| Humble | 2.6 | Prediction only — the binary has no statistics module |
| Jazzy | 2.14 | Prediction + --stats measurement |
| Lyrical | 3.6 | Prediction + --stats measurement |
| Rolling | 3.x (head) | Tracks Fast DDS main; best-effort in CI, not a required check |
Yes, to see which transport your topics use and why, to change it, and to check it in CI. No, for another RMW, another operating system or a load test. What other tools are for: which to use when.
- Fast DDS RMWs only:
rmw_fastrtps_cpp, andrmw_fastrtps_dynamic_cppup to Lyrical. - Linux only. Docker Desktop cannot observe nodes on the host.
- Run it where the nodes run: same domain, environment variables, XML profile, network and IPC namespace.
- Not a load test: the observation is short. All limitations.
| Page | What is in it |
|---|---|
| Getting started | build (native or Docker), first run, first checks |
| Common pitfalls | seven common problems: how to reproduce, recognize and fix them |
| Command line | synopsis, output, the options of list, exit statuses |
| How it works | decision rules and reason codes |
| Web viewer | graph, table, live mode, recordings |
| All pages | data-sharing, measuring, comparison with other tools, development |
| Contributing, Security | how to contribute, how to report a vulnerability |
REP 2004 Quality Level 3, Linux only: fastdds_transport_viz, ros2transport.
Apache-2.0
