Software
ros2_persist_parameter_server
From github.com/fujitatomoya/ros2_persist_parameter_server (opens in a new tab)
- Middleware
- Tool
- Apache-2.0
A ROS 2 node that acts as a parameter server, storing parameters that are marked persistent to a user-chosen file so they survive restarts.
Facts
- GitHub stars
- 119read on 29 Nov 2026
- Last update
- 22 Nov 2026Newest commit on rolling
- Maintenance
- Activea commit in the last 90 days
- Difficulty
- Intermediate
Checked on GitHub on 29 Nov 2026.
Licenses
- Code
- Apache-2.0 (opens in a new tab)
Read by Robotheca from LICENSE (opens in a new tab) (Apache-2.0) at commit b7c4241 (opens in a new tab), on 29 Nov 2026.
- Commercial use
- Yes
At a glance
- What it is
- Other ROS 2 nodes read and write parameters on the server through the standard ROS 2 parameter API.
- Only parameters with the prefix "persistent" are saved to the file, which can sit on tmpfs, NFS, or disk.
- Persistent parameters are written to the file at shutdown, and optionally periodically or on each update.
- On startup the server loads parameters from the file, so changed values are restored after a restart.
- Services ~/reload_params and ~/save_params reload and save parameters at runtime.
- Parameters set via command-line arguments or launch files are not registered as persistent.
Robotheca's summary of the project's documents, not the creator's words.
- Robots on Robotheca
- No robot on Robotheca uses it yet.
- Licence
- Apache-2.0. Commercial use: Yes. Where it was read
- Install
- In the creator's words: The project's README (opens in a new tab)
- Maintenance
- Active, last commit on 22 Nov 2026.
Use it
How to install it, in the creator's words: The project's README (opens in a new tab)
Robotheca doesn't review code. Read it before running it.
Files and versions
- Repository on GitHubgithub.com/fujitatomoya/ros2_persist_parameter_server (opens in a new tab)
- The version Robotheca readb7c4241 (opens in a new tab)
- Latest releaseNone published on GitHub
Robotheca read the repository at two versions: the summary at 894d65e and the facts and the README at b7c4241 (read on 29 Nov 2026).
Robotheca never hosts the code: each link goes to the creator's own page.
The README
The creator's own README, copied as written: README.md by @fujitatomoya, at commit b7c4241, under Apache-2.0 (opens in a new tab). The original on GitHub (opens in a new tab).
Read the README here
(opens in a new tab) (opens in a new tab) (opens in a new tab) (opens in a new tab) (opens in a new tab) (opens in a new tab) (opens in a new tab) (opens in a new tab) (opens in a new tab) (opens in a new tab)
ROS2 Persistent Parameter Server
ROS 2 Persistent Parameter Server, that resides in the ROS 2 system to serve the parameter daemon. The other nodes(e.g the client demo provided in the code) can write/read the parameter in Parameter Server, and Parameter Server is able to store the parameter into the persistent storage which user can specify such as tmpfs, nfs, or disk.
See overview slide deck (opens in a new tab) for general information.
Background
The discussion is opened here (opens in a new tab), and centralized parameter server is not a good affinity to ROS 2 distributed system architecture. One of the most valuable things about ROS APIs is that we make sure that the messages have specific semantic meaning so that they can’t be misinterpreted. As we develop the ROS 2 tools and best practices we should make sure to bring that same level of rigor to parameters too for greater reusability and correctness.
Although, it is expected to be the following requirement.
- Global configuration that many nodes share (e.g. RTOS priorities, vehicle dimensions, …)
- Generic ROS 2 system property server.
- Persistent storage support to re-initialize the system. parameters are modified in runtime and cache it into persistent volume as well. and next boot or next re-spawn, modified parameter will be loaded at initialization. (parameter lifetime is dependent on use case, sometimes system lifetime, sometimes node lifetime.)
- Using ROS1 based application with Parameter Server.
Overview

