A way to get the parsed global arguments from within the Node or NodeOptions
Maintainer antworten meist innerhalb von 1 Tag
@Functionhx arbeitet bereits daran.
Seit 12.7.2026.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 35/100
Rechercherichtung
Beginnen Sie mit den Node- und NodeOptions-Einstiegspunkten und konzentrieren Sie sich darauf, wie argv/argc und use_global_arguments behandelt werden. Legen Sie fest, wie ein Node auf geparste globale ROS-Argumente zugreifen könnte und gleichzeitig untergeordneten Nodes ermöglichen könnte, Topic- und Service-Remappings wiederzuverwenden, ohne alle globalen Argumente zu übernehmen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Vorherrschende Sprache
- C++
- Sterne
- 829
- Forks
- 587
- Ø Merge
- 4 T. 6 Std.
- Gemergte PRs (30 T.)
- 30
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus ros2/rclcpp
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
Maintainer antworten meist innerhalb von 1 Tag
-
Memory grows per callback group created and destroyed on long lived nodesEvtl. vergeben @jwallace42 hat das vor 1 Tag übernommen. Offenbug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 28/100
ros2/rclcpp#3428 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
removing and immediately re-adding a node to the EventsCBGExecutor leaves its entities unregisteredEvtl. vergeben @skyegalaxy hat das vor 10 Tagen übernommen. Offenbug
ros2/rclcpp#3418 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
[Humble] Removing a node with more than one auto-added callback group leaves a dangling guard condition in the executorEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
ros2/rclcpp#3410 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Ähnliche Issues
-
arch-based bug niri
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
noctalia-dev/noctalia#5552 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 82/100
EchoTools/nevr-runtime#2912 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area/docdb kind/failing-test priority/medium status/awaiting-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
yugabyte/yugabyte-db#39462 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
meshtastic/firmware#12519 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 79/100
Maintainer antworten meist innerhalb von 1 Tag