Skip to main content

No project description provided

Project description

ros-launch-analyzer

概要

ros-launch-analyzerは、ROSのlaunchファイルの依存関係を分析してグラフを生成するツールです。

ROS1がインストールされていない環境で使うことを想定したツールのため、ROSに依存せずに動かせます。

(そのためROSがインストールされている環境ならば簡単にパスが見つかるようなパッケージも、見つかりにくいことがあります)

機能

  • launchファイル間の依存関係を解析
  • ROSノードの依存関係を解析
  • 依存関係をGraphvizを使ってグラフ化
  • シンプルグラフと詳細グラフの生成
  • ノード情報のCSV出力

インストール

pip install ros-launch-analyzer

実行方法

CLIとして

$ ros-launch-analyzer <launchファイル(ディレクトリ)のパス> [--output <出力ファイル名>] [--ros-ws <ROSワークスペースのパス>]

Pythonモジュールとして

from ros_launch_analyzer.analyzer import LaunchAnalyzer

# 解析器の初期化
analyzer = LaunchAnalyzer("/path/to/launch/dir", "/path/to/catkin_ws")

# launchファイルの解析
analyzer.parse_launch_file("/path/to/your.launch")

# グラフの生成
analyzer.create_graph("output_filename")
# または
analyzer.create_simple_graph("output_filename")  # シンプルグラフのみ
analyzer.create_full_graph("output_filename")    # 詳細グラフのみ

出力

以下のファイルを生成し出力します。
dotファイルはxdotVSCodeの拡張機能(Graphviz Interactive Preview)などで表示できます。

  • ros_nodes_graph_simple.dot
    • launchファイルの依存関係を表すGraphvizのdotファイル
  • ros_nodes_graph_simple.pdf
    • 上記のdotファイルをレンダリングしたPDF
  • ros_nodes_graph.dot
    • launchファイル(ROSパッケージも含む)の依存関係を表すGraphvizのdotファイル
  • ros_nodes_graph.pdf
    • 上記のdotファイルをレンダリングしたPDF
  • ros_nodes_graph_nodes.csv
    • launchファイルのノード名とパッケージ名を出力したCSVファイル

必要条件

  • Python 3.8以上
  • Graphviz(システムにインストールされている必要があります)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ros_launch_analyzer-0.0.1.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ros_launch_analyzer-0.0.1-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file ros_launch_analyzer-0.0.1.tar.gz.

File metadata

  • Download URL: ros_launch_analyzer-0.0.1.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.8 Darwin/23.4.0

File hashes

Hashes for ros_launch_analyzer-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e032f59a49b4b08c8ee67dc70aaf1b4373c13437ebe45a9b62b4568103076e4d
MD5 faf083819cb438c84355446977bf5ac5
BLAKE2b-256 a8d5f24e4d7af5b4c9672fea354b4072527f905a6ce0597857afa1feb56f9463

See more details on using hashes here.

File details

Details for the file ros_launch_analyzer-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ros_launch_analyzer-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8d784b24166a58d201f62d669f3d11faec8d00ff53c39a09ff8a5ecde7d53004
MD5 07cff7cb9864f28e593f129d3c44d6c2
BLAKE2b-256 25caa7cb672779376020feea2d68e53e32f0edde7708e66c53dcf70c31d7106a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page