Skip to main content

ros2inspector graph

Render the workspace architecture as a dependency graph, communication graph, or complete Unified Architecture Model.

Usage

ros2inspector graph [deps|comms|full] [-C PATH] [OPTIONS]

The graph type defaults to deps.

Options

OptionDefaultDescription
-C, --path.Workspace root
--format, -fmermaidmermaid, dot, or json
--output, -oWrite output to a file
--package, -pFocus on one package and its immediate neighbors
--no-cachefalseRe-parse source

Graph types

TypeIncluded information
depsPackages and depends_on relationships
commsNodes, topics, services, actions, and communication edges
fullEvery UAM entity and relationship

Examples

ros2inspector graph
ros2inspector graph comms --format mermaid -o architecture.mmd
ros2inspector graph full --format dot | dot -Tsvg -o architecture.svg
ros2inspector graph deps --format json -p navigation2