r2r/r2r_macros
Michal Sojka e9f375e8f6 Make the order of parameters deterministic
GUI tools for working with parameters (at least Foxglove Studio, rqt
and rig_reconfigure) show the parameters in the same order as returned
by the ListParameters service. r2r stores the parameters in a HashMap,
which iterates keys and values in arbitrary order. The result is that
the GUI tools show the parameters in different order after every node
invocation, which can be quite annoying.

To make the order deterministic, we change the parameter storage from
HashMap to IndexMap, which iterates the map in insertion order.
According to the indexmap documentation, IndexMap is a drop-in
replacement of HashMap so this change should not require code changes
in applications using r2r. At least r2r examples and my projects
needed no changes.
2024-04-29 20:33:50 +02:00
..
src Make the order of parameters deterministic 2024-04-29 20:33:50 +02:00
Cargo.toml Release 0.8.4 2024-03-19 13:30:06 +01:00
README.md Update README 2023-09-22 08:47:46 +02:00

README.md

Internal dependency of r2r https://github.com/sequenceplanner/r2r.