Generally ROS 2 Parameter Server is simple blackboard to write/read parameters on that. The other nodes can write/read the parameter on the server to share them in the ROS 2 system. there is a new concept for "Persistent Parameter" which is described later.
ROS 2 Parameter Server is constructed on ROS parameter API's, nothing specific API's are provided to connect to the server from the client. Also, about the security it just relies on ROS 2 security aspect.
Persistent Parameter Registration
Persistent Prefix
persistent parameter must have prefix "persistent"
Scope Overview
parameter server has the following scope for persistent parameter. since parameter server is built on top of ROS 2 Parameter API, parameter server supports "persistent" parameter based on /parameter_events topic.
| Category | Supported | Description |
|---|---|---|
| Parameter API | YES | ROS 2 Parameter Client API supported, since this activity can be detected via /parameter_events. |
| Persistent Parameter File | YES | parameter server dedicated argument to specify the file to load as parameters. in addition, all of the persistent parameters will be stored into this file during shutdown. |
| e.g) --file-path /tmp/parameter_server.yaml | ||
| Parameter Arguments | NO | e.g) --ros-args -p persistent.some_int:=42 |
| some_int cannot be registered as persistent parameter, since this cannot be notified via /parameter_events to parameter server. | ||
| Parameter File Arguments | NO | e.g) --ros-args --params-file ./parameters_via_cli.yaml |
| same with parameter arguments, cannot be registered as persistent parameter, since these cannot be notified via /parameter_events to parameter server. | ||
| Launch Parameter | NO | e.g) ros2 launch persist_parameter_server parameter_server.launch.py |
| same with parameter arguments, cannot be registered as persistent parameter, since these cannot be notified via /parameter_events to parameter server. |
Configurable Options
-
Node Name
Since ROS 2 parameter is owned by node, node name will be needed to access the parameters, this is designed to clarify semantics for the parameters and owners. Node name will be "parameter_server" if node name is not specifies. so the other nodes can use "parameter_server" as well to access in the same system Parameter Server. If there must exist multiple parameter servers, these parameter servers need to specify a different node name, such as "parameter_server_[special_string]", please notice that ROS 2 node name can only contains alphanumerics and '_'.
-
Persistent Volume
Definition of "Persistent" is different from user and use cases, so it should be configurable to set the path to store the persistent --file-path FILE_PATH parameter. Expecting if the parameter's lifespan is system boot, path would be "/tmp" because user wants a fresh start via reboot. Or maybe physical persistent volume is chosen if users want to keep the parameter into the hardware storage. At the initialization time, Parameter Server will load the parameters from the storage which is specified by user.
-
Storing Period
It sets the interval for periodically saving parameters to the file system, and that setting the value to 0 disables periodic storing.
-
Node Options
there are four important options:
- allow_undeclared_parameters: (default true)
- automatically_declare_parameters_from_overrides: (default true)
- allow_dynamic_typing: (default false)
- save-on-update: (default false) all of the configuration options will be passed via arguments as following.
Runtime Reconfiguration
The following configuration options are declared as parameters of the parameter server node, so that they can be inspected and changed at runtime via the ROS 2 parameter API (e.g. ros2 param get/set) without restarting the parameter server.
These parameters are always declared with the initial values given by the command line arguments, regardless of --allow-override.
| Parameter | Type | CLI | Description |
|---|---|---|---|
storing_period | integer | --storing-period | Interval in seconds for periodically storing the persistent parameters. Setting it to 0 stops the periodic storing, and setting a positive value (re)starts the timer with the new period. Negative values and non-integer values are rejected. |
allow_dynamic_typing | bool | --allow-dynamic-typing | Allows the type of the parameters served by the parameter server to be changed after declaration. The typing policy is enforced by the parameter server itself, so that the change applies to all parameters including the ones that are already declared. |
must_save_on_update | bool | --save-on-update | Stores the persistent parameters to the file system each time one of them is changed. |
$ ros2 param set /parameter_server storing_period 10
Set parameter successful
$ ros2 param set /parameter_server storing_period -1
Setting parameter failed: Storing period cannot be a negative value.
$ ros2 param set /parameter_server allow_dynamic_typing true
Set parameter successful
[!NOTE] These configuration parameters are not persistent parameters, so the values changed at runtime are not stored in the file system. Use the command line arguments to change the initial values.
Services
~/reload_params: Reloads the parameters from the configuration file. This service allows dynamic reconfiguration of the node without requiring a restart. When called, the parameter server will reload the parameter values and apply them to the current operation.~/save_params: Saves the current persistent parameter values to persistent storage (typically a configuration file). This service ensures that parameter changes made during runtime are preserved and will be available after node restart or system reboot.
Sequence
- parameter server is initialized via __params:=<xxx.yaml> this is just a initial parameter(not persistent) to load into the parameter server's memory.
- parameter server loads parameter specified yaml file via --file-path. and then parameter server will overwrite or declare parameters. (*) at #1 parameters might be overwritten.
- parameter server starts the main loop with callback for parameter changes.
- if the parameter changes are on "/persistent" that will be stored in storage at this time.
- at the finalization, flash all of the "/persistent" parameters into the file system.
Getting Started
Tutorial Video is provided by The Construct Robotics Institute (opens in a new tab).
Image (opens in a new tab) (opens in a new tab)
Supported Distribution (opens in a new tab)
| Distribution | Supported | Branch |
|---|---|---|
| Rolling Ridley | ✅ | rolling (opens in a new tab) (default) |
| Lyrical Luth | ✅ | lyrical (opens in a new tab) |
| Kilted Kaiju | ✅ | kilted (opens in a new tab) |
| Jazzy Jalisco | ✅ | jazzy (opens in a new tab) |
| Humble Hawksbill | ✅ | humble (opens in a new tab) |
Docker Container
see available images for tomoyafujita/ros2_param_server@dockerhub (opens in a new tab)
docker run -it --rm --net=host tomoyafujita/ros2_param_server:humble
Dependent Packages
apt install libyaml-cpp-dev libboost-program-options-dev libboost-filesystem-dev
Prerequisites
ROS 2 source build environment (opens in a new tab) is required to build and run the parameter server.
Build
Install local colcon workspace,
# cd <colcon_workspace>/src
# git clone -b <ROS_DISTRO> https://github.com/fujitatomoya/ros2_persist_parameter_server
# cd <colcon_workspace>
# colcon build --symlink-install --packages-select persist_parameter_server
# source install/local_setup.bash
Run
-
start parameter server.
# cp <colcon_workspace>/src/ros2_persist_parameter_server/server/param/parameter_server.yaml /tmp/ # ros2 run persist_parameter_server server [INFO] [parameter_server]: Parameter Server node named: '/parameter_server' started and ready, and serving '9' parameters already! ...<snip> -
update persistent parameter.
$ ros2 param set /parameter_server persistent.some_int 81 Set parameter successful $ ros2 param set /parameter_server persistent.a_string Konnichiwa Set parameter successful $ ros2 param set /parameter_server persistent.pi 3.14159265359 Set parameter successful $ ros2 param set /parameter_server persistent.some_lists.some_integers "[81, 82, 83, 84]" Set parameter successful -
restart parameter server.
# ros2 run persist_parameter_server server [INFO] [parameter_server]: Parameter Server node named: '/parameter_server' started and ready, and serving '9' parameters already! ...<snip> -
check persistent parameter is precisely cached and loaded into parameter server.
$ ros2 param get /parameter_server persistent.a_string String value is: Konnichiwa $ ros2 param get /parameter_server persistent.pi Double value is: 3.14159265359 $ ros2 param get /parameter_server persistent.some_int Integer value is: 81 $ ros2 param get /parameter_server persistent.some_lists.some_integers String value is: 81,82,83,84
Kubernetes
persistent parameter server can be deployed with Kubernetes deployment and configmap resources. Please see How to deploy the parameter server with Kubernetes (opens in a new tab) for more information.
Test
Unit and system tests are integrated into the package with ament_add_gtest (test/test_parameter_server.cpp), so that they run with colcon test aligned with the other ROS 2 packages.
Each test runs the parameter server node in-process and drives it with a parameter client node, exactly as an external node would do.
Restarting the server node in the test flushes the persistent parameters into the file and loads them back, which is equivalent to restarting the server process.
These tests verify the following functions.
- persistent parameter can be read/stored to/from the file system.
- persistent parameter can be read/modified from parameter client.
- non-persistent parameter cannot be read/stored to/from the file system.
- non-persistent parameter can be read/modified from parameter client.
- parameter type can be changed dynamically only when allow-dynamic-typing is set.
~/save_paramsand~/reload_paramsservices store and reload the persistent parameters.- save-on-update stores the persistent parameters immediately when they are changed.
- server configuration parameters (
storing_period,allow_dynamic_typingandmust_save_on_update) can be reconfigured at runtime via the parameter API, and invalid values are rejected. - double and double array parameters keep their precision in the file system.
- invalid persistent parameter file is rejected at startup.
- all parameter types (including arrays) are stored to and loaded from the file system, empty arrays and deleted parameters are not stored.
- only parameters with the
persistent.prefix are stored, including nested ones. - persistent parameter file takes precedence over the parameter overrides, and the namespace / node name keyed file formats are supported.
~/save_paramsand~/reload_paramsservices handle missing and invalid files.
The linters from ament_lint_common (opens in a new tab) (uncrustify, cpplint, cppcheck, copyright, flake8, pep257, lint_cmake and xmllint) are also executed via colcon test.
Run
# cd <colcon_workspace>
# colcon build --symlink-install --packages-select persist_parameter_server
# colcon test --packages-select persist_parameter_server --event-handlers console_direct+
# colcon test-result --all --verbose
All of the tests are listed with result as following.
...<snip>
[----------] 26 tests from ParameterServerTest
[ RUN ] ParameterServerTest.load_parameters_from_yaml_file
[ OK ] ParameterServerTest.load_parameters_from_yaml_file (xx ms)
[ RUN ] ParameterServerTest.persistent_parameters_survive_restart
[ OK ] ParameterServerTest.persistent_parameters_survive_restart (xx ms)
[ RUN ] ParameterServerTest.parameter_type_change_is_rejected_by_default
[ OK ] ParameterServerTest.parameter_type_change_is_rejected_by_default (xx ms)
[ RUN ] ParameterServerTest.save_and_reload_services
[ OK ] ParameterServerTest.save_and_reload_services (xx ms)
[ RUN ] ParameterServerTest.double_precision_is_preserved
[ OK ] ParameterServerTest.double_precision_is_preserved (xx ms)
[ RUN ] ParameterServerTest.dynamic_typing_allows_type_change
[ OK ] ParameterServerTest.dynamic_typing_allows_type_change (xx ms)
[ RUN ] ParameterServerTest.save_on_update_stores_immediately
[ OK ] ParameterServerTest.save_on_update_stores_immediately (xx ms)
[ RUN ] ParameterServerTest.save_on_update_can_be_changed_dynamically
[ OK ] ParameterServerTest.save_on_update_can_be_changed_dynamically (xx ms)
[ RUN ] ParameterServerTest.storing_period_can_be_changed_dynamically
[ OK ] ParameterServerTest.storing_period_can_be_changed_dynamically (xx ms)
[ RUN ] ParameterServerTest.allow_dynamic_typing_can_be_changed_dynamically
[ OK ] ParameterServerTest.allow_dynamic_typing_can_be_changed_dynamically (xx ms)
[ RUN ] ParameterServerTest.invalid_server_parameter_values_are_rejected
[ OK ] ParameterServerTest.invalid_server_parameter_values_are_rejected (xx ms)
[ RUN ] ParameterServerTest.server_parameters_are_declared_without_allow_override
[ OK ] ParameterServerTest.server_parameters_are_declared_without_allow_override (xx ms)
[ RUN ] ParameterServerTest.missing_yaml_file_is_tolerated
[ OK ] ParameterServerTest.missing_yaml_file_is_tolerated (xx ms)
[ RUN ] ParameterServerTest.yaml_file_keyed_by_node_name
[ OK ] ParameterServerTest.yaml_file_keyed_by_node_name (xx ms)
[ RUN ] ParameterServerTest.all_parameter_types_survive_restart
[ OK ] ParameterServerTest.all_parameter_types_survive_restart (xx ms)
[ RUN ] ParameterServerTest.empty_arrays_are_not_stored
[ OK ] ParameterServerTest.empty_arrays_are_not_stored (xx ms)
[ RUN ] ParameterServerTest.only_persistent_prefixed_parameters_are_stored
[ OK ] ParameterServerTest.only_persistent_prefixed_parameters_are_stored (xx ms)
[ RUN ] ParameterServerTest.persistent_parameter_can_be_deleted
[ OK ] ParameterServerTest.persistent_parameter_can_be_deleted (xx ms)
[ RUN ] ParameterServerTest.special_characters_in_strings_survive_restart
[ OK ] ParameterServerTest.special_characters_in_strings_survive_restart (xx ms)
[ RUN ] ParameterServerTest.yaml_file_overrides_parameter_overrides
[ OK ] ParameterServerTest.yaml_file_overrides_parameter_overrides (xx ms)
[ RUN ] ParameterServerTest.namespaced_server_uses_namespaced_yaml_section
[ OK ] ParameterServerTest.namespaced_server_uses_namespaced_yaml_section (xx ms)
[ RUN ] ParameterServerTest.yaml_file_keyed_by_absolute_node_name
[ OK ] ParameterServerTest.yaml_file_keyed_by_absolute_node_name (xx ms)
[ RUN ] ParameterServerTest.save_and_reload_service_error_handling
[ OK ] ParameterServerTest.save_and_reload_service_error_handling (xx ms)
[ RUN ] ParameterServerTest.periodic_storing_with_initial_storing_period
[ OK ] ParameterServerTest.periodic_storing_with_initial_storing_period (xx ms)
[ RUN ] ParameterServerTest.invalid_initial_storing_period_is_coerced_to_zero
[ OK ] ParameterServerTest.invalid_initial_storing_period_is_coerced_to_zero (xx ms)
[ RUN ] ParameterServerTest.invalid_yaml_file_throws
[ OK ] ParameterServerTest.invalid_yaml_file_throws (xx ms)
[----------] 26 tests from ParameterServerTest (xx ms total)
[----------] Global test environment tear-down
[==========] 26 tests from 1 test suite ran. (xx ms total)
[ PASSED ] 26 tests.
...<snip>
Summary: xx tests, 0 errors, 0 failures, 0 skipped
Known Issues
- Signal2(2) needs to be injected to the server executable (opens in a new tab)
- Because of https://github.com/ros2/ros2cli/pull/899 (opens in a new tab) and What is main process in container (opens in a new tab), signal (SIGINT/SIGTERM) does not directly go to the server process. This causes the server not to store the persistent parameters in the file system, since the server expects the signal to shutdown the process and store the all persistent parameters in the specified file system.
- The work-around is that, configure container main process with the server executables (not using
ros2 rununtil https://github.com/ros2/ros2cli/pull/899 (opens in a new tab) is solved) or send the signal from the host system to the server process in the container usingdocker exec <YOUR CONTAINER> kill -SIGINT <SERVER PID IN CONTAINER>.
Authors
- Tomoya Fujita --- Tomoya.Fujita@sony.com (opens in a new tab) / tomoya.fujita825@gmail.com (opens in a new tab)
- Barry Xu --- Barry.Xu@sony.com (opens in a new tab)
License
Apache 2.0
Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.