Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Save / Dump / Load parameters to / from file using rclcpp

Aperta
#2,981 10 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@mjcarroll ci sta già lavorando.

Dal 20/11/2025.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

enhancement
Description

Create a function to save parameters to a file inside a C++ node. Something like `node->save_parameters(path);'. This can be useful when the parameters are changed inside a callback and the user wants to restart the node with those changes applied.

I understand that the launch files provide sufficient features to load the parameters at start. However, it can be useful to load a configuration set, making it easier to change the file loaded than each parameter individually.

It differs from ros2_persist_parameter_server in that it's not centralized. The parameters are still owned by the node, and it's responsible for managing them. A non-centrilized aproach is better for modularity as it's not necessary to add or remove packages from the central entity when changes are made. The ros2 param dump is also not the best option, given the modularity argument. Maintenance in a central entity is something we would like to avoid.

Motivation

I'm working on an autonomous sprayer called Arbus 4000 JAV. We have several parameters, such as spraying configuration and behaviour ones, in the system. We would like to save these parameters in a persistent way so the user can change them at run time and have them already configured on reboot. Also, it's useful to change between preconfigured spraying behaviours for different crops wich consist in load some parameters.

Design / Implementation Considerations

No response

Additional Information

Does it make sense to be part of the rclcpp, or is it better to have a dedicated class for that?

Is there a better way to do that? Are there any other use cases?

Lingua principale
C++
Stelle
814
Fork
572
Merge medio
5g 3h
PR unite (30g)
17

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ros2/rclcpp

Tutte le issue di ros2/rclcpp

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.