{"id":29022738,"url":"https://github.com/tiryoh/ros-launch-analyzer","last_synced_at":"2026-02-19T07:32:03.909Z","repository":{"id":281698589,"uuid":"946131291","full_name":"Tiryoh/ros-launch-analyzer","owner":"Tiryoh","description":"ROSを使わずROS1のlaunchファイルの依存関係をグラフ表示するツール","archived":false,"fork":false,"pushed_at":"2025-11-03T10:36:26.000Z","size":67,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-19T07:41:59.716Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tiryoh.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-10T16:55:05.000Z","updated_at":"2025-04-22T12:27:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"b4fb2963-324d-42c5-930d-9929a9a6bbfc","html_url":"https://github.com/Tiryoh/ros-launch-analyzer","commit_stats":null,"previous_names":["tiryoh/ros-launch-analyzer"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Tiryoh/ros-launch-analyzer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tiryoh%2Fros-launch-analyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tiryoh%2Fros-launch-analyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tiryoh%2Fros-launch-analyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tiryoh%2Fros-launch-analyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tiryoh","download_url":"https://codeload.github.com/Tiryoh/ros-launch-analyzer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tiryoh%2Fros-launch-analyzer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29606927,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T06:47:36.664Z","status":"ssl_error","status_checked_at":"2026-02-19T06:45:47.551Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-26T03:03:33.418Z","updated_at":"2026-02-19T07:32:03.892Z","avatar_url":"https://github.com/Tiryoh.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ros-launch-analyzer\n\n## 概要\n\nros-launch-analyzerは、ROSのlaunchファイルの依存関係を分析してグラフを生成するツールです。\n\nROS1がインストールされていない環境で使うことを想定したツールのため、ROSに依存せずに動かせます。\n\n（そのためROSがインストールされている環境ならば簡単にパスが見つかるようなパッケージも、見つかりにくいことがあります）\n\n## 機能\n\n- launchファイル間の依存関係を解析\n- ROSノードの依存関係を解析\n- 依存関係をGraphvizを使ってグラフ化\n- シンプルグラフと詳細グラフの生成\n- ノード情報のCSV出力\n\n## インストール\n\n```bash\npip install ros-launch-analyzer\n```\n\n## 実行方法\n\n### CLIとして\n\n```sh-session\n$ ros-launch-analyzer \u003claunchファイルまたはディレクトリのパス\u003e [--output \u003c出力ファイル名\u003e] [--ros-ws \u003cROSワークスペースのパス\u003e]\n```\n\n**解析対象の指定について:**\n\n*   **ディレクトリを指定した場合:**\n    指定されたディレクトリ以下の全ての `.launch` および `.launch.xml` ファイルを再帰的に検索し、それらのファイル間の依存関係（`\u003cinclude\u003e` タグによる参照）を全て解析します。間接的な依存関係も含まれます。\n    ```sh-session\n    # 例: mycobot_gazebo パッケージの launch ディレクトリ全体を解析\n    $ ros-launch-analyzer catkin_ws/src/mycobot_ros/mycobot_gazebo/launch --ros-ws \"$(pwd)/catkin_ws\"\n    ```\n\n*   **単一のlaunchファイルを指定した場合:**\n    指定された launch ファイルと、そのファイルが **直接 `\u003cinclude\u003e` タグで参照している launch ファイルのみ** を対象として解析し、グラフを生成します。指定ファイルから見て2階層目以降の間接的な依存関係はグラフに含まれません。これは、特定のファイル周辺の直接的な依存関係に絞って確認したい場合に便利です。\n    ```sh-session\n    # 例: demo.launch とそれが直接 include するファイルのみを解析\n    $ ros-launch-analyzer catkin_ws/src/mycobot_ros/mycobot_move_it_config/launch/demo.launch --ros-ws \"$(pwd)/catkin_ws\"\n    ```\n\nmycobot_rosのlaunchファイルを解析する例 (ディレクトリ指定)\n\n```sh-session\n$ cd /tmp\n$ mkdir -p catkin_ws/src\n$ git clone https://github.com/Tiryoh/mycobot_ros.git catkin_ws/src/mycobot_ros\n$ ros-launch-analyzer catkin_ws/src/mycobot_ros/mycobot_gazebo/launch --ros-ws \"$(pwd)/catkin_ws\"\n```\n\n### Pythonモジュールとして\n\n```python\nfrom ros_launch_analyzer.analyzer import LaunchAnalyzer\n\n# 解析器の初期化\nanalyzer = LaunchAnalyzer(\"/path/to/launch/dir\", \"/path/to/catkin_ws\")\n\n# launchファイルの解析\nanalyzer.parse_launch_file(\"/path/to/your.launch\")\n\n# グラフの生成\nanalyzer.create_graph(\"output_filename\")\n# または\nanalyzer.create_simple_graph(\"output_filename\")  # シンプルグラフのみ\nanalyzer.create_full_graph(\"output_filename\")    # 詳細グラフのみ\n```\n\n## 出力\n\n以下のファイルを生成し出力します。  \ndotファイルは[xdot](https://github.com/jrfonseca/xdot.py)や[VSCodeの拡張機能（Graphviz Interactive Preview）](https://marketplace.visualstudio.com/items?itemName=tintinweb.graphviz-interactive-preview)などで表示できます。  \n生成されたファイルはClaudeなどでdrawioのフォーマットに変換して使用すると便利です。\n\n- `ros_nodes_graph_simple.dot`\n  - launchファイルの依存関係を表すGraphvizのdotファイル\n- `ros_nodes_graph_simple.pdf`\n  - 上記のdotファイルをレンダリングしたPDF\n- `ros_nodes_graph.dot`\n  - launchファイル（ROSパッケージも含む）の依存関係を表すGraphvizのdotファイル\n- `ros_nodes_graph.pdf`\n  - 上記のdotファイルをレンダリングしたPDF\n- `ros_nodes_graph_nodes.csv`\n  - launchファイルのノード名とパッケージ名を出力したCSVファイル\n\n### mycobot_rosを解析した結果\n\nsimpleグラフ  \n![Image](https://github.com/user-attachments/assets/9bf40e5f-a1ca-45ce-99e6-eadc0f750656)\n\nfullグラフ  \n![Image](https://github.com/user-attachments/assets/b1da58d3-14cd-41f2-b89f-9d8559864731)\n\nsimpleグラフをdrawioのフォーマット（[flow.drawio.txt](https://github.com/user-attachments/files/19829833/flow.drawio.txt)）に変換したもの  \n![Image](https://github.com/user-attachments/assets/24e8202d-6d9d-4899-ae57-28c519b77263)\n\n## 必要条件\n\n- Python 3.8以上\n- Graphviz（システムにインストールされている必要があります）\n\n## ライセンス\n\n本プロジェクトは[MITライセンス](LICENSE)のもとで公開されています。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiryoh%2Fros-launch-analyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftiryoh%2Fros-launch-analyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiryoh%2Fros-launch-analyzer/lists"}