ros2inspector nodes
List nodes detected from supported Python and C++ source patterns, including publishers, subscriptions, services, clients, action servers, and action clients.
Usage
ros2inspector nodes [-C PATH] [OPTIONS]
Options
| Option | Default | Description |
|---|---|---|
-C, --path | . | Workspace root |
--format, -f | table | table, json, or yaml |
--package, -p | — | Keep nodes from one package |
--output, -o | — | Write output to a file |
--show-connections | false | Include resolved peer and interface details |
--no-cache | false | Re-parse source instead of using the incremental cache |
Examples
ros2inspector nodes
ros2inspector nodes -C ~/robot_ws -p navigation2
ros2inspector nodes --show-connections
ros2inspector nodes --format json -o nodes.json
A node with names computed at runtime is marked with has_dynamic_names: true; unresolved dynamic names are not presented as known static endpoints.