Skip to main content

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

OptionDefaultDescription
-C, --path.Workspace root
--format, -ftabletable, json, or yaml
--package, -pKeep nodes from one package
--output, -oWrite output to a file
--show-connectionsfalseInclude resolved peer and interface details
--no-cachefalseRe-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.