Skip to main content

Installation

Requirements

RequirementVersion
Python3.11, 3.12, or 3.13
ROS2Not required for static analysis
OSLinux is release-tested; validate other platforms before production use

:::info No runtime needed Static analysis works locally and does not require a sourced ROS2 environment. The visualization asset is bundled for offline output. :::

pipx installs ros2inspector in an isolated environment and makes the command available on your PATH. You do not need to create or activate a virtual environment.

pipx install ros2inspector

Verify the installation:

ros2inspector --version

If the command is not found after installation, run pipx ensurepath and open a new terminal.

Install with pip in a virtual environment

python -m venv .venv
source .venv/bin/activate
pip install ros2inspector

Install from source

git clone https://github.com/aminebensaid66/ros2_inspector.git
cd ros2_inspector
pip install -e .

Dependencies

These are installed automatically with ros2inspector:

PackagePurpose
typerCLI framework
richTerminal output formatting
networkxGraph operations and cycle detection
pydanticData validation
pyyamlPolicy file parsing
orjsonFast JSON serialization
tree-sitter + tree-sitter-cppC++ AST parsing
diskcacheIncremental analysis caching

Next steps