A way to get the parsed global arguments from within the Node or NodeOptions
メンテナーはふだん 1 日以内に返信
@Functionhx がすでに取り組んでいます。
2026年7月12日 から。
評価
調査の方向性
Node と NodeOptions のエントリポイントから始め、argv/argc と use_global_arguments がどのように扱われるかに焦点を当てます。node が解析済みのグローバル ROS 引数にアクセスできるようにしつつ、子 node がすべてのグローバル引数を継承せずに topic と service の remapping を再利用できる方法を定義します。
索引モデルが issue の本文から書いたものです。
説明
Hello!
i've a use case where I need to know the parsed global ros args inside the Node, but I see there is no current way as the NodeOptions arguments are empty by default, and unfortunately, I don't have access to the argv within the class to find the global arguments parsed through command line or the launch. Is there a way to access what ros arguments are parsed from within ros2 node? If so, how?
I need this because I have set the use_global_arguments options to false for the other nodes I create inside my process to not affect by global arguments, but however, I would like them to share the arguments of remapping of topics services etc. For this reason, it would be interesting to have access to the argv and argc from within the ROS2 node
Thank you in advance
- 主要言語
- C++
- スター
- 829
- フォーク
- 587
- 平均マージ
- 4日 6時間
- マージ済み PR(30日)
- 30
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ros2/rclcpp のほかの issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
メンテナーはふだん 1 日以内に返信
-
Memory grows per callback group created and destroyed on long lived nodes対応中かも @jwallace42 が 1 日前に担当しました。 オープンbug
難易度 4/5 3〜5日 初心者へのやさしさ 28/100
ros2/rclcpp#3428 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
removing and immediately re-adding a node to the EventsCBGExecutor leaves its entities unregistered対応中かも @skyegalaxy が 10 日前に担当しました。 オープンbug
メンテナーはふだん 1 日以内に返信
-
[Humble] Removing a node with more than one auto-added callback group leaves a dangling guard condition in the executor対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
bug
難易度 1/5 1〜3時間 初心者へのやさしさ 82/100
EchoTools/nevr-runtime#2912 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
メンテナーはふだん 1 日以内に返信
-
category:port-update
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 2 日以内に返信
-
bug-unconfirmed
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
libc++
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
llvm/llvm-project#246508 ·
メンテナーはふだん 1 日以内に返信