Save / Dump / Load parameters to / from file using rclcpp
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
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
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ros2/rclcpp
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
Copy constructor exception leaks intra-process message allocationForse già presa @TinyGeek l’ha presa 2 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
-
[Jazzy] action server registers clock jump callbacks without the clock mutex (heap corruption)Forse già presa Una pull request collegata a questa issue è aperta o già unita. Apertabug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 44/100
I maintainer di solito rispondono entro 1 giorno
-
EventsCBGExecutor segfaults when a timer is removed while its callback is runningForse già presa @spurnvoj l’ha presa 7 giorni fa. Apertabug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
-
EventsCBGExecutor keeps queued events of removed nodes, component container segfaults on shutdownForse già presa @spurnvoj l’ha presa 7 giorni fa. Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 18/100
I maintainer di solito rispondono entro 1 giorno
Issue simili
-
bug format I/O medium priority rt_lib
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
refactor
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
raspberrypi/rpi-imager#1775 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
compiler-explorer/compiler-explorer#9272 ·
I maintainer di solito rispondono entro 1 giorno
-
【问题】在文件树重命名文件,发现无法用鼠标选中一段文字Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100