async_param_client
This file is ai generated. Do not edit this file directly. Instead, edit the node source code and run the generate-node-docs command to update this file.
Description
A ROS2 node that demonstrates asynchronous parameter client operations. It connects to the parameter_blackboard node and performs various parameter operations including setting, getting, listing, loading from YAML file, and deleting parameters. This shows how to interact with another node’s parameters programmatically.
Example Usage
# First, start the parameter blackboard node
ros2 run demo_nodes_cpp parameter_blackboard
# Then run the async parameter client
ros2 run demo_nodes_py async_param_client
The client will:
Set parameters (int_parameter=10, bool_parameter=False, string_parameter=’Fee Fi Fo Fum’)
List all parameters
Get parameter values
Load parameters from params.yaml file
Delete specified parameters
Expected output:
[INFO] [async_param_client]: Setting parameters:
[INFO] [async_param_client]: int_parameter:
[INFO] [async_param_client]: successful: True
...
[INFO] [async_param_client]: Listing Parameters:
[INFO] [async_param_client]: - int_parameter
...
[INFO] [async_param_client]: Getting parameters:
[INFO] [async_param_client]: - int_parameter: 10
...
[INFO] [async_param_client]: Loading parameters:
...
[INFO] [async_param_client]: Deleting parameters:
...
Note: This node requires the parameter_blackboard node from demo_nodes_cpp to be running